Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 198.2 kB / 16.64 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.388/1.388, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.694/1.694, allocations: 292.3 MB / 0.549 GB, free: 12.78 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 74.56 kB / 0.6718 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2254, allocations: 114.6 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01463/0.2401, allocations: 14.44 MB / 0.7977 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.005108/0.2452, allocations: 3.609 MB / 0.8013 GB, free: 11.15 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00057/0.2459, allocations: 15.94 kB / 0.8013 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.0006608/0.2466, allocations: 206.7 kB / 0.8015 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.001431/0.248, allocations: 0.5829 MB / 0.802 GB, free: 10.35 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008927/0.249, allocations: 386.1 kB / 0.8024 GB, free: 9.973 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.00124/0.2502, allocations: 1.075 MB / 0.8035 GB, free: 8.898 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004194/0.2506, allocations: 311.8 kB / 0.8038 GB, free: 8.59 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000961/0.2516, allocations: 395.4 kB / 0.8041 GB, free: 8.203 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004266/0.252, allocations: 302.7 kB / 0.8044 GB, free: 7.906 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 5.336e-05/0.2521, allocations: 36 kB / 0.8045 GB, free: 7.871 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000553/0.2527, allocations: 255.5 kB / 0.8047 GB, free: 7.621 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.2528, allocations: 99.66 kB / 0.8048 GB, free: 7.523 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.000211/0.253, allocations: 211 kB / 0.805 GB, free: 7.316 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0007574/0.2538, allocations: 0.5881 MB / 0.8056 GB, free: 6.727 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2538, allocations: 0 / 0.8056 GB, free: 6.727 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.923e-06/0.2538, allocations: 0 / 0.8056 GB, free: 6.727 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.2538, allocations: 0 / 0.8056 GB, free: 6.727 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001124/0.2549, allocations: 0.7457 MB / 0.8063 GB, free: 5.926 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.255, allocations: 12.03 kB / 0.8063 GB, free: 5.914 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.4e-05/0.2551, allocations: 62.72 kB / 0.8064 GB, free: 5.844 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.2552, allocations: 44.47 kB / 0.8064 GB, free: 5.801 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006782/0.2559, allocations: 455.1 kB / 0.8069 GB, free: 5.32 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.256, allocations: 20.69 kB / 0.8069 GB, free: 5.301 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.256, allocations: 28 kB / 0.8069 GB, free: 5.273 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000543/0.2566, allocations: 310.2 kB / 0.8072 GB, free: 4.945 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.2566, allocations: 4 kB / 0.8072 GB, free: 4.941 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.211e-05/0.2566, allocations: 8 kB / 0.8072 GB, free: 4.934 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.2567, allocations: 12 kB / 0.8072 GB, free: 4.922 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004472/0.2571, allocations: 194.1 kB / 0.8074 GB, free: 4.734 MB / 0.6231 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.001709/0.2588, allocations: 1.489 MB / 0.8089 GB, free: 3.117 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004373/0.2593, allocations: 158.6 kB / 0.809 GB, free: 2.953 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.2595, allocations: 60.83 kB / 0.8091 GB, free: 2.891 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001388/0.2596, allocations: 89.09 kB / 0.8091 GB, free: 2.785 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002887/0.2599, allocations: 134.2 kB / 0.8093 GB, free: 2.645 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.2599, allocations: 3.938 kB / 0.8093 GB, free: 2.641 MB / 0.6231 GB Notification: Performance of matching and sorting (n=15): time 0.0006191/0.2606, allocations: 233.1 kB / 0.8095 GB, free: 2.406 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.2606, allocations: 63.34 kB / 0.8096 GB, free: 2.332 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.2609, allocations: 341.7 kB / 0.8099 GB, free: 1.992 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.755e-05/0.261, allocations: 33.7 kB / 0.8099 GB, free: 1.953 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.2611, allocations: 211.7 kB / 0.8101 GB, free: 1.738 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 4.654e-05/0.2612, allocations: 55.27 kB / 0.8102 GB, free: 1.684 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-05/0.2613, allocations: 53.61 kB / 0.8102 GB, free: 1.625 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.2614, allocations: 342.8 kB / 0.8106 GB, free: 1.281 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.2616, allocations: 75.94 kB / 0.8106 GB, free: 1.207 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.2618, allocations: 153.3 kB / 0.8108 GB, free: 1.023 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003997/0.2622, allocations: 237.7 kB / 0.811 GB, free: 0.7539 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2623, allocations: 4 kB / 0.811 GB, free: 0.75 MB / 0.6231 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005669/0.2628, allocations: 314.6 kB / 0.8113 GB, free: 440 kB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.2629, allocations: 29.7 kB / 0.8113 GB, free: 404 kB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.2629, allocations: 4.312 kB / 0.8113 GB, free: 400 kB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.2629, allocations: 11.94 kB / 0.8113 GB, free: 388 kB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.2631, allocations: 55.91 kB / 0.8114 GB, free: 332 kB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.2632, allocations: 4 kB / 0.8114 GB, free: 328 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002609/0.2634, allocations: 35.77 kB / 0.8114 GB, free: 292 kB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/0.2635, allocations: 8 kB / 0.8114 GB, free: 284 kB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001606/0.2636, allocations: 157.8 kB / 0.8116 GB, free: 116 kB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.32e-05/0.2637, allocations: 31.62 kB / 0.8116 GB, free: 84 kB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004658/0.2642, allocations: 200.5 kB / 0.8118 GB, free: 15.87 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2642, allocations: 3.938 kB / 0.8118 GB, free: 15.87 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2642, allocations: 0 / 0.8118 GB, free: 15.87 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000464/0.2647, allocations: 486.1 kB / 0.8123 GB, free: 15.31 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004079/0.2651, allocations: 353.2 kB / 0.8126 GB, free: 14.92 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2651, allocations: 0 / 0.8126 GB, free: 14.92 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.2653, allocations: 39.92 kB / 0.8127 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.2653, allocations: 0 / 0.8127 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.2653, allocations: 7.984 kB / 0.8127 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2653, allocations: 3.938 kB / 0.8127 GB, free: 14.87 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.2653, allocations: 7.938 kB / 0.8127 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000606/0.2659, allocations: 279.1 kB / 0.8129 GB, free: 14.57 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.2661, allocations: 124.8 kB / 0.8131 GB, free: 14.43 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.2661, allocations: 15.92 kB / 0.8131 GB, free: 14.41 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.2664, allocations: 15.92 kB / 0.8131 GB, free: 14.4 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.684e-05/0.2664, allocations: 11.98 kB / 0.8131 GB, free: 14.39 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.2665, allocations: 11.98 kB / 0.8131 GB, free: 14.38 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.000239/0.2667, allocations: 243.2 kB / 0.8134 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2667, allocations: 0 / 0.8134 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0004341/0.2671, allocations: 128 kB / 0.8135 GB, free: 14.01 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00113/0.2683, allocations: 0.9121 MB / 0.8144 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0004921/0.2688, allocations: 231.5 kB / 0.8146 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.2688, allocations: 0 / 0.8146 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.269, allocations: 71.89 kB / 0.8147 GB, free: 12.77 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009219/0.2699, allocations: 212.8 kB / 0.8149 GB, free: 12.57 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.2741, allocations: 3.033 MB / 0.8178 GB, free: 9.391 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.2745, allocations: 0.784 MB / 0.8186 GB, free: 8.582 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.000287/0.2748, allocations: 59.25 kB / 0.8186 GB, free: 8.527 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.275, allocations: 127.3 kB / 0.8188 GB, free: 8.402 MB / 0.6387 GB Notification: Performance of SimCode: time 1.032e-06/0.275, allocations: 0 / 0.8188 GB, free: 8.402 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.3044, allocations: 10.11 MB / 0.8286 GB, free: 14.49 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.116/8.42, allocations: 8.578 kB / 0.8286 GB, free: 14.48 MB / 0.6544 GB (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_8_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)