Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Storage.Examples.Stratified.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.449/2.449, allocations: 248.5 MB / 261.1 MB, free: 6.027 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001411/0.001411, allocations: 180.8 kB / 320.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.919/1.919, allocations: 205.2 MB / 0.571 GB, free: 11.71 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001075/0.001074, allocations: 111.7 kB / 0.6754 GB, free: 0.8047 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.273e-05/4.291e-05, allocations: 4 kB / 0.7869 GB, free: 97.78 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2195, allocations: 106.2 MB / 0.8907 GB, free: 7.438 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.869/2.089, allocations: 403.7 MB / 1.285 GB, free: 260.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/2.089, allocations: 88.41 kB / 1.285 GB, free: 260.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 15.17/17.26, allocations: 2.845 GB / 4.13 GB, free: 121.8 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.655e-06/17.26, allocations: 0 / 4.13 GB, free: 121.8 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.001734/17.27, allocations: 255 kB / 4.13 GB, free: 121.8 MB / 0.9011 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.03521/17.3, allocations: 8.286 MB / 4.138 GB, free: 118.7 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/17.3, allocations: 11.19 kB / 4.138 GB, free: 118.7 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006106/17.31, allocations: 1.131 MB / 4.139 GB, free: 118.6 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008767/17.32, allocations: 1.171 MB / 4.141 GB, free: 118 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03863/17.35, allocations: 10.72 MB / 4.151 GB, free: 116.7 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009541/17.36, allocations: 0.611 MB / 4.152 GB, free: 116.7 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004264/17.36, allocations: 0.8205 MB / 4.152 GB, free: 116.7 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04315/17.4, allocations: 11.44 MB / 4.164 GB, free: 111.9 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000613/17.4, allocations: 28.28 kB / 4.164 GB, free: 111.9 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004115/17.41, allocations: 353.9 kB / 4.164 GB, free: 111.6 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003512/17.41, allocations: 246.2 kB / 4.164 GB, free: 111.6 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03504/17.44, allocations: 9.461 MB / 4.173 GB, free: 108.1 MB / 0.9011 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.1099/17.55, allocations: 46.1 MB / 4.219 GB, free: 67.72 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01559/17.57, allocations: 6.286 MB / 4.225 GB, free: 61.45 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01251/17.58, allocations: 5.424 MB / 4.23 GB, free: 56.03 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002052/17.58, allocations: 0.8196 MB / 4.231 GB, free: 55.08 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009558/17.59, allocations: 3.282 MB / 4.234 GB, free: 51.77 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006788/17.6, allocations: 0.5578 MB / 4.234 GB, free: 51.2 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 1.947e-05/17.6, allocations: 0 / 4.234 GB, free: 51.2 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.01989/17.62, allocations: 6.224 MB / 4.241 GB, free: 44.94 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/17.62, allocations: 150.3 kB / 4.241 GB, free: 44.77 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01928/17.64, allocations: 7.018 MB / 4.248 GB, free: 37.77 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001483/17.64, allocations: 109.7 kB / 4.248 GB, free: 37.66 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.006409/17.65, allocations: 4.27 MB / 4.252 GB, free: 33.38 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.003045/17.65, allocations: 1.58 MB / 4.253 GB, free: 31.81 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007238/17.65, allocations: 120 kB / 4.253 GB, free: 31.69 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0004789/17.65, allocations: 0.5382 MB / 4.254 GB, free: 31.14 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007881/17.66, allocations: 2.912 MB / 4.257 GB, free: 28.23 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01011/17.67, allocations: 4.772 MB / 4.262 GB, free: 22.63 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/17.68, allocations: 3.968 MB / 4.265 GB, free: 18.64 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.937e-05/17.68, allocations: 16 kB / 4.265 GB, free: 18.63 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02735/17.71, allocations: 8.688 MB / 4.274 GB, free: 9.914 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.7747/18.48, allocations: 28.64 MB / 4.302 GB, free: 133.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002349/18.48, allocations: 61.19 kB / 4.302 GB, free: 133.6 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/18.48, allocations: 97.28 kB / 4.302 GB, free: 133.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01243/18.5, allocations: 1.449 MB / 4.303 GB, free: 133.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002286/18.5, allocations: 122.9 kB / 4.304 GB, free: 133.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01316/18.51, allocations: 0.6253 MB / 4.304 GB, free: 133.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002125/18.51, allocations: 282.7 kB / 4.304 GB, free: 133.6 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/18.51, allocations: 4.688 kB / 4.304 GB, free: 133.6 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02846/18.54, allocations: 8.104 MB / 4.312 GB, free: 133.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002179/18.54, allocations: 56.25 kB / 4.312 GB, free: 133.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001803/18.54, allocations: 106.2 kB / 4.313 GB, free: 133.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01244/18.55, allocations: 1.443 MB / 4.314 GB, free: 133.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002913/18.55, allocations: 127.6 kB / 4.314 GB, free: 133.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01262/18.57, allocations: 0.5979 MB / 4.315 GB, free: 133.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002213/18.57, allocations: 281.9 kB / 4.315 GB, free: 133.4 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 260 * 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 (748): * Single equations (assignments): 746 * 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.003517/18.57, allocations: 0.5347 MB / 4.315 GB, free: 133.2 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003453/18.57, allocations: 0.7061 MB / 4.316 GB, free: 133.2 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02698/18.6, allocations: 7.001 MB / 4.323 GB, free: 133 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.948e-05/18.6, allocations: 48.12 kB / 4.323 GB, free: 133 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/18.6, allocations: 4.656 kB / 4.323 GB, free: 133 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02076/18.62, allocations: 5.708 MB / 4.329 GB, free: 132.7 MB / 0.9167 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.06086/18.68, allocations: 16.45 MB / 4.345 GB, free: 131.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.228e-05/18.68, allocations: 3.812 kB / 4.345 GB, free: 131.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009183/18.69, allocations: 0.916 MB / 4.346 GB, free: 131.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.996e-05/18.69, allocations: 18.19 kB / 4.346 GB, free: 131.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00134/18.69, allocations: 121.7 kB / 4.346 GB, free: 131.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.323e-05/18.69, allocations: 14.06 kB / 4.346 GB, free: 131.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/18.69, allocations: 3.703 kB / 4.346 GB, free: 131.7 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02849/18.72, allocations: 10.6 MB / 4.356 GB, free: 131 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008374/18.73, allocations: 1.726 MB / 4.358 GB, free: 130.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00385/18.73, allocations: 96.5 kB / 4.358 GB, free: 130.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01178/18.75, allocations: 0.5601 MB / 4.358 GB, free: 130.5 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001495/18.75, allocations: 260.2 kB / 4.359 GB, free: 130.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001031/18.75, allocations: 186.2 kB / 4.359 GB, free: 130.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.01537/18.76, allocations: 5.462 MB / 4.364 GB, free: 130.3 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.032e-06/18.76, allocations: 0 / 4.364 GB, free: 130.3 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.02509/18.79, allocations: 4.916 MB / 4.369 GB, free: 129.9 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 23 (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,HOut_flow.h_out,HOut_flow1.h_out,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 (451): * Single equations (assignments): 447 * 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.03167/18.82, allocations: 12.04 MB / 4.381 GB, free: 128.4 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.02933/18.85, allocations: 11.46 MB / 4.392 GB, free: 128 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/18.85, allocations: 6.5 kB / 4.392 GB, free: 128 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.008033/18.86, allocations: 3.146 MB / 4.395 GB, free: 127.8 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03618/18.9, allocations: 4.386 MB / 4.399 GB, free: 127.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06195/18.96, allocations: 19.57 MB / 4.418 GB, free: 124.8 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01316/18.97, allocations: 6.269 MB / 4.424 GB, free: 123.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.03521/19.01, allocations: 6.571 MB / 4.431 GB, free: 123.8 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01004/19.02, allocations: 3.616 MB / 4.434 GB, free: 123.8 MB / 0.9167 GB Notification: Performance of SimCode: time 1.343e-06/19.02, allocations: 5.75 kB / 4.434 GB, free: 123.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.364/20.38, allocations: 238.3 MB / 4.667 GB, free: 146.2 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002722/20.38, allocations: 189.2 kB / 4.667 GB, free: 146 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/34.13, allocations: 1.625 kB / 4.667 GB, free: 146 MB / 0.948 GB