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: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007632/0.007632, allocations: 101.2 kB / 15.73 MB, free: 5.586 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.00185/0.00185, allocations: 183.7 kB / 16.67 MB, free: 5.523 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.342/1.342, allocations: 222.9 MB / 240.4 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.188/2.188, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.89 kB / 0.9504 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6376/0.6389, allocations: 140.4 MB / 1.087 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01414/0.653, allocations: 14.43 MB / 1.102 GB, free: 10.81 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.005079/0.6581, allocations: 3.641 MB / 1.105 GB, free: 8.219 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005297/0.6587, allocations: 23.97 kB / 1.105 GB, free: 8.207 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0006054/0.6593, allocations: 200.1 kB / 1.105 GB, free: 8.09 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001511/0.6608, allocations: 0.5867 MB / 1.106 GB, free: 7.742 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.6619, allocations: 398.7 kB / 1.106 GB, free: 7.523 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001524/0.6634, allocations: 1.085 MB / 1.107 GB, free: 7.016 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005737/0.664, allocations: 314.7 kB / 1.108 GB, free: 6.875 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.6652, allocations: 404.6 kB / 1.108 GB, free: 6.691 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005331/0.6657, allocations: 303 kB / 1.108 GB, free: 6.559 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 7.071e-05/0.6658, allocations: 32.59 kB / 1.108 GB, free: 6.559 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006353/0.6664, allocations: 263.9 kB / 1.109 GB, free: 6.453 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.6666, allocations: 92.91 kB / 1.109 GB, free: 6.398 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002828/0.6669, allocations: 222.7 kB / 1.109 GB, free: 6.266 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0008986/0.6678, allocations: 0.5851 MB / 1.109 GB, free: 6.043 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 2.634e-06/0.6678, allocations: 0 / 1.109 GB, free: 6.043 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.032e-06/0.6678, allocations: 1.375 kB / 1.109 GB, free: 6.043 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.177e-05/0.6678, allocations: 0 / 1.109 GB, free: 6.043 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.001318/0.6691, allocations: 0.7435 MB / 1.11 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.6692, allocations: 9.812 kB / 1.11 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.498e-05/0.6693, allocations: 65.78 kB / 1.11 GB, free: 5.383 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.6695, allocations: 47.16 kB / 1.11 GB, free: 5.363 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007874/0.6703, allocations: 462.9 kB / 1.111 GB, free: 5.031 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.6703, allocations: 24.19 kB / 1.111 GB, free: 5.016 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.473e-05/0.6704, allocations: 29.69 kB / 1.111 GB, free: 5.004 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006171/0.671, allocations: 308.5 kB / 1.111 GB, free: 4.844 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.671, allocations: 4.562 kB / 1.111 GB, free: 4.84 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.6711, allocations: 15.33 kB / 1.111 GB, free: 4.828 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.6711, allocations: 7.5 kB / 1.111 GB, free: 4.828 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005104/0.6716, allocations: 195.5 kB / 1.111 GB, free: 4.77 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.001936/0.6735, allocations: 1.48 MB / 1.113 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.674, allocations: 160.8 kB / 1.113 GB, free: 3.508 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.6742, allocations: 64.05 kB / 1.113 GB, free: 3.484 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001278/0.6744, allocations: 85.48 kB / 1.113 GB, free: 3.391 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003112/0.6747, allocations: 126.8 kB / 1.113 GB, free: 3.32 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.6747, allocations: 3.938 kB / 1.113 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.0006912/0.6754, allocations: 238.7 kB / 1.113 GB, free: 3.219 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.6754, allocations: 55.27 kB / 1.113 GB, free: 3.156 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004045/0.6758, allocations: 346.6 kB / 1.114 GB, free: 2.973 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.6759, allocations: 32.98 kB / 1.114 GB, free: 2.938 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.6761, allocations: 219.2 kB / 1.114 GB, free: 2.754 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.73e-05/0.6761, allocations: 55.38 kB / 1.114 GB, free: 2.711 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.791e-05/0.6762, allocations: 54.67 kB / 1.114 GB, free: 2.676 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.6764, allocations: 343.7 kB / 1.114 GB, free: 2.348 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.6766, allocations: 70.48 kB / 1.115 GB, free: 2.328 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.6768, allocations: 151.5 kB / 1.115 GB, free: 2.207 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004634/0.6773, allocations: 247.6 kB / 1.115 GB, free: 2.023 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.6773, allocations: 1.25 kB / 1.115 GB, free: 2.023 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006485/0.678, allocations: 310.7 kB / 1.115 GB, free: 1.871 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.678, allocations: 36.62 kB / 1.115 GB, free: 1.836 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.678, allocations: 3.453 kB / 1.115 GB, free: 1.836 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.6781, allocations: 8.156 kB / 1.115 GB, free: 1.832 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002405/0.6783, allocations: 58.86 kB / 1.115 GB, free: 1.824 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.6783, allocations: 4.328 kB / 1.115 GB, free: 1.824 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002891/0.6786, allocations: 36.03 kB / 1.115 GB, free: 1.805 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.6787, allocations: 13.95 kB / 1.115 GB, free: 1.801 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.0001547/0.6788, allocations: 153.3 kB / 1.115 GB, free: 1.664 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.6789, allocations: 40.42 kB / 1.116 GB, free: 1.641 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004875/0.6794, allocations: 198.3 kB / 1.116 GB, free: 1.551 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.6794, allocations: 10.83 kB / 1.116 GB, free: 1.543 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.6794, allocations: 4 kB / 1.116 GB, free: 1.539 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005151/0.6799, allocations: 478.8 kB / 1.116 GB, free: 1.074 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004619/0.6804, allocations: 357.8 kB / 1.117 GB, free: 0.8125 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.6804, allocations: 1.125 kB / 1.117 GB, free: 0.8125 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.6806, allocations: 29.86 kB / 1.117 GB, free: 0.8125 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.6806, allocations: 0.5625 kB / 1.117 GB, free: 0.8125 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.6806, allocations: 11.41 kB / 1.117 GB, free: 0.8047 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.6806, allocations: 7.875 kB / 1.117 GB, free: 0.7969 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.6807, allocations: 0.6562 kB / 1.117 GB, free: 0.7969 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00065/0.6813, allocations: 277.9 kB / 1.117 GB, free: 0.6641 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.6815, allocations: 121.6 kB / 1.117 GB, free: 0.5469 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.277e-05/0.6815, allocations: 10.72 kB / 1.117 GB, free: 0.5391 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.6818, allocations: 20.98 kB / 1.117 GB, free: 0.5312 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.927e-05/0.6819, allocations: 12.88 kB / 1.117 GB, free: 0.5312 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.6819, allocations: 11.73 kB / 1.117 GB, free: 0.5273 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000275/0.6822, allocations: 246.4 kB / 1.117 GB, free: 404 kB / 0.8731 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6822, allocations: 3.938 kB / 1.117 GB, free: 400 kB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004526/0.6826, allocations: 120.4 kB / 1.117 GB, free: 376 kB / 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.001217/0.6839, allocations: 0.9111 MB / 1.118 GB, free: 15.66 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005509/0.6844, allocations: 233 kB / 1.118 GB, free: 15.55 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.6844, allocations: 0 / 1.118 GB, free: 15.55 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0002013/0.6846, allocations: 72.38 kB / 1.119 GB, free: 15.53 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.6857, allocations: 218 kB / 1.119 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.69, allocations: 3.04 MB / 1.122 GB, free: 13.43 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.6904, allocations: 0.7909 MB / 1.123 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002788/0.6907, allocations: 72.42 kB / 1.123 GB, free: 12.7 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.6909, allocations: 118.3 kB / 1.123 GB, free: 12.61 MB / 0.8887 GB Notification: Performance of SimCode: time 3.81e-07/0.6909, allocations: 4 kB / 1.123 GB, free: 12.61 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.7216, allocations: 10.2 MB / 1.133 GB, free: 11.56 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.569/8.291, allocations: 14.2 kB / 1.133 GB, free: 11.55 MB / 0.8887 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_9_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv","/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