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.227/2.227, allocations: 251 MB / 265.9 MB, free: 11.69 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001582/0.001582, allocations: 174.8 kB / 325.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.49/2.49, allocations: 205.4 MB / 0.5764 GB, free: 20.82 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.001157/0.001157, allocations: 95.48 kB / 0.6809 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004878/0.0004877, allocations: 13.38 kB / 0.795 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2184, allocations: 106.3 MB / 0.8988 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.322/1.54, allocations: 403.7 MB / 1.293 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003464/1.54, allocations: 93.77 kB / 1.293 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 15.91/17.45, allocations: 2.852 GB / 4.145 GB, free: 93.78 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.445e-06/17.45, allocations: 0 / 4.145 GB, free: 93.78 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.001788/17.45, allocations: 252.6 kB / 4.146 GB, free: 93.74 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.0483/17.5, allocations: 9.824 MB / 4.155 GB, free: 90.65 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.974e-05/17.5, allocations: 9.344 kB / 4.155 GB, free: 90.65 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006368/17.51, allocations: 1.142 MB / 4.156 GB, free: 90.56 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009282/17.52, allocations: 1.165 MB / 4.157 GB, free: 90.02 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04501/17.56, allocations: 10.76 MB / 4.168 GB, free: 88.93 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009808/17.57, allocations: 0.6245 MB / 4.169 GB, free: 88.91 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004252/17.57, allocations: 0.8181 MB / 4.169 GB, free: 88.9 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04131/17.61, allocations: 11.57 MB / 4.181 GB, free: 87.72 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005858/17.61, allocations: 29.23 kB / 4.181 GB, free: 87.72 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003518/17.61, allocations: 352.2 kB / 4.181 GB, free: 87.72 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003146/17.62, allocations: 250.5 kB / 4.181 GB, free: 87.72 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03196/17.65, allocations: 9.647 MB / 4.191 GB, free: 87.66 MB / 0.9011 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.1052/17.75, allocations: 46.11 MB / 4.236 GB, free: 68.67 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01651/17.77, allocations: 6.376 MB / 4.242 GB, free: 68.4 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001928/17.77, allocations: 0.8164 MB / 4.243 GB, free: 67.64 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01024/17.78, allocations: 3.355 MB / 4.246 GB, free: 67.48 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007014/17.79, allocations: 0.5588 MB / 4.247 GB, free: 67.18 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 2.203e-05/17.79, allocations: 0 / 4.247 GB, free: 67.18 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.02786/17.82, allocations: 9.065 MB / 4.255 GB, free: 66.41 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/17.82, allocations: 156.9 kB / 4.256 GB, free: 66.29 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02004/17.84, allocations: 7.086 MB / 4.262 GB, free: 65.86 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001927/17.84, allocations: 112.9 kB / 4.263 GB, free: 65.82 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.007555/17.85, allocations: 4.267 MB / 4.267 GB, free: 64.22 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.003338/17.85, allocations: 1.58 MB / 4.268 GB, free: 63.23 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009789/17.85, allocations: 118.2 kB / 4.268 GB, free: 63.23 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.000533/17.85, allocations: 0.5415 MB / 4.269 GB, free: 62.91 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008579/17.86, allocations: 3 MB / 4.272 GB, free: 62.89 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01057/17.87, allocations: 4.859 MB / 4.277 GB, free: 60.73 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0107/17.88, allocations: 4.037 MB / 4.281 GB, free: 60.62 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.954e-05/17.88, allocations: 13.75 kB / 4.281 GB, free: 60.62 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02759/17.91, allocations: 8.87 MB / 4.289 GB, free: 60.08 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.009308/17.92, allocations: 28.65 MB / 4.317 GB, free: 46.35 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002108/17.92, allocations: 62.34 kB / 4.317 GB, free: 46.35 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001543/17.92, allocations: 95.75 kB / 4.317 GB, free: 46.35 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0116/17.93, allocations: 1.437 MB / 4.319 GB, free: 46.35 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002255/17.93, allocations: 129.4 kB / 4.319 GB, free: 46.35 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01262/17.94, allocations: 0.631 MB / 4.319 GB, free: 46.29 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001783/17.94, allocations: 282 kB / 4.32 GB, free: 46.29 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/17.94, allocations: 6.031 kB / 4.32 GB, free: 46.29 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02399/17.97, allocations: 8.287 MB / 4.328 GB, free: 46.13 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002395/17.97, allocations: 62.16 kB / 4.328 GB, free: 46.13 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001431/17.97, allocations: 99.88 kB / 4.328 GB, free: 46.13 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01207/17.98, allocations: 1.437 MB / 4.329 GB, free: 46.13 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002172/17.98, allocations: 123.6 kB / 4.33 GB, free: 46.13 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01228/17.99, allocations: 0.6071 MB / 4.33 GB, free: 46.08 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001853/18, allocations: 283.7 kB / 4.33 GB, free: 46.08 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 () * Number of clocked 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.01008/18.01, allocations: 3.551 MB / 4.334 GB, free: 45.79 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003134/18.01, allocations: 0.7063 MB / 4.335 GB, free: 45.43 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02462/18.03, allocations: 7.161 MB / 4.342 GB, free: 45.14 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.112e-05/18.03, allocations: 41.69 kB / 4.342 GB, free: 45.14 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.591e-05/18.03, allocations: 4.531 kB / 4.342 GB, free: 45.14 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01876/18.05, allocations: 5.861 MB / 4.347 GB, free: 44.9 MB / 0.9167 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.05617/18.11, allocations: 16.38 MB / 4.363 GB, free: 43.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.095e-05/18.11, allocations: 0 / 4.363 GB, free: 43.91 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008996/18.12, allocations: 0.9168 MB / 4.364 GB, free: 43.91 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.032e-05/18.12, allocations: 13.66 kB / 4.364 GB, free: 43.91 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001282/18.12, allocations: 124.2 kB / 4.364 GB, free: 43.91 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.372e-05/18.12, allocations: 15.72 kB / 4.364 GB, free: 43.91 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/18.12, allocations: 0 / 4.364 GB, free: 43.91 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03139/18.15, allocations: 10.83 MB / 4.375 GB, free: 41.08 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008041/18.16, allocations: 1.731 MB / 4.377 GB, free: 40.17 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003749/18.16, allocations: 96.59 kB / 4.377 GB, free: 40.11 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01211/18.18, allocations: 0.5712 MB / 4.377 GB, free: 40.02 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001665/18.18, allocations: 253.9 kB / 4.377 GB, free: 39.98 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001476/18.18, allocations: 194.8 kB / 4.378 GB, free: 39.95 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.01575/18.19, allocations: 5.532 MB / 4.383 GB, free: 38.07 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.064e-06/18.19, allocations: 1.469 kB / 4.383 GB, free: 38.07 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.02555/18.22, allocations: 4.909 MB / 4.388 GB, free: 37.07 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) * Number of clocked states: 0 () * 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.03435/18.25, allocations: 12.28 MB / 4.4 GB, free: 31.87 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.03101/18.29, allocations: 11.51 MB / 4.411 GB, free: 28.13 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/18.29, allocations: 5.656 kB / 4.411 GB, free: 28.13 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.008798/18.29, allocations: 3.22 MB / 4.414 GB, free: 26.91 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0361/18.33, allocations: 4.385 MB / 4.419 GB, free: 26.08 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.071/19.4, allocations: 114.1 MB / 4.53 GB, free: 132.6 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01171/19.41, allocations: 6.26 MB / 4.536 GB, free: 131.7 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.02248/19.44, allocations: 4.319 MB / 4.54 GB, free: 131.7 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01105/19.45, allocations: 3.742 MB / 4.544 GB, free: 131.7 MB / 0.9636 GB Notification: Performance of SimCode: time 1.383e-06/19.45, allocations: 0 / 4.544 GB, free: 131.7 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5501/20, allocations: 235.9 MB / 4.774 GB, free: 45.52 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002799/20, allocations: 227 kB / 4.775 GB, free: 45.27 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/31.45, allocations: 3.938 kB / 4.775 GB, free: 45.26 MB / 0.9636 GB