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/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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 108 kB / 15.61 MB, free: 152 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.001248/0.001247, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.876/2.876, allocations: 472.6 MB / 0.7451 GB, free: 4.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 67.98 kB / 0.912 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3374, allocations: 159.9 MB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01874/0.3562, allocations: 14.44 MB / 1.082 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.005621/0.3619, allocations: 3.642 MB / 1.086 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006294/0.3626, allocations: 19.94 kB / 1.086 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007073/0.3633, allocations: 202.7 kB / 1.086 GB, free: 8.082 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001779/0.3651, allocations: 0.5946 MB / 1.087 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.3662, allocations: 377.9 kB / 1.087 GB, free: 7.117 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001348/0.3676, allocations: 1.095 MB / 1.088 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004393/0.368, allocations: 305.1 kB / 1.088 GB, free: 5.719 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008874/0.3689, allocations: 394.1 kB / 1.089 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003841/0.3693, allocations: 306.6 kB / 1.089 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.245e-05/0.3694, allocations: 32 kB / 1.089 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006097/0.37, allocations: 263.5 kB / 1.089 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.3701, allocations: 99.61 kB / 1.089 GB, free: 4.648 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002218/0.3703, allocations: 218.9 kB / 1.09 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007307/0.3711, allocations: 0.5805 MB / 1.09 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3711, allocations: 0 / 1.09 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3711, allocations: 0 / 1.09 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.046e-05/0.3711, allocations: 8 kB / 1.09 GB, free: 3.844 MB / 0.8419 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.001176/0.3723, allocations: 0.7457 MB / 1.091 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.3724, allocations: 8.031 kB / 1.091 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.3726, allocations: 44.47 kB / 1.091 GB, free: 2.992 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007203/0.3733, allocations: 447.7 kB / 1.091 GB, free: 2.516 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.3733, allocations: 24.94 kB / 1.091 GB, free: 2.492 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.218e-05/0.3734, allocations: 27.94 kB / 1.091 GB, free: 2.465 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.374, allocations: 310.2 kB / 1.092 GB, free: 2.145 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.374, allocations: 3.906 kB / 1.092 GB, free: 2.141 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/0.3741, allocations: 12 kB / 1.092 GB, free: 2.129 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.3741, allocations: 8 kB / 1.092 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00051/0.3746, allocations: 198 kB / 1.092 GB, free: 1.926 MB / 0.8419 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.001813/0.3764, allocations: 1.493 MB / 1.093 GB, free: 312 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000432/0.3769, allocations: 150.6 kB / 1.094 GB, free: 152 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.3771, allocations: 77.06 kB / 1.094 GB, free: 72 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000166/0.3773, allocations: 85.11 kB / 1.094 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002961/0.3776, allocations: 127.3 kB / 1.094 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.684e-06/0.3776, allocations: 0 / 1.094 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0006288/0.3782, allocations: 234.7 kB / 1.094 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.3783, allocations: 59.34 kB / 1.094 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003728/0.3786, allocations: 349.6 kB / 1.094 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.3787, allocations: 29.7 kB / 1.094 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.3788, allocations: 215.7 kB / 1.095 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.3789, allocations: 51.27 kB / 1.095 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.268e-05/0.379, allocations: 53.7 kB / 1.095 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.3791, allocations: 342.8 kB / 1.095 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.3793, allocations: 71.95 kB / 1.095 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.3796, allocations: 145.8 kB / 1.095 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.38, allocations: 253.2 kB / 1.096 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3801, allocations: 0 / 1.096 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006105/0.3807, allocations: 310.8 kB / 1.096 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.3807, allocations: 33.7 kB / 1.096 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.3807, allocations: 7.984 kB / 1.096 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.3808, allocations: 4 kB / 1.096 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.381, allocations: 55.84 kB / 1.096 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.381, allocations: 7.938 kB / 1.096 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.3813, allocations: 35.67 kB / 1.096 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.784e-05/0.3813, allocations: 12 kB / 1.096 GB, free: 13.46 MB / 0.8575 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.0001706/0.3815, allocations: 162.5 kB / 1.096 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.659e-05/0.3816, allocations: 35.62 kB / 1.096 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004638/0.382, allocations: 194.3 kB / 1.096 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.3821, allocations: 11.92 kB / 1.096 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3821, allocations: 0 / 1.096 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005091/0.3826, allocations: 487.7 kB / 1.097 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004167/0.383, allocations: 357.3 kB / 1.097 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.383, allocations: 4 kB / 1.097 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.3832, allocations: 31.92 kB / 1.097 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3832, allocations: 0 / 1.097 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.3832, allocations: 8 kB / 1.097 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.3833, allocations: 3.938 kB / 1.097 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3833, allocations: 3.984 kB / 1.097 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006354/0.3839, allocations: 282.8 kB / 1.097 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.384, allocations: 124.7 kB / 1.098 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.038e-05/0.3841, allocations: 4 kB / 1.098 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002395/0.3843, allocations: 23.91 kB / 1.098 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.263e-05/0.3844, allocations: 11.98 kB / 1.098 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.3844, allocations: 11.98 kB / 1.098 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000246/0.3847, allocations: 247.2 kB / 1.098 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3847, allocations: 0 / 1.098 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004698/0.3852, allocations: 119.8 kB / 1.098 GB, free: 11.21 MB / 0.8575 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.0003912/0.3856, allocations: 203 kB / 1.098 GB, free: 11 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005239/0.3861, allocations: 235.6 kB / 1.098 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3861, allocations: 4.188 kB / 1.098 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.3863, allocations: 67.89 kB / 1.098 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009582/0.3873, allocations: 219.9 kB / 1.099 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.3887, allocations: 0.7386 MB / 1.099 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.389, allocations: 0.7918 MB / 1.1 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.00026/0.3893, allocations: 59.25 kB / 1.1 GB, free: 8.84 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.408e-05/0.3894, allocations: 39.36 kB / 1.1 GB, free: 8.801 MB / 0.8575 GB Notification: Performance of SimCode: time 3.21e-07/0.3894, allocations: 3.938 kB / 1.1 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of Templates: time 0.01275/0.4021, allocations: 7.146 MB / 1.107 GB, free: 1.742 MB / 0.8575 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches