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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002082/0.002082, allocations: 193.3 kB / 16.14 MB, free: 6.711 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.405/1.405, allocations: 222.9 MB / 239.8 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.349/2.349, allocations: 390.2 MB / 0.6642 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 67.91 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7378/0.7391, allocations: 140.4 MB / 0.9489 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01387/0.753, allocations: 14.4 MB / 0.963 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005643/0.7587, allocations: 3.686 MB / 0.9666 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006019/0.7593, allocations: 15.66 kB / 0.9666 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006784/0.76, allocations: 169 kB / 0.9667 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.7615, allocations: 0.5445 MB / 0.9673 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009267/0.7625, allocations: 346 kB / 0.9676 GB, free: 9.812 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001755/0.7642, allocations: 1.457 MB / 0.969 GB, free: 9.008 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004387/0.7647, allocations: 271.6 kB / 0.9693 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005045/0.7652, allocations: 318 kB / 0.9696 GB, free: 8.672 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004184/0.7656, allocations: 312.4 kB / 0.9699 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.504e-05/0.7657, allocations: 16.78 kB / 0.9699 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006439/0.7664, allocations: 247.9 kB / 0.9701 GB, free: 8.355 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.7665, allocations: 84.3 kB / 0.9702 GB, free: 8.293 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002356/0.7667, allocations: 193.9 kB / 0.9704 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007842/0.7675, allocations: 0.5767 MB / 0.971 GB, free: 7.793 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.7675, allocations: 4.703 kB / 0.971 GB, free: 7.789 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.253e-06/0.7675, allocations: 0 / 0.971 GB, free: 7.789 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.7676, allocations: 1 kB / 0.971 GB, free: 7.789 MB / 0.7325 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.001311/0.7689, allocations: 0.7496 MB / 0.9717 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.7689, allocations: 9.344 kB / 0.9717 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002095/0.7691, allocations: 48.97 kB / 0.9718 GB, free: 7.102 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007535/0.7699, allocations: 473.1 kB / 0.9722 GB, free: 6.691 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.7699, allocations: 23.53 kB / 0.9722 GB, free: 6.676 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.884e-05/0.77, allocations: 26.75 kB / 0.9723 GB, free: 6.668 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006128/0.7706, allocations: 312.4 kB / 0.9726 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.7707, allocations: 1.312 kB / 0.9726 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.7707, allocations: 10.72 kB / 0.9726 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.7707, allocations: 6.812 kB / 0.9726 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004816/0.7712, allocations: 194.3 kB / 0.9728 GB, free: 6.355 MB / 0.7325 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.001881/0.7731, allocations: 1.485 MB / 0.9742 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000494/0.7736, allocations: 162.2 kB / 0.9744 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.7738, allocations: 66.22 kB / 0.9744 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002592/0.7741, allocations: 87.7 kB / 0.9745 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003438/0.7744, allocations: 138.3 kB / 0.9746 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.934e-06/0.7744, allocations: 0 / 0.9746 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0007042/0.7752, allocations: 235 kB / 0.9749 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.7752, allocations: 55.06 kB / 0.9749 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004045/0.7756, allocations: 333.7 kB / 0.9752 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.7757, allocations: 36.33 kB / 0.9753 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.7759, allocations: 216.6 kB / 0.9755 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.563e-05/0.7759, allocations: 49.86 kB / 0.9755 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.886e-05/0.776, allocations: 56.8 kB / 0.9756 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.7762, allocations: 342.2 kB / 0.9759 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/0.7764, allocations: 73.52 kB / 0.976 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/0.7767, allocations: 146.8 kB / 0.9761 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.7772, allocations: 245.2 kB / 0.9764 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.7772, allocations: 5.125 kB / 0.9764 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006154/0.7778, allocations: 313.8 kB / 0.9767 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/0.7778, allocations: 32.73 kB / 0.9767 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.7779, allocations: 3.781 kB / 0.9767 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.7779, allocations: 11.94 kB / 0.9767 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.7781, allocations: 54 kB / 0.9768 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.7782, allocations: 7.516 kB / 0.9768 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.7785, allocations: 37.52 kB / 0.9768 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.7785, allocations: 14.12 kB / 0.9768 GB, free: 2.938 MB / 0.7325 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.0001744/0.7787, allocations: 157.3 kB / 0.977 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.039e-05/0.7787, allocations: 36.72 kB / 0.977 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004776/0.7792, allocations: 194.9 kB / 0.9772 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.7792, allocations: 6.062 kB / 0.9772 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.7792, allocations: 0 / 0.9772 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005014/0.7798, allocations: 476.8 kB / 0.9776 GB, free: 2.164 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00044/0.7802, allocations: 353.8 kB / 0.978 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.7802, allocations: 5.062 kB / 0.978 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.7804, allocations: 34.88 kB / 0.978 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.7804, allocations: 5.125 kB / 0.978 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.7804, allocations: 5.094 kB / 0.978 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.7804, allocations: 5.125 kB / 0.978 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7805, allocations: 0 / 0.978 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006761/0.7811, allocations: 288 kB / 0.9783 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.7813, allocations: 121.8 kB / 0.9784 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.574e-05/0.7813, allocations: 5.188 kB / 0.9784 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.7816, allocations: 17.08 kB / 0.9784 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.109e-05/0.7817, allocations: 20.06 kB / 0.9785 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.7817, allocations: 4.75 kB / 0.9785 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002723/0.782, allocations: 242.4 kB / 0.9787 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.144e-06/0.782, allocations: 4 kB / 0.9787 GB, free: 1.332 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005192/0.7825, allocations: 118.1 kB / 0.9788 GB, free: 1.305 MB / 0.7325 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.0003828/0.7829, allocations: 188.5 kB / 0.979 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005131/0.7834, allocations: 220 kB / 0.9792 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.7835, allocations: 0 / 0.9792 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001905/0.7837, allocations: 72.08 kB / 0.9793 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009897/0.7847, allocations: 201.5 kB / 0.9795 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/0.7862, allocations: 0.8612 MB / 0.9803 GB, free: 276 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.7865, allocations: 0.7917 MB / 0.9811 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002917/0.7869, allocations: 68.3 kB / 0.9811 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.093e-05/0.7869, allocations: 29.38 kB / 0.9812 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of SimCode: time 3.3e-07/0.7869, allocations: 0 / 0.9812 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of Templates: time 0.0123/0.7992, allocations: 6.55 MB / 0.9876 GB, free: 9.91 MB / 0.7481 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches