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.263/2.263, allocations: 248.7 MB / 256.2 MB, free: 7.098 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.001493/0.001493, allocations: 176.8 kB / 315.4 MB, free: 4.012 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.001/2.001, allocations: 205.3 MB / 0.5662 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 86.53 kB / 0.6704 GB, free: 5.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.511e-05/2.503e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.202, allocations: 106.3 MB / 0.8841 GB, free: 13 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.838/2.04, allocations: 403.9 MB / 1.279 GB, free: 263.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/2.04, allocations: 89.19 kB / 1.279 GB, free: 263.7 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 14.98/17.02, allocations: 2.83 GB / 4.109 GB, free: 133.3 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.925e-06/17.02, allocations: 0 / 4.109 GB, free: 133.3 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.001801/17.02, allocations: 257.7 kB / 4.109 GB, free: 133.3 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.0376/17.06, allocations: 8.286 MB / 4.117 GB, free: 130.2 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/17.06, allocations: 10.81 kB / 4.117 GB, free: 130.2 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008971/17.07, allocations: 1.163 MB / 4.118 GB, free: 129.7 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03918/17.11, allocations: 10.72 MB / 4.129 GB, free: 128.6 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006397/17.11, allocations: 268.5 kB / 4.129 GB, free: 128.6 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00418/17.11, allocations: 493.1 kB / 4.13 GB, free: 128.6 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03021/17.14, allocations: 8.93 MB / 4.138 GB, free: 128.5 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04105/17.19, allocations: 10.23 MB / 4.148 GB, free: 127.4 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006323/17.19, allocations: 28.83 kB / 4.148 GB, free: 127.4 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00378/17.19, allocations: 13.66 kB / 4.148 GB, free: 127.4 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003492/17.19, allocations: 251.6 kB / 4.149 GB, free: 127.4 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.1044/17.3, allocations: 44.48 MB / 4.192 GB, free: 102 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01443/17.31, allocations: 6.051 MB / 4.198 GB, free: 99.57 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01095/17.32, allocations: 4.662 MB / 4.203 GB, free: 98 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001905/17.32, allocations: 0.8259 MB / 4.203 GB, free: 97.22 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009169/17.33, allocations: 3.135 MB / 4.206 GB, free: 96.09 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006256/17.34, allocations: 395.5 kB / 4.207 GB, free: 95.85 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 3.869e-05/17.34, allocations: 0 / 4.207 GB, free: 95.85 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.02105/17.36, allocations: 6.168 MB / 4.213 GB, free: 91.38 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/17.36, allocations: 158.3 kB / 4.213 GB, free: 91.2 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01529/17.37, allocations: 5.812 MB / 4.219 GB, free: 86.18 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001485/17.38, allocations: 33.7 kB / 4.219 GB, free: 86.14 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.006208/17.38, allocations: 4.266 MB / 4.223 GB, free: 82.29 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.003142/17.39, allocations: 1.528 MB / 4.224 GB, free: 80.88 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008522/17.39, allocations: 4 kB / 4.224 GB, free: 80.88 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0005324/17.39, allocations: 0.5399 MB / 4.225 GB, free: 80.4 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007206/17.39, allocations: 2.796 MB / 4.228 GB, free: 77.98 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009009/17.4, allocations: 4.612 MB / 4.232 GB, free: 73 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/17.41, allocations: 4.091 MB / 4.236 GB, free: 69.68 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.956e-05/17.41, allocations: 16 kB / 4.236 GB, free: 69.67 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02558/17.44, allocations: 8.278 MB / 4.244 GB, free: 61.7 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.005775/17.45, allocations: 27.52 MB / 4.271 GB, free: 32.13 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002006/17.45, allocations: 59.98 kB / 4.271 GB, free: 32.07 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001592/17.45, allocations: 99.95 kB / 4.271 GB, free: 31.97 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01169/17.46, allocations: 1.447 MB / 4.273 GB, free: 30.52 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001637/17.46, allocations: 123.6 kB / 4.273 GB, free: 30.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01213/17.47, allocations: 0.5061 MB / 4.273 GB, free: 29.89 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001931/17.47, allocations: 287.5 kB / 4.274 GB, free: 29.62 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/17.47, allocations: 5.094 kB / 4.274 GB, free: 29.61 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02262/17.5, allocations: 7.644 MB / 4.281 GB, free: 21.97 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001963/17.5, allocations: 56 kB / 4.281 GB, free: 21.91 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001257/17.5, allocations: 96 kB / 4.281 GB, free: 21.82 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01162/17.51, allocations: 1.451 MB / 4.283 GB, free: 20.37 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001508/17.51, allocations: 127.5 kB / 4.283 GB, free: 20.24 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01203/17.52, allocations: 498.3 kB / 4.283 GB, free: 19.75 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002301/17.52, allocations: 280 kB / 4.283 GB, free: 19.48 MB / 0.9011 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.004025/17.53, allocations: 354.3 kB / 4.284 GB, free: 19.11 MB / 0.9011 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01913/17.55, allocations: 6.201 MB / 4.29 GB, free: 12.89 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003307/17.55, allocations: 0.6286 MB / 4.29 GB, free: 12.26 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0203/17.57, allocations: 6.816 MB / 4.297 GB, free: 5.438 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-05/17.57, allocations: 47.94 kB / 4.297 GB, free: 5.391 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/17.57, allocations: 0 / 4.297 GB, free: 5.391 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.7513/18.32, allocations: 5.701 MB / 4.303 GB, free: 130.4 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 postOpt removeSimpleEquations (simulation): time 0.06108/18.38, allocations: 15.37 MB / 4.318 GB, free: 129.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.199e-05/18.38, allocations: 0.8125 kB / 4.318 GB, free: 129.5 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009556/18.39, allocations: 0.925 MB / 4.319 GB, free: 129.5 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/18.39, allocations: 15.44 kB / 4.319 GB, free: 129.5 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00132/18.39, allocations: 63.62 kB / 4.319 GB, free: 129.5 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.179e-05/18.39, allocations: 14.97 kB / 4.319 GB, free: 129.5 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/18.39, allocations: 4.906 kB / 4.319 GB, free: 129.5 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03581/18.43, allocations: 10.4 MB / 4.329 GB, free: 129.1 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008653/18.44, allocations: 1.643 MB / 4.33 GB, free: 128.9 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003761/18.44, allocations: 27.59 kB / 4.33 GB, free: 128.9 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01184/18.45, allocations: 494.6 kB / 4.331 GB, free: 128.8 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001584/18.45, allocations: 256.4 kB / 4.331 GB, free: 128.8 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009537/18.46, allocations: 187.2 kB / 4.331 GB, free: 128.8 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.01285/18.47, allocations: 4.431 MB / 4.336 GB, free: 128.6 MB / 0.9011 GB Notification: Performance of sort global known variables: time 6.72e-07/18.47, allocations: 1.312 kB / 4.336 GB, free: 128.6 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.02537/18.49, allocations: 4.762 MB / 4.34 GB, free: 128.2 MB / 0.9011 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.03079/18.52, allocations: 11.8 MB / 4.352 GB, free: 126.7 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.02653/18.55, allocations: 10.92 MB / 4.363 GB, free: 126.4 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/18.55, allocations: 5.562 kB / 4.363 GB, free: 126.4 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.007498/18.56, allocations: 3.048 MB / 4.366 GB, free: 126.3 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03435/18.59, allocations: 3.467 MB / 4.369 GB, free: 126.2 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08751/18.68, allocations: 18.89 MB / 4.387 GB, free: 123.2 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02108/18.7, allocations: 6.269 MB / 4.393 GB, free: 122.3 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.04264/18.74, allocations: 5.795 MB / 4.399 GB, free: 122.3 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01404/18.76, allocations: 3.63 MB / 4.403 GB, free: 122.3 MB / 0.9011 GB Notification: Performance of SimCode: time 1.713e-06/18.76, allocations: 2.719 kB / 4.403 GB, free: 122.3 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5158/19.27, allocations: 199 MB / 4.597 GB, free: 10.47 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002815/19.28, allocations: 166 kB / 4.597 GB, free: 10.28 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/31.19, allocations: 0 / 4.597 GB, free: 10.28 MB / 0.9011 GB