Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.255/2.255, allocations: 390.3 MB / 405.3 MB, free: 13.51 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.001122/0.001122, allocations: 184.2 kB / 498.1 MB, free: 5.77 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.518/1.518, allocations: 223.2 MB / 0.7948 GB, free: 18.87 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.00103/0.00103, allocations: 109.7 kB / 0.9346 GB, free: 7.113 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003993/0.0003992, allocations: 8.906 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2919, allocations: 142.4 MB / 1.223 GB, free: 89.55 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.18/1.472, allocations: 407 MB / 1.62 GB, free: 9.742 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004114/1.473, allocations: 89.45 kB / 1.62 GB, free: 9.695 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 0.2232/1.696, allocations: 107 MB / 1.725 GB, free: 1.137 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.232e-06/1.696, allocations: 8 kB / 1.725 GB, free: 1.129 MB / 1.042 GB Notification: Performance of Transformations before backend: time 2.75e-05/1.696, allocations: 7.938 kB / 1.725 GB, free: 1.121 MB / 1.042 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.001337/1.697, allocations: 0.7193 MB / 1.726 GB, free: 352 kB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/1.697, allocations: 8.031 kB / 1.726 GB, free: 344 kB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/1.698, allocations: 55.33 kB / 1.726 GB, free: 288 kB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01427/1.712, allocations: 6.87 MB / 1.732 GB, free: 9.309 MB / 1.057 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/1.712, allocations: 20.56 kB / 1.732 GB, free: 9.289 MB / 1.057 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.083e-05/1.712, allocations: 35.91 kB / 1.732 GB, free: 9.254 MB / 1.057 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006446/1.713, allocations: 306.2 kB / 1.733 GB, free: 8.93 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/1.713, allocations: 0 / 1.733 GB, free: 8.93 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/1.713, allocations: 12 kB / 1.733 GB, free: 8.918 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/1.713, allocations: 15.95 kB / 1.733 GB, free: 8.902 MB / 1.057 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/1.713, allocations: 198.1 kB / 1.733 GB, free: 8.711 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/1.715, allocations: 1.489 MB / 1.734 GB, free: 7.094 MB / 1.057 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004574/1.716, allocations: 170.6 kB / 1.735 GB, free: 6.918 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/1.716, allocations: 85.36 kB / 1.735 GB, free: 6.816 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002994/1.716, allocations: 136.1 kB / 1.735 GB, free: 6.672 MB / 1.057 GB Notification: Performance of pre-optimization done (n=15): time 2.545e-06/1.716, allocations: 0 / 1.735 GB, free: 6.672 MB / 1.057 GB Notification: Performance of matching and sorting (n=15): time 0.0006365/1.717, allocations: 253.8 kB / 1.735 GB, free: 6.418 MB / 1.057 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/1.717, allocations: 59.34 kB / 1.735 GB, free: 6.348 MB / 1.057 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003435/1.717, allocations: 316.9 kB / 1.735 GB, free: 6.035 MB / 1.057 GB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/1.717, allocations: 25.7 kB / 1.735 GB, free: 6.004 MB / 1.057 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/1.717, allocations: 211.8 kB / 1.736 GB, free: 5.793 MB / 1.057 GB Notification: Performance of collectInitialBindings (initialization): time 4.829e-05/1.717, allocations: 55.2 kB / 1.736 GB, free: 5.738 MB / 1.057 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.285e-05/1.717, allocations: 4 kB / 1.736 GB, free: 5.734 MB / 1.057 GB Notification: Performance of setup shared object (initialization): time 0.0001603/1.718, allocations: 350.8 kB / 1.736 GB, free: 5.383 MB / 1.057 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/1.718, allocations: 72.33 kB / 1.736 GB, free: 5.312 MB / 1.057 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/1.718, allocations: 158.6 kB / 1.736 GB, free: 5.125 MB / 1.057 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/1.718, allocations: 118.6 kB / 1.736 GB, free: 5.004 MB / 1.057 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.718, allocations: 0 / 1.736 GB, free: 5.004 MB / 1.057 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005702/1.719, allocations: 327.4 kB / 1.737 GB, free: 4.672 MB / 1.057 GB Notification: Performance of prepare postOptimizeDAE: time 3.848e-05/1.719, allocations: 29.7 kB / 1.737 GB, free: 4.637 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/1.719, allocations: 11.95 kB / 1.737 GB, free: 4.625 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/1.719, allocations: 4 kB / 1.737 GB, free: 4.621 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/1.719, allocations: 55.91 kB / 1.737 GB, free: 4.566 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/1.719, allocations: 12.17 kB / 1.737 GB, free: 4.555 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/1.72, allocations: 47.67 kB / 1.737 GB, free: 4.508 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.318e-05/1.72, allocations: 12 kB / 1.737 GB, free: 4.496 MB / 1.057 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001626/1.72, allocations: 153.8 kB / 1.737 GB, free: 4.336 MB / 1.057 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.623e-05/1.72, allocations: 39.55 kB / 1.737 GB, free: 4.297 MB / 1.057 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004544/1.72, allocations: 203.2 kB / 1.737 GB, free: 4.09 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/1.72, allocations: 7.953 kB / 1.737 GB, free: 4.082 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/1.72, allocations: 3.984 kB / 1.737 GB, free: 4.078 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004676/1.721, allocations: 491.7 kB / 1.738 GB, free: 3.512 MB / 1.057 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004225/1.721, allocations: 361.3 kB / 1.738 GB, free: 3.109 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/1.721, allocations: 0 / 1.738 GB, free: 3.109 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/1.721, allocations: 31.97 kB / 1.738 GB, free: 3.078 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/1.721, allocations: 3.938 kB / 1.738 GB, free: 3.074 MB / 1.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/1.721, allocations: 8 kB / 1.738 GB, free: 3.066 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/1.721, allocations: 0 / 1.738 GB, free: 3.066 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/1.721, allocations: 7.953 kB / 1.738 GB, free: 3.059 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000594/1.722, allocations: 302.5 kB / 1.738 GB, free: 2.746 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001499/1.722, allocations: 132.7 kB / 1.739 GB, free: 2.598 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.279e-05/1.722, allocations: 0 / 1.739 GB, free: 2.598 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/1.722, allocations: 19.98 kB / 1.739 GB, free: 2.578 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.319e-05/1.723, allocations: 19.92 kB / 1.739 GB, free: 2.559 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/1.723, allocations: 8 kB / 1.739 GB, free: 2.551 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.0002476/1.723, allocations: 255.2 kB / 1.739 GB, free: 2.309 MB / 1.057 GB Notification: Performance of sort global known variables: time 1.1e-07/1.723, allocations: 4 kB / 1.739 GB, free: 2.305 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.0004925/1.723, allocations: 139.6 kB / 1.739 GB, free: 2.168 MB / 1.057 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 (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.0004329/1.724, allocations: 235.8 kB / 1.739 GB, free: 1.93 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.0004793/1.724, allocations: 244.9 kB / 1.739 GB, free: 1.68 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/1.724, allocations: 0 / 1.739 GB, free: 1.68 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.0001718/1.724, allocations: 67.91 kB / 1.739 GB, free: 1.613 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008846/1.725, allocations: 202.3 kB / 1.74 GB, free: 1.414 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001454/1.727, allocations: 0.9559 MB / 1.741 GB, free: 440 kB / 1.057 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/1.727, allocations: 0.7962 MB / 1.741 GB, free: 15.61 MB / 1.073 GB Notification: Performance of simCode: alias equations: time 0.0002462/1.727, allocations: 55.27 kB / 1.741 GB, free: 15.55 MB / 1.073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/1.728, allocations: 39.42 kB / 1.741 GB, free: 15.52 MB / 1.073 GB Notification: Performance of SimCode: time 4.21e-07/1.728, allocations: 0 / 1.741 GB, free: 15.52 MB / 1.073 GB Notification: Performance of Templates: time 0.01245/1.74, allocations: 7.176 MB / 1.748 GB, free: 8.434 MB / 1.073 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","../files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches