Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_11_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_11_Buildings.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009081/0.009081, allocations: 99.48 kB / 15.73 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002097/0.002097, allocations: 196.6 kB / 16.68 MB, free: 5.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.589/2.589, allocations: 469.8 MB / 0.7425 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002092, allocations: 67.91 kB / 1.065 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9311/0.9332, allocations: 159.1 MB / 1.221 GB, free: 2.098 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.0161/0.9493, allocations: 14.46 MB / 1.235 GB, free: 3.57 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.005442/0.9547, allocations: 3.656 MB / 1.238 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005472/0.9553, allocations: 19.88 kB / 1.238 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000655/0.9559, allocations: 202.7 kB / 1.238 GB, free: 15.69 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.9574, allocations: 0.6181 MB / 1.239 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009939/0.9584, allocations: 399.2 kB / 1.239 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001392/0.9598, allocations: 1.087 MB / 1.241 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.9602, allocations: 272.5 kB / 1.241 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008847/0.9611, allocations: 395 kB / 1.241 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003735/0.9614, allocations: 306.6 kB / 1.241 GB, free: 12.63 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.277e-05/0.9615, allocations: 32 kB / 1.241 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005666/0.962, allocations: 259.5 kB / 1.242 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.9622, allocations: 91.62 kB / 1.242 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.9624, allocations: 226.9 kB / 1.242 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0007515/0.9631, allocations: 0.5883 MB / 1.243 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.9631, allocations: 3.984 kB / 1.243 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.072e-06/0.9631, allocations: 0 / 1.243 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.9631, allocations: 0 / 1.243 GB, free: 11.45 MB / 0.9669 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.001046/0.9642, allocations: 0.753 MB / 1.243 GB, free: 10.63 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.9642, allocations: 12.03 kB / 1.243 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.9644, allocations: 52.66 kB / 1.243 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006765/0.9651, allocations: 471.9 kB / 1.244 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.9651, allocations: 20.94 kB / 1.244 GB, free: 10.05 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.775e-05/0.9651, allocations: 35.88 kB / 1.244 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005475/0.9657, allocations: 306.2 kB / 1.244 GB, free: 9.699 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.9657, allocations: 4 kB / 1.244 GB, free: 9.695 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.552e-05/0.9657, allocations: 15.94 kB / 1.244 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.296e-05/0.9658, allocations: 8 kB / 1.244 GB, free: 9.672 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000459/0.9662, allocations: 194.1 kB / 1.244 GB, free: 9.484 MB / 0.9669 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.001789/0.968, allocations: 1.486 MB / 1.246 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004473/0.9685, allocations: 154.6 kB / 1.246 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.9686, allocations: 61.58 kB / 1.246 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001397/0.9688, allocations: 89.09 kB / 1.246 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.9691, allocations: 119.3 kB / 1.246 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.9691, allocations: 7.938 kB / 1.246 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15): time 0.0006086/0.9697, allocations: 235.8 kB / 1.247 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.9697, allocations: 59.34 kB / 1.247 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.9701, allocations: 349.7 kB / 1.247 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.9701, allocations: 29.7 kB / 1.247 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.9702, allocations: 220.1 kB / 1.247 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.375e-05/0.9703, allocations: 55.59 kB / 1.247 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.727e-05/0.9704, allocations: 53.66 kB / 1.247 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.9705, allocations: 342.8 kB / 1.248 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.9707, allocations: 71.95 kB / 1.248 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.9709, allocations: 157.3 kB / 1.248 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003905/0.9713, allocations: 241.2 kB / 1.248 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.9713, allocations: 0 / 1.248 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005609/0.9719, allocations: 321.2 kB / 1.248 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.9719, allocations: 29.7 kB / 1.248 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.9719, allocations: 4 kB / 1.248 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.9719, allocations: 4 kB / 1.248 GB, free: 5.148 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.9721, allocations: 68.14 kB / 1.248 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.9721, allocations: 7.938 kB / 1.248 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.9724, allocations: 39.77 kB / 1.248 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.9724, allocations: 8 kB / 1.248 GB, free: 5.027 MB / 0.9669 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.0001482/0.9726, allocations: 157.8 kB / 1.249 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.127e-05/0.9726, allocations: 31.81 kB / 1.249 GB, free: 4.832 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004418/0.9731, allocations: 196.5 kB / 1.249 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.9731, allocations: 7.922 kB / 1.249 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.9731, allocations: 0 / 1.249 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004643/0.9735, allocations: 483.6 kB / 1.249 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/0.9739, allocations: 357.4 kB / 1.25 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.9739, allocations: 0 / 1.25 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.9741, allocations: 35.97 kB / 1.25 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.9741, allocations: 0 / 1.25 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.9741, allocations: 0 / 1.25 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.9741, allocations: 11.88 kB / 1.25 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.9741, allocations: 4 kB / 1.25 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005797/0.9747, allocations: 279.8 kB / 1.25 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.9748, allocations: 128.9 kB / 1.25 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/0.9749, allocations: 4 kB / 1.25 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.9751, allocations: 27.91 kB / 1.25 GB, free: 3.148 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.9751, allocations: 15.98 kB / 1.25 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.9752, allocations: 4 kB / 1.25 GB, free: 3.129 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002389/0.9754, allocations: 251.2 kB / 1.25 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.9754, allocations: 0 / 1.25 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003925/0.9758, allocations: 127.7 kB / 1.251 GB, free: 2.758 MB / 0.9669 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.0003341/0.9761, allocations: 203 kB / 1.251 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000489/0.9766, allocations: 223.2 kB / 1.251 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.9766, allocations: 3.938 kB / 1.251 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.9768, allocations: 67.89 kB / 1.251 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008635/0.9777, allocations: 207.9 kB / 1.251 GB, free: 2.051 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.9791, allocations: 0.7496 MB / 1.252 GB, free: 1.277 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.9795, allocations: 0.7879 MB / 1.253 GB, free: 476 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002427/0.9797, allocations: 67.23 kB / 1.253 GB, free: 408 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.075e-05/0.9798, allocations: 39.42 kB / 1.253 GB, free: 368 kB / 0.9669 GB Notification: Performance of SimCode: time 3.31e-07/0.9798, allocations: 3.938 kB / 1.253 GB, free: 364 kB / 0.9669 GB Notification: Performance of Templates: time 0.01348/0.9933, allocations: 7.192 MB / 1.26 GB, free: 9.273 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches