Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.719/1.719, allocations: 285.6 MB / 293.1 MB, free: 10.22 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 176.9 kB / 361.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.642/1.642, allocations: 205.2 MB / 0.62 GB, free: 11.66 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008088/0.0008089, allocations: 98.06 kB / 0.733 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.121e-05/2.122e-05, allocations: 4 kB / 0.8518 GB, free: 2.664 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7087/0.7087, allocations: 115.3 MB / 0.9644 GB, free: 78.7 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.111/1.82, allocations: 410.8 MB / 1.366 GB, free: 156.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/1.82, allocations: 89.02 kB / 1.366 GB, free: 156 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 12.08/13.9, allocations: 2.902 GB / 4.268 GB, free: 132.8 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.274e-06/13.9, allocations: 0 / 4.268 GB, free: 132.8 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.001938/13.9, allocations: 255.7 kB / 4.268 GB, free: 132.8 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.03321/13.93, allocations: 8.284 MB / 4.276 GB, free: 129.8 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/13.93, allocations: 8.969 kB / 4.276 GB, free: 129.8 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009383/13.94, allocations: 1.166 MB / 4.277 GB, free: 129.3 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03143/13.97, allocations: 10.75 MB / 4.288 GB, free: 128.2 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007029/13.97, allocations: 267.6 kB / 4.288 GB, free: 128.2 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004353/13.98, allocations: 485.4 kB / 4.289 GB, free: 128.2 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02507/14, allocations: 8.906 MB / 4.297 GB, free: 128.1 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0358/14.04, allocations: 10.34 MB / 4.307 GB, free: 127 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004828/14.04, allocations: 34.2 kB / 4.308 GB, free: 127 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003573/14.04, allocations: 17.84 kB / 4.308 GB, free: 127 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002915/14.04, allocations: 242.7 kB / 4.308 GB, free: 127 MB / 0.9636 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08826/14.13, allocations: 44.98 MB / 4.352 GB, free: 105.8 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009933/14.14, allocations: 5.992 MB / 4.358 GB, free: 103.4 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006764/14.15, allocations: 4.646 MB / 4.362 GB, free: 101.9 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001209/14.15, allocations: 0.8248 MB / 4.363 GB, free: 101.1 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005654/14.16, allocations: 3.176 MB / 4.366 GB, free: 99.96 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00513/14.16, allocations: 401.8 kB / 4.366 GB, free: 99.72 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=449): time 1.074e-05/14.16, allocations: 0 / 4.366 GB, free: 99.72 MB / 0.9636 GB Notification: Performance of matching and sorting (n=449): time 0.01227/14.17, allocations: 6.107 MB / 4.372 GB, free: 97.6 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.997e-05/14.17, allocations: 151.5 kB / 4.372 GB, free: 97.47 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01137/14.18, allocations: 5.84 MB / 4.378 GB, free: 95.36 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.001679/14.19, allocations: 29.55 kB / 4.378 GB, free: 95.33 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.004872/14.19, allocations: 4.289 MB / 4.382 GB, free: 92.09 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.002758/14.19, allocations: 1.494 MB / 4.384 GB, free: 90.93 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004609/14.19, allocations: 0 / 4.384 GB, free: 90.93 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0004402/14.19, allocations: 0.5457 MB / 4.384 GB, free: 90.52 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003836/14.2, allocations: 2.782 MB / 4.387 GB, free: 89.51 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004776/14.2, allocations: 4.617 MB / 4.392 GB, free: 86.17 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006641/14.21, allocations: 4.066 MB / 4.396 GB, free: 84.8 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.442e-05/14.21, allocations: 17.38 kB / 4.396 GB, free: 84.8 MB / 0.9636 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01627/14.23, allocations: 8.233 MB / 4.404 GB, free: 81.97 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.006872/14.23, allocations: 27.94 MB / 4.431 GB, free: 52.12 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001616/14.23, allocations: 60.95 kB / 4.431 GB, free: 52.12 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001611/14.23, allocations: 95.5 kB / 4.431 GB, free: 52.12 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007217/14.24, allocations: 1.445 MB / 4.432 GB, free: 51.97 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002045/14.24, allocations: 126.7 kB / 4.433 GB, free: 51.95 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009707/14.25, allocations: 0.5055 MB / 4.433 GB, free: 51.86 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00201/14.25, allocations: 284.8 kB / 4.433 GB, free: 51.81 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/14.25, allocations: 7.281 kB / 4.433 GB, free: 51.8 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01876/14.27, allocations: 7.599 MB / 4.441 GB, free: 45.68 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002476/14.27, allocations: 59.94 kB / 4.441 GB, free: 45.62 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001419/14.27, allocations: 102.7 kB / 4.441 GB, free: 45.52 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006758/14.28, allocations: 1.439 MB / 4.442 GB, free: 44.29 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001862/14.28, allocations: 130.4 kB / 4.442 GB, free: 44.18 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009058/14.29, allocations: 490.7 kB / 4.443 GB, free: 43.83 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001903/14.29, allocations: 283.2 kB / 4.443 GB, free: 43.57 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003328/14.29, allocations: 362.2 kB / 4.444 GB, free: 43.2 MB / 0.9636 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01572/14.31, allocations: 6.141 MB / 4.45 GB, free: 37.92 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003474/14.31, allocations: 0.6329 MB / 4.45 GB, free: 37.28 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01703/14.33, allocations: 6.757 MB / 4.457 GB, free: 31.75 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-05/14.33, allocations: 47.94 kB / 4.457 GB, free: 31.71 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.075e-05/14.33, allocations: 0 / 4.457 GB, free: 31.71 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01036/14.34, allocations: 5.642 MB / 4.462 GB, free: 26.96 MB / 0.9636 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04053/14.38, allocations: 15.38 MB / 4.477 GB, free: 14.87 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/14.38, allocations: 0 / 4.477 GB, free: 14.87 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004073/14.38, allocations: 0.9136 MB / 4.478 GB, free: 14.12 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.653e-05/14.39, allocations: 16 kB / 4.478 GB, free: 14.1 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004798/14.39, allocations: 66.77 kB / 4.478 GB, free: 14.05 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.779e-05/14.39, allocations: 16 kB / 4.478 GB, free: 14.04 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/14.39, allocations: 0 / 4.478 GB, free: 14.04 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01604/14.4, allocations: 10.32 MB / 4.488 GB, free: 5.043 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007533/14.41, allocations: 1.656 MB / 4.49 GB, free: 3.605 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002804/14.41, allocations: 26.89 kB / 4.49 GB, free: 3.586 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007366/14.42, allocations: 496.2 kB / 4.491 GB, free: 3.25 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005352/14.42, allocations: 263.8 kB / 4.491 GB, free: 3.082 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007243/14.42, allocations: 201.8 kB / 4.491 GB, free: 2.914 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.008687/14.43, allocations: 4.437 MB / 4.495 GB, free: 14.48 MB / 0.9792 GB Notification: Performance of sort global known variables: time 6.22e-07/14.43, allocations: 0 / 4.495 GB, free: 14.48 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.02568/14.46, allocations: 4.769 MB / 4.5 GB, free: 9.703 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.8347/15.29, allocations: 11.71 MB / 4.511 GB, free: 140.7 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.02632/15.32, allocations: 10.86 MB / 4.522 GB, free: 140.3 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 2.05e-05/15.32, allocations: 6.406 kB / 4.522 GB, free: 140.3 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.005216/15.32, allocations: 3.03 MB / 4.525 GB, free: 140.2 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02194/15.34, allocations: 3.473 MB / 4.528 GB, free: 140.1 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05808/15.4, allocations: 18.75 MB / 4.547 GB, free: 137.2 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01484/15.42, allocations: 6.253 MB / 4.553 GB, free: 136.3 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.02749/15.44, allocations: 5.802 MB / 4.558 GB, free: 136.2 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008644/15.45, allocations: 3.577 MB / 4.562 GB, free: 136.2 MB / 0.9792 GB Notification: Performance of SimCode: time 1.082e-06/15.45, allocations: 0 / 4.562 GB, free: 136.2 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3395/15.79, allocations: 199.9 MB / 4.757 GB, free: 78.55 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001779/15.79, allocations: 186 kB / 4.757 GB, free: 78.34 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.497/25.29, allocations: 0 / 4.757 GB, free: 78.34 MB / 0.9792 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_maint_8_0_x_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)