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.004801/0.004801, allocations: 98.27 kB / 15.73 MB, free: 5.98 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.001081/0.001081, allocations: 194.4 kB / 16.67 MB, free: 5.91 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 / 240.4 MB, free: 15.07 MB / 206.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.221/2.221, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 67.89 kB / 0.9508 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.905/0.9062, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01613/0.9224, allocations: 14.43 MB / 1.102 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.00651/0.929, allocations: 3.649 MB / 1.106 GB, free: 8.566 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005853/0.9296, allocations: 20.56 kB / 1.106 GB, free: 8.559 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0006994/0.9303, allocations: 207.8 kB / 1.106 GB, free: 8.438 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001659/0.932, allocations: 0.6094 MB / 1.106 GB, free: 8.078 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001079/0.9331, allocations: 402.8 kB / 1.107 GB, free: 7.855 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001744/0.9349, allocations: 1.086 MB / 1.108 GB, free: 7.348 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005817/0.9355, allocations: 316.8 kB / 1.108 GB, free: 7.203 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.9365, allocations: 398.7 kB / 1.108 GB, free: 7.031 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00047/0.937, allocations: 304.9 kB / 1.109 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 5.78e-05/0.9371, allocations: 33.75 kB / 1.109 GB, free: 6.895 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006627/0.9377, allocations: 263.4 kB / 1.109 GB, free: 6.789 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.9379, allocations: 89.94 kB / 1.109 GB, free: 6.738 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002571/0.9381, allocations: 218.1 kB / 1.109 GB, free: 6.609 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.9392, allocations: 0.5922 MB / 1.11 GB, free: 6.383 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.9392, allocations: 5.922 kB / 1.11 GB, free: 6.379 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.543e-06/0.9392, allocations: 0 / 1.11 GB, free: 6.379 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.856e-06/0.9392, allocations: 0 / 1.11 GB, free: 6.379 MB / 0.8731 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.001317/0.9405, allocations: 0.755 MB / 1.111 GB, free: 5.766 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.9406, allocations: 9.562 kB / 1.111 GB, free: 5.766 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.9408, allocations: 50.62 kB / 1.111 GB, free: 5.742 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007845/0.9416, allocations: 471.8 kB / 1.111 GB, free: 5.402 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.9416, allocations: 23.73 kB / 1.111 GB, free: 5.387 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.934e-05/0.9417, allocations: 34.67 kB / 1.111 GB, free: 5.371 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000626/0.9423, allocations: 308 kB / 1.112 GB, free: 5.211 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.9423, allocations: 1.094 kB / 1.112 GB, free: 5.211 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.5e-05/0.9424, allocations: 11.75 kB / 1.112 GB, free: 5.203 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.023e-05/0.9424, allocations: 7.703 kB / 1.112 GB, free: 5.203 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005199/0.9429, allocations: 193.8 kB / 1.112 GB, free: 5.145 MB / 0.8731 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.001908/0.9448, allocations: 1.488 MB / 1.113 GB, free: 3.945 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005235/0.9454, allocations: 172.7 kB / 1.113 GB, free: 3.867 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000198/0.9456, allocations: 68.31 kB / 1.113 GB, free: 3.84 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001569/0.9457, allocations: 90.59 kB / 1.114 GB, free: 3.742 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003377/0.9461, allocations: 126.6 kB / 1.114 GB, free: 3.672 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.9461, allocations: 0 / 1.114 GB, free: 3.672 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.0007135/0.9468, allocations: 235 kB / 1.114 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.9469, allocations: 58.73 kB / 1.114 GB, free: 3.512 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004095/0.9473, allocations: 351.3 kB / 1.114 GB, free: 3.324 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.9473, allocations: 27.92 kB / 1.114 GB, free: 3.293 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.9475, allocations: 219.4 kB / 1.114 GB, free: 3.109 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.705e-05/0.9476, allocations: 53.53 kB / 1.115 GB, free: 3.07 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.779e-05/0.9477, allocations: 53.36 kB / 1.115 GB, free: 3.035 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.9478, allocations: 343.3 kB / 1.115 GB, free: 2.707 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.948, allocations: 73.8 kB / 1.115 GB, free: 2.684 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002506/0.9483, allocations: 148.5 kB / 1.115 GB, free: 2.566 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.9487, allocations: 252.4 kB / 1.115 GB, free: 2.379 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.9487, allocations: 0 / 1.115 GB, free: 2.379 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006204/0.9494, allocations: 315.2 kB / 1.116 GB, free: 2.223 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/0.9494, allocations: 35.36 kB / 1.116 GB, free: 2.191 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.9494, allocations: 3.672 kB / 1.116 GB, free: 2.191 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.9495, allocations: 8.219 kB / 1.116 GB, free: 2.188 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002351/0.9497, allocations: 58.72 kB / 1.116 GB, free: 2.18 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.9497, allocations: 5.453 kB / 1.116 GB, free: 2.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.95, allocations: 34.7 kB / 1.116 GB, free: 2.16 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.95, allocations: 18.09 kB / 1.116 GB, free: 2.152 MB / 0.8731 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.0001569/0.9502, allocations: 157.2 kB / 1.116 GB, free: 2.012 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.812e-05/0.9502, allocations: 31.91 kB / 1.116 GB, free: 1.996 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004993/0.9507, allocations: 194.6 kB / 1.116 GB, free: 1.91 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.9508, allocations: 6.656 kB / 1.116 GB, free: 1.906 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.9508, allocations: 0.7031 kB / 1.116 GB, free: 1.906 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004978/0.9513, allocations: 487.2 kB / 1.117 GB, free: 1.434 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004521/0.9517, allocations: 358.8 kB / 1.117 GB, free: 1.172 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.9518, allocations: 0 / 1.117 GB, free: 1.172 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.9519, allocations: 33.62 kB / 1.117 GB, free: 1.168 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.9519, allocations: 1.5 kB / 1.117 GB, free: 1.168 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.952, allocations: 6.047 kB / 1.117 GB, free: 1.164 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.952, allocations: 4.594 kB / 1.117 GB, free: 1.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.952, allocations: 1.5 kB / 1.117 GB, free: 1.16 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006584/0.9527, allocations: 289.4 kB / 1.117 GB, free: 1.016 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.9528, allocations: 121.1 kB / 1.117 GB, free: 0.8984 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.625e-05/0.9529, allocations: 1.812 kB / 1.117 GB, free: 0.8984 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.9531, allocations: 26 kB / 1.117 GB, free: 0.8867 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.915e-05/0.9532, allocations: 16.8 kB / 1.117 GB, free: 0.8828 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.9533, allocations: 11.34 kB / 1.117 GB, free: 0.8789 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003117/0.9536, allocations: 246.5 kB / 1.118 GB, free: 0.7461 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.533e-06/0.9536, allocations: 0.5312 kB / 1.118 GB, free: 0.7461 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005513/0.9541, allocations: 127.9 kB / 1.118 GB, free: 0.7148 MB / 0.8731 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.0004495/0.9546, allocations: 204.7 kB / 1.118 GB, free: 0.582 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005354/0.9551, allocations: 225.4 kB / 1.118 GB, free: 484 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.9552, allocations: 0 / 1.118 GB, free: 484 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.9554, allocations: 71.98 kB / 1.118 GB, free: 464 kB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009876/0.9564, allocations: 213.1 kB / 1.119 GB, free: 404 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.9577, allocations: 0.7422 MB / 1.119 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.9581, allocations: 0.791 MB / 1.12 GB, free: 15.2 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002346/0.9583, allocations: 65.14 kB / 1.12 GB, free: 15.19 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.683e-05/0.9584, allocations: 32.39 kB / 1.12 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of SimCode: time 2.4e-07/0.9584, allocations: 0 / 1.12 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of Templates: time 0.01674/0.9751, allocations: 7.181 MB / 1.127 GB, free: 14.54 MB / 0.8887 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