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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009372/0.0009375, allocations: 92.78 kB / 16.02 MB, free: 80 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.0009335/0.0009336, allocations: 181.3 kB / 16.92 MB, free: 6.652 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.444/1.444, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.792/2.792, allocations: 443.2 MB / 0.7181 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003625, allocations: 9.562 kB / 0.8801 GB, free: 41.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3369, allocations: 155.1 MB / 1.032 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01521/0.3522, allocations: 13.89 MB / 1.045 GB, free: 6.594 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00512/0.3573, allocations: 3.64 MB / 1.049 GB, free: 2.938 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005193/0.3579, allocations: 15.88 kB / 1.049 GB, free: 2.922 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0006151/0.3585, allocations: 163.1 kB / 1.049 GB, free: 2.762 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00138/0.3599, allocations: 0.5405 MB / 1.049 GB, free: 2.219 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008832/0.3608, allocations: 352.9 kB / 1.05 GB, free: 1.879 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001534/0.3623, allocations: 1.461 MB / 1.051 GB, free: 424 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000414/0.3628, allocations: 271.6 kB / 1.051 GB, free: 152 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004561/0.3632, allocations: 314.5 kB / 1.052 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003834/0.3636, allocations: 290.6 kB / 1.052 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.3637, allocations: 12 kB / 1.052 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005526/0.3642, allocations: 243.4 kB / 1.052 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.3644, allocations: 75.67 kB / 1.052 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.3646, allocations: 216.7 kB / 1.053 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005254/0.3651, allocations: 446.8 kB / 1.053 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3651, allocations: 0 / 1.053 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of FrontEnd: time 5.39e-06/0.3651, allocations: 3.984 kB / 1.053 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.3651, allocations: 3.938 kB / 1.053 GB, free: 14.57 MB / 0.8106 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.001141/0.3663, allocations: 0.6758 MB / 1.054 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3663, allocations: 8.031 kB / 1.054 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.3665, allocations: 48.47 kB / 1.054 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007077/0.3672, allocations: 475.8 kB / 1.054 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/0.3673, allocations: 24.69 kB / 1.054 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.378e-05/0.3673, allocations: 24 kB / 1.054 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005738/0.3679, allocations: 318.2 kB / 1.055 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.3679, allocations: 3.906 kB / 1.055 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.368, allocations: 12 kB / 1.055 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.368, allocations: 8 kB / 1.055 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/0.3685, allocations: 206.1 kB / 1.055 GB, free: 12.68 MB / 0.8106 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.001793/0.3703, allocations: 1.477 MB / 1.056 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004565/0.3708, allocations: 174.5 kB / 1.056 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.371, allocations: 68.83 kB / 1.056 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001737/0.3711, allocations: 93.08 kB / 1.056 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000306/0.3715, allocations: 129.4 kB / 1.057 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.694e-06/0.3715, allocations: 4 kB / 1.057 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.000636/0.3721, allocations: 257 kB / 1.057 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.3722, allocations: 55.41 kB / 1.057 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00034/0.3725, allocations: 341.5 kB / 1.057 GB, free: 9.902 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.3725, allocations: 33.7 kB / 1.057 GB, free: 9.863 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.3727, allocations: 211.8 kB / 1.057 GB, free: 9.648 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.006e-05/0.3728, allocations: 55.2 kB / 1.058 GB, free: 9.594 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.3728, allocations: 33.7 kB / 1.058 GB, free: 9.555 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3729, allocations: 342.8 kB / 1.058 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.3731, allocations: 67.95 kB / 1.058 GB, free: 9.145 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.3734, allocations: 161.3 kB / 1.058 GB, free: 8.953 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004138/0.3738, allocations: 252 kB / 1.058 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3738, allocations: 4 kB / 1.058 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005973/0.3744, allocations: 325.3 kB / 1.059 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.804e-05/0.3745, allocations: 33.69 kB / 1.059 GB, free: 8.297 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.3745, allocations: 7.984 kB / 1.059 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.3745, allocations: 11.88 kB / 1.059 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.3747, allocations: 59.91 kB / 1.059 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.3748, allocations: 4.188 kB / 1.059 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002661/0.375, allocations: 35.83 kB / 1.059 GB, free: 8.18 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.3751, allocations: 16 kB / 1.059 GB, free: 8.164 MB / 0.8106 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.0001601/0.3752, allocations: 165.6 kB / 1.059 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.3753, allocations: 35.53 kB / 1.059 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004628/0.3757, allocations: 202 kB / 1.059 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3758, allocations: 11.88 kB / 1.059 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3758, allocations: 0 / 1.059 GB, free: 7.746 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004814/0.3763, allocations: 495.7 kB / 1.06 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004119/0.3767, allocations: 349.4 kB / 1.06 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3767, allocations: 0 / 1.06 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.3769, allocations: 31.98 kB / 1.06 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3769, allocations: 0 / 1.06 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.3769, allocations: 8 kB / 1.06 GB, free: 6.746 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.3769, allocations: 3.938 kB / 1.06 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3769, allocations: 0 / 1.06 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006111/0.3775, allocations: 313.5 kB / 1.06 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.3777, allocations: 128.7 kB / 1.06 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.3777, allocations: 4 kB / 1.06 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.378, allocations: 19.92 kB / 1.061 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/0.378, allocations: 19.97 kB / 1.061 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.3781, allocations: 4 kB / 1.061 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002311/0.3783, allocations: 243.2 kB / 1.061 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3783, allocations: 4 kB / 1.061 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004122/0.3787, allocations: 120 kB / 1.061 GB, free: 5.871 MB / 0.8106 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.0003223/0.3791, allocations: 179.2 kB / 1.061 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004843/0.3795, allocations: 239.1 kB / 1.061 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3796, allocations: 4.562 kB / 1.061 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.3798, allocations: 84.72 kB / 1.061 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009894/0.3808, allocations: 197.2 kB / 1.062 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.3822, allocations: 0.9576 MB / 1.062 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.3825, allocations: 0.7882 MB / 1.063 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.721e-05/0.3826, allocations: 35.42 kB / 1.063 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of SimCode: time 2.8e-07/0.3826, allocations: 0 / 1.063 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of Templates: time 0.00857/0.3912, allocations: 5.888 MB / 1.069 GB, free: 13.49 MB / 0.8262 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches