Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.445/1.445, allocations: 249.5 MB / 257 MB, free: 6.984 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.001096/0.001096, allocations: 176.9 kB / 316.3 MB, free: 3.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.3 MB / 0.5671 GB, free: 15.81 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.0008608/0.0008609, allocations: 90.47 kB / 0.6714 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.012e-05/2.013e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2421, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.574/1.816, allocations: 387.7 MB / 1.264 GB, free: 261.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/1.816, allocations: 85.31 kB / 1.264 GB, free: 261.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.2086/2.025, allocations: 100.5 MB / 1.362 GB, free: 231.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.473e-06/2.025, allocations: 3.938 kB / 1.362 GB, free: 231.6 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.551e-05/2.025, allocations: 7.812 kB / 1.362 GB, free: 231.6 MB / 0.8698 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.000966/2.026, allocations: 0.6558 MB / 1.363 GB, free: 231 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/2.026, allocations: 7.812 kB / 1.363 GB, free: 231 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/2.026, allocations: 46.95 kB / 1.363 GB, free: 231 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01181/2.038, allocations: 6.471 MB / 1.369 GB, free: 227 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/2.038, allocations: 7.75 kB / 1.369 GB, free: 227 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.075e-05/2.038, allocations: 15.56 kB / 1.369 GB, free: 227 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000331/2.038, allocations: 141.6 kB / 1.369 GB, free: 227 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003514/2.039, allocations: 241.1 kB / 1.369 GB, free: 226.8 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/2.039, allocations: 4 kB / 1.369 GB, free: 226.8 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.592e-05/2.039, allocations: 0 / 1.369 GB, free: 226.8 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.153e-05/2.039, allocations: 15.7 kB / 1.369 GB, free: 226.8 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001514/2.04, allocations: 1.425 MB / 1.371 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/2.041, allocations: 110.4 kB / 1.371 GB, free: 225.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.912e-05/2.041, allocations: 50.48 kB / 1.371 GB, free: 225.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000119/2.041, allocations: 88.98 kB / 1.371 GB, free: 225.3 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001793/2.041, allocations: 101.9 kB / 1.371 GB, free: 225.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/2.041, allocations: 0 / 1.371 GB, free: 225.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15): time 0.000362/2.041, allocations: 152.2 kB / 1.371 GB, free: 225.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/2.041, allocations: 51.41 kB / 1.371 GB, free: 225.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002504/2.042, allocations: 276.5 kB / 1.372 GB, free: 224.9 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/2.042, allocations: 29.45 kB / 1.372 GB, free: 224.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000111/2.042, allocations: 218.8 kB / 1.372 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.578e-05/2.042, allocations: 51.11 kB / 1.372 GB, free: 224.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/2.042, allocations: 0 / 1.372 GB, free: 224.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.604e-05/2.042, allocations: 342.5 kB / 1.372 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.854e-05/2.042, allocations: 50.44 kB / 1.372 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/2.042, allocations: 131.9 kB / 1.372 GB, free: 224.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/2.042, allocations: 62 kB / 1.372 GB, free: 224.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/2.042, allocations: 7.906 kB / 1.372 GB, free: 224.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003871/2.043, allocations: 231 kB / 1.373 GB, free: 224 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/2.043, allocations: 33.52 kB / 1.373 GB, free: 224 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/2.043, allocations: 3.188 kB / 1.373 GB, free: 224 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/2.043, allocations: 3 kB / 1.373 GB, free: 224 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/2.043, allocations: 69.45 kB / 1.373 GB, free: 223.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/2.043, allocations: 12.08 kB / 1.373 GB, free: 223.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/2.043, allocations: 32.55 kB / 1.373 GB, free: 223.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/2.043, allocations: 7.438 kB / 1.373 GB, free: 223.9 MB / 0.8698 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 6.769e-05/2.043, allocations: 116.8 kB / 1.373 GB, free: 223.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/2.044, allocations: 30.56 kB / 1.373 GB, free: 223.8 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002579/2.044, allocations: 150.4 kB / 1.373 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/2.044, allocations: 0 / 1.373 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/2.044, allocations: 4 kB / 1.373 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002251/2.044, allocations: 456.7 kB / 1.374 GB, free: 223.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000314/2.044, allocations: 307.1 kB / 1.374 GB, free: 222.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/2.044, allocations: 3.906 kB / 1.374 GB, free: 222.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/2.045, allocations: 31.52 kB / 1.374 GB, free: 222.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/2.045, allocations: 0 / 1.374 GB, free: 222.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/2.045, allocations: 7.969 kB / 1.374 GB, free: 222.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/2.045, allocations: 0 / 1.374 GB, free: 222.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/2.045, allocations: 0 / 1.374 GB, free: 222.9 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/2.045, allocations: 225.6 kB / 1.374 GB, free: 222.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/2.045, allocations: 136.2 kB / 1.374 GB, free: 222.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.504e-05/2.045, allocations: 0 / 1.374 GB, free: 222.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/2.045, allocations: 23.72 kB / 1.374 GB, free: 222.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/2.045, allocations: 23.47 kB / 1.374 GB, free: 222.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/2.045, allocations: 7.719 kB / 1.374 GB, free: 222.6 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001753/2.046, allocations: 218.7 kB / 1.375 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.3e-07/2.046, allocations: 0 / 1.375 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0004601/2.046, allocations: 125.6 kB / 1.375 GB, free: 222.4 MB / 0.8698 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.0003646/2.046, allocations: 240.9 kB / 1.375 GB, free: 222.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002439/2.047, allocations: 188.8 kB / 1.375 GB, free: 222.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/2.047, allocations: 4.125 kB / 1.375 GB, free: 222.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.033e-05/2.047, allocations: 50.8 kB / 1.375 GB, free: 222.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008395/2.048, allocations: 176.9 kB / 1.375 GB, free: 222.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009195/2.049, allocations: 0.5272 MB / 1.376 GB, free: 221.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/2.049, allocations: 0.7955 MB / 1.377 GB, free: 220.9 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002308/2.049, allocations: 60.06 kB / 1.377 GB, free: 220.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.389e-05/2.049, allocations: 36.92 kB / 1.377 GB, free: 220.9 MB / 0.8698 GB Notification: Performance of SimCode: time 2.5e-07/2.049, allocations: 4 kB / 1.377 GB, free: 220.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.0104/2.059, allocations: 6.071 MB / 1.383 GB, free: 216.5 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches