Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel") translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.383/2.383, allocations: 390.5 MB / 398 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 180 kB / 491.2 MB, free: 1.578 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.7/1.7, allocations: 221.5 MB / 0.7868 GB, free: 13.3 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 95.89 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.446e-05/1.449e-05, allocations: 3.984 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3127, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.292/1.604, allocations: 407.1 MB / 1.61 GB, free: 7.738 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/1.605, allocations: 86.83 kB / 1.61 GB, free: 7.695 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 0.2428/1.848, allocations: 106.2 MB / 1.714 GB, free: 5.562 MB / 1.12 GB Notification: Performance of FrontEnd: time 1.774e-06/1.848, allocations: 0 / 1.714 GB, free: 5.562 MB / 1.12 GB Notification: Performance of Transformations before backend: time 4.912e-05/1.848, allocations: 4 kB / 1.714 GB, free: 5.559 MB / 1.12 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.001384/1.849, allocations: 0.6577 MB / 1.714 GB, free: 4.848 MB / 1.12 GB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/1.849, allocations: 8.031 kB / 1.714 GB, free: 4.84 MB / 1.12 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/1.849, allocations: 47.48 kB / 1.714 GB, free: 4.793 MB / 1.12 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01606/1.866, allocations: 6.79 MB / 1.721 GB, free: 13.9 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.893e-05/1.866, allocations: 11.98 kB / 1.721 GB, free: 13.89 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.903e-05/1.866, allocations: 16 kB / 1.721 GB, free: 13.88 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003955/1.866, allocations: 137.1 kB / 1.721 GB, free: 13.74 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/1.867, allocations: 253.1 kB / 1.721 GB, free: 13.47 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/1.867, allocations: 0 / 1.721 GB, free: 13.47 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.095e-05/1.867, allocations: 3.953 kB / 1.721 GB, free: 13.47 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.792e-05/1.867, allocations: 11.98 kB / 1.721 GB, free: 13.46 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002319/1.869, allocations: 1.434 MB / 1.723 GB, free: 11.91 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002765/1.869, allocations: 118.6 kB / 1.723 GB, free: 11.78 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.921e-05/1.869, allocations: 52.86 kB / 1.723 GB, free: 11.73 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/1.87, allocations: 85.09 kB / 1.723 GB, free: 11.62 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000218/1.87, allocations: 105.2 kB / 1.723 GB, free: 11.51 MB / 1.135 GB Notification: Performance of pre-optimization done (n=15): time 2.745e-06/1.87, allocations: 0 / 1.723 GB, free: 11.51 MB / 1.135 GB Notification: Performance of matching and sorting (n=15): time 0.0004292/1.87, allocations: 145.2 kB / 1.723 GB, free: 11.36 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/1.87, allocations: 51.62 kB / 1.723 GB, free: 11.3 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/1.871, allocations: 293 kB / 1.724 GB, free: 11.01 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/1.871, allocations: 29.64 kB / 1.724 GB, free: 10.97 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/1.871, allocations: 215.8 kB / 1.724 GB, free: 10.76 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 5.591e-05/1.871, allocations: 51.3 kB / 1.724 GB, free: 10.71 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.315e-05/1.871, allocations: 0 / 1.724 GB, free: 10.71 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0001406/1.871, allocations: 342.8 kB / 1.724 GB, free: 10.36 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.847e-05/1.871, allocations: 51.98 kB / 1.724 GB, free: 10.31 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/1.871, allocations: 117.9 kB / 1.724 GB, free: 10.16 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/1.872, allocations: 76.98 kB / 1.724 GB, free: 10.09 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/1.872, allocations: 0 / 1.724 GB, free: 10.09 MB / 1.135 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005035/1.872, allocations: 230 kB / 1.725 GB, free: 9.859 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 5.858e-05/1.872, allocations: 37.7 kB / 1.725 GB, free: 9.816 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/1.872, allocations: 320 / 1.725 GB, free: 9.816 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/1.872, allocations: 11.95 kB / 1.725 GB, free: 9.805 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/1.873, allocations: 59.91 kB / 1.725 GB, free: 9.746 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/1.873, allocations: 7.938 kB / 1.725 GB, free: 9.738 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003633/1.873, allocations: 31.73 kB / 1.725 GB, free: 9.707 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.124e-05/1.873, allocations: 15.98 kB / 1.725 GB, free: 9.691 MB / 1.135 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001372/1.873, allocations: 112.9 kB / 1.725 GB, free: 9.574 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.992e-05/1.873, allocations: 31.62 kB / 1.725 GB, free: 9.543 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003703/1.874, allocations: 151.5 kB / 1.725 GB, free: 9.387 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/1.874, allocations: 0 / 1.725 GB, free: 9.387 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/1.874, allocations: 7.938 kB / 1.725 GB, free: 9.379 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004281/1.874, allocations: 455.7 kB / 1.726 GB, free: 8.848 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006108/1.875, allocations: 302 kB / 1.726 GB, free: 8.516 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/1.875, allocations: 7.984 kB / 1.726 GB, free: 8.508 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/1.875, allocations: 35.98 kB / 1.726 GB, free: 8.473 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/1.875, allocations: 0 / 1.726 GB, free: 8.473 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.294e-05/1.875, allocations: 0 / 1.726 GB, free: 8.473 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/1.875, allocations: 7.938 kB / 1.726 GB, free: 8.465 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/1.875, allocations: 0 / 1.726 GB, free: 8.465 MB / 1.135 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00048/1.875, allocations: 228.6 kB / 1.726 GB, free: 8.223 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/1.876, allocations: 132.7 kB / 1.726 GB, free: 8.074 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.414e-05/1.876, allocations: 3.938 kB / 1.726 GB, free: 8.07 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/1.876, allocations: 19.98 kB / 1.726 GB, free: 8.051 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.805e-05/1.876, allocations: 23.91 kB / 1.726 GB, free: 8.027 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/1.876, allocations: 7.984 kB / 1.726 GB, free: 8.02 MB / 1.135 GB Notification: Performance of sorting global known variables: time 0.0002752/1.876, allocations: 216.6 kB / 1.727 GB, free: 7.812 MB / 1.135 GB Notification: Performance of sort global known variables: time 1.7e-07/1.876, allocations: 0 / 1.727 GB, free: 7.812 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.0006734/1.877, allocations: 127.9 kB / 1.727 GB, free: 7.688 MB / 1.135 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) * 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 (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.0006002/1.878, allocations: 243.9 kB / 1.727 GB, free: 7.438 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.000375/1.878, allocations: 188.6 kB / 1.727 GB, free: 7.242 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/1.878, allocations: 0 / 1.727 GB, free: 7.242 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0001171/1.878, allocations: 51.92 kB / 1.727 GB, free: 7.191 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/1.879, allocations: 175.1 kB / 1.727 GB, free: 7.023 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/1.881, allocations: 0.5216 MB / 1.728 GB, free: 6.477 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/1.881, allocations: 0.8031 MB / 1.729 GB, free: 5.648 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.0003908/1.882, allocations: 75.05 kB / 1.729 GB, free: 5.574 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.778e-05/1.882, allocations: 31.44 kB / 1.729 GB, free: 5.543 MB / 1.135 GB Notification: Performance of SimCode: time 4.3e-07/1.882, allocations: 0 / 1.729 GB, free: 5.543 MB / 1.135 GB Notification: Performance of Templates: time 0.01347/1.895, allocations: 6.119 MB / 1.735 GB, free: 15.51 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","../files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches