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.001163/0.001163, allocations: 109.5 kB / 16.41 MB, free: 6.488 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.001247/0.001247, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.35/1.35, allocations: 222.9 MB / 241 MB, free: 15.15 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.234/2.234, allocations: 390.3 MB / 0.6655 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 63.91 kB / 0.9515 GB, free: 7.703 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.03/1.032, allocations: 140.4 MB / 1.089 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01701/1.049, allocations: 14.43 MB / 1.103 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.006502/1.056, allocations: 3.652 MB / 1.106 GB, free: 8.605 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007383/1.056, allocations: 16.31 kB / 1.106 GB, free: 8.602 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0007997/1.057, allocations: 204.9 kB / 1.106 GB, free: 8.48 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001811/1.059, allocations: 0.5895 MB / 1.107 GB, free: 8.129 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001168/1.06, allocations: 390.6 kB / 1.107 GB, free: 7.918 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001865/1.062, allocations: 1.092 MB / 1.108 GB, free: 7.402 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006475/1.063, allocations: 316.4 kB / 1.109 GB, free: 7.258 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/1.064, allocations: 400.4 kB / 1.109 GB, free: 7.086 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005191/1.064, allocations: 307.2 kB / 1.109 GB, free: 6.949 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 7.465e-05/1.065, allocations: 31.19 kB / 1.109 GB, free: 6.949 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007257/1.065, allocations: 260.4 kB / 1.11 GB, free: 6.848 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/1.065, allocations: 93.92 kB / 1.11 GB, free: 6.793 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002595/1.066, allocations: 214.1 kB / 1.11 GB, free: 6.668 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001027/1.067, allocations: 0.5901 MB / 1.111 GB, free: 6.445 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/1.067, allocations: 5.438 kB / 1.111 GB, free: 6.441 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.236e-06/1.067, allocations: 0 / 1.111 GB, free: 6.441 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.886e-06/1.067, allocations: 3.938 kB / 1.111 GB, free: 6.438 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.001316/1.068, allocations: 0.7478 MB / 1.111 GB, free: 5.832 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/1.068, allocations: 9.781 kB / 1.111 GB, free: 5.832 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002924/1.068, allocations: 46.77 kB / 1.111 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008132/1.069, allocations: 462.4 kB / 1.112 GB, free: 5.48 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/1.069, allocations: 23.92 kB / 1.112 GB, free: 5.465 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.987e-05/1.069, allocations: 34.75 kB / 1.112 GB, free: 5.449 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006741/1.07, allocations: 307.9 kB / 1.112 GB, free: 5.289 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/1.07, allocations: 1.031 kB / 1.112 GB, free: 5.289 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.623e-05/1.07, allocations: 12.22 kB / 1.112 GB, free: 5.281 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.231e-05/1.07, allocations: 6.812 kB / 1.112 GB, free: 5.281 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000528/1.071, allocations: 199.3 kB / 1.112 GB, free: 5.219 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.002008/1.073, allocations: 1.482 MB / 1.114 GB, free: 4.023 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/1.073, allocations: 157.2 kB / 1.114 GB, free: 3.957 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/1.073, allocations: 69.31 kB / 1.114 GB, free: 3.93 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001342/1.073, allocations: 86.58 kB / 1.114 GB, free: 3.836 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003097/1.074, allocations: 122.7 kB / 1.114 GB, free: 3.77 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 2.195e-06/1.074, allocations: 0 / 1.114 GB, free: 3.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.0006962/1.075, allocations: 238.8 kB / 1.114 GB, free: 3.668 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/1.075, allocations: 62.92 kB / 1.115 GB, free: 3.598 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/1.075, allocations: 346.6 kB / 1.115 GB, free: 3.414 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/1.075, allocations: 32.61 kB / 1.115 GB, free: 3.379 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/1.075, allocations: 212.1 kB / 1.115 GB, free: 3.203 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.804e-05/1.075, allocations: 51.75 kB / 1.115 GB, free: 3.164 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.111e-05/1.075, allocations: 57.61 kB / 1.115 GB, free: 3.125 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001346/1.076, allocations: 352.8 kB / 1.116 GB, free: 2.789 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/1.076, allocations: 70.14 kB / 1.116 GB, free: 2.77 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002457/1.076, allocations: 143.9 kB / 1.116 GB, free: 2.656 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004315/1.076, allocations: 247.8 kB / 1.116 GB, free: 2.473 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/1.076, allocations: 5.125 kB / 1.116 GB, free: 2.469 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006004/1.077, allocations: 310.1 kB / 1.116 GB, free: 2.316 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/1.077, allocations: 37.69 kB / 1.116 GB, free: 2.281 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/1.077, allocations: 7.156 kB / 1.116 GB, free: 2.277 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/1.077, allocations: 3.062 kB / 1.116 GB, free: 2.277 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002264/1.077, allocations: 54.94 kB / 1.116 GB, free: 2.273 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/1.077, allocations: 8.391 kB / 1.116 GB, free: 2.27 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/1.078, allocations: 36.58 kB / 1.116 GB, free: 2.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.484e-05/1.078, allocations: 13.97 kB / 1.116 GB, free: 2.246 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.0001662/1.078, allocations: 156.9 kB / 1.117 GB, free: 2.105 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.031e-05/1.078, allocations: 32.5 kB / 1.117 GB, free: 2.09 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004997/1.078, allocations: 197.8 kB / 1.117 GB, free: 2.004 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/1.078, allocations: 5.469 kB / 1.117 GB, free: 2 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.078, allocations: 0.5625 kB / 1.117 GB, free: 2 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004968/1.079, allocations: 488.3 kB / 1.117 GB, free: 1.527 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004826/1.079, allocations: 356.8 kB / 1.118 GB, free: 1.266 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/1.079, allocations: 1.641 kB / 1.118 GB, free: 1.266 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/1.08, allocations: 29.55 kB / 1.118 GB, free: 1.266 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/1.08, allocations: 0 / 1.118 GB, free: 1.266 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/1.08, allocations: 6.906 kB / 1.118 GB, free: 1.262 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/1.08, allocations: 5.188 kB / 1.118 GB, free: 1.258 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/1.08, allocations: 0 / 1.118 GB, free: 1.258 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006388/1.08, allocations: 283.5 kB / 1.118 GB, free: 1.117 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/1.08, allocations: 121.5 kB / 1.118 GB, free: 1 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.255e-05/1.081, allocations: 5.906 kB / 1.118 GB, free: 0.9961 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/1.081, allocations: 21.55 kB / 1.118 GB, free: 0.9883 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/1.081, allocations: 13.67 kB / 1.118 GB, free: 0.9883 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/1.081, allocations: 14.7 kB / 1.118 GB, free: 0.9805 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002764/1.081, allocations: 246.5 kB / 1.118 GB, free: 0.8477 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.31e-07/1.081, allocations: 3.938 kB / 1.118 GB, free: 0.8438 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005258/1.082, allocations: 128.6 kB / 1.118 GB, free: 0.8125 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.0004403/1.082, allocations: 195.7 kB / 1.119 GB, free: 0.6875 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000574/1.083, allocations: 236.4 kB / 1.119 GB, free: 0.5703 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/1.083, allocations: 0 / 1.119 GB, free: 0.5703 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001861/1.083, allocations: 67.64 kB / 1.119 GB, free: 0.5547 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009992/1.084, allocations: 223.8 kB / 1.119 GB, free: 500 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/1.085, allocations: 0.7562 MB / 1.12 GB, free: 15.99 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/1.086, allocations: 0.7885 MB / 1.121 GB, free: 15.28 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.524e-05/1.086, allocations: 34.98 kB / 1.121 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of SimCode: time 3.01e-07/1.086, allocations: 0 / 1.121 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of Templates: time 0.01229/1.098, allocations: 6.162 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches