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.006588/0.006588, allocations: 107.5 kB / 15.74 MB, free: 6.02 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.001211/0.001211, allocations: 193.3 kB / 16.67 MB, free: 5.934 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.18/2.18, allocations: 390.3 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.91 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7355/0.7369, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01415/0.7511, allocations: 14.45 MB / 1.102 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.00592/0.757, allocations: 3.644 MB / 1.105 GB, free: 8.328 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005226/0.7576, allocations: 15.16 kB / 1.105 GB, free: 8.324 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0006278/0.7582, allocations: 208.1 kB / 1.105 GB, free: 8.203 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00147/0.7597, allocations: 0.6141 MB / 1.106 GB, free: 7.84 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009463/0.7607, allocations: 397.8 kB / 1.106 GB, free: 7.621 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001336/0.762, allocations: 1.086 MB / 1.107 GB, free: 7.113 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005141/0.7625, allocations: 321 kB / 1.108 GB, free: 6.965 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009495/0.7635, allocations: 396.5 kB / 1.108 GB, free: 6.797 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004078/0.7639, allocations: 310 kB / 1.108 GB, free: 6.656 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 5.821e-05/0.764, allocations: 33.5 kB / 1.108 GB, free: 6.656 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005615/0.7646, allocations: 263.2 kB / 1.109 GB, free: 6.551 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.7647, allocations: 94.59 kB / 1.109 GB, free: 6.496 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.7649, allocations: 214 kB / 1.109 GB, free: 6.371 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0009117/0.7658, allocations: 0.5957 MB / 1.11 GB, free: 6.141 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.7659, allocations: 0 / 1.11 GB, free: 6.141 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.054e-06/0.7659, allocations: 5.547 kB / 1.11 GB, free: 6.137 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.787e-06/0.7659, allocations: 0 / 1.11 GB, free: 6.137 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.001237/0.7671, allocations: 0.7589 MB / 1.11 GB, free: 5.52 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.7672, allocations: 9.75 kB / 1.11 GB, free: 5.52 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.548e-05/0.7672, allocations: 58.78 kB / 1.11 GB, free: 5.469 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001964/0.7674, allocations: 49.89 kB / 1.11 GB, free: 5.445 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008348/0.7683, allocations: 471.8 kB / 1.111 GB, free: 5.105 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.7683, allocations: 24.06 kB / 1.111 GB, free: 5.09 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.645e-05/0.7684, allocations: 26.12 kB / 1.111 GB, free: 5.082 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006234/0.769, allocations: 312 kB / 1.111 GB, free: 4.918 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.7691, allocations: 4.547 kB / 1.111 GB, free: 4.914 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.7691, allocations: 12.22 kB / 1.111 GB, free: 4.906 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.7691, allocations: 7.266 kB / 1.111 GB, free: 4.906 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005116/0.7696, allocations: 191 kB / 1.111 GB, free: 4.852 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.001881/0.7715, allocations: 1.491 MB / 1.113 GB, free: 3.648 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004869/0.772, allocations: 161.2 kB / 1.113 GB, free: 3.578 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.7722, allocations: 65.12 kB / 1.113 GB, free: 3.555 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001374/0.7724, allocations: 89.75 kB / 1.113 GB, free: 3.457 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003045/0.7727, allocations: 125.5 kB / 1.113 GB, free: 3.387 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=15): time 1.813e-06/0.7727, allocations: 1.188 kB / 1.113 GB, free: 3.387 MB / 0.8731 GB Notification: Performance of matching and sorting (n=15): time 0.0006812/0.7734, allocations: 235.2 kB / 1.113 GB, free: 3.289 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.7734, allocations: 55.33 kB / 1.114 GB, free: 3.227 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004243/0.7739, allocations: 351.3 kB / 1.114 GB, free: 3.039 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.7739, allocations: 32.58 kB / 1.114 GB, free: 3.004 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.7741, allocations: 220.4 kB / 1.114 GB, free: 2.82 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.831e-05/0.7742, allocations: 54.7 kB / 1.114 GB, free: 2.777 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.489e-05/0.7743, allocations: 58.31 kB / 1.114 GB, free: 2.738 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.7744, allocations: 340.9 kB / 1.115 GB, free: 2.414 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.7746, allocations: 69.98 kB / 1.115 GB, free: 2.395 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/0.7749, allocations: 147.6 kB / 1.115 GB, free: 2.277 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004269/0.7753, allocations: 254.8 kB / 1.115 GB, free: 2.086 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.7753, allocations: 1.469 kB / 1.115 GB, free: 2.086 MB / 0.8731 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006282/0.7759, allocations: 309.5 kB / 1.115 GB, free: 1.934 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.776, allocations: 34.55 kB / 1.115 GB, free: 1.902 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.776, allocations: 3.344 kB / 1.115 GB, free: 1.902 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.776, allocations: 11.81 kB / 1.115 GB, free: 1.895 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000231/0.7763, allocations: 55.44 kB / 1.115 GB, free: 1.891 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.7763, allocations: 4.688 kB / 1.115 GB, free: 1.891 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002674/0.7765, allocations: 35.72 kB / 1.115 GB, free: 1.871 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.7766, allocations: 16.83 kB / 1.115 GB, free: 1.863 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.0001664/0.7768, allocations: 158.4 kB / 1.116 GB, free: 1.723 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.835e-05/0.7768, allocations: 31.91 kB / 1.116 GB, free: 1.707 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004838/0.7773, allocations: 197.8 kB / 1.116 GB, free: 1.621 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.7773, allocations: 6.719 kB / 1.116 GB, free: 1.617 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.7773, allocations: 3.938 kB / 1.116 GB, free: 1.613 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005608/0.7779, allocations: 486.6 kB / 1.116 GB, free: 1.141 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004342/0.7783, allocations: 351.2 kB / 1.117 GB, free: 0.8867 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.7784, allocations: 0 / 1.117 GB, free: 0.8867 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.7785, allocations: 33.52 kB / 1.117 GB, free: 0.8828 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.7785, allocations: 1.156 kB / 1.117 GB, free: 0.8828 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.7786, allocations: 6.375 kB / 1.117 GB, free: 0.8789 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.7786, allocations: 5.281 kB / 1.117 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.7786, allocations: 0 / 1.117 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006445/0.7792, allocations: 295.8 kB / 1.117 GB, free: 0.7227 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.7794, allocations: 125.4 kB / 1.117 GB, free: 0.6016 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.17e-05/0.7794, allocations: 1.984 kB / 1.117 GB, free: 0.6016 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.7797, allocations: 25.58 kB / 1.117 GB, free: 0.5898 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.7798, allocations: 16.17 kB / 1.117 GB, free: 0.5859 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.7798, allocations: 7.391 kB / 1.117 GB, free: 0.5859 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002626/0.7801, allocations: 251.2 kB / 1.117 GB, free: 460 kB / 0.8731 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7801, allocations: 0 / 1.117 GB, free: 460 kB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004448/0.7805, allocations: 121.1 kB / 1.117 GB, free: 436 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.001186/0.7817, allocations: 0.9153 MB / 1.118 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005119/0.7823, allocations: 233.3 kB / 1.119 GB, free: 15.6 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7823, allocations: 0 / 1.119 GB, free: 15.6 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.7825, allocations: 73.89 kB / 1.119 GB, free: 15.58 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009795/0.7834, allocations: 218.1 kB / 1.119 GB, free: 15.52 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00419/0.7877, allocations: 3.059 MB / 1.122 GB, free: 13.47 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.788, allocations: 0.7982 MB / 1.123 GB, free: 12.76 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002542/0.7882, allocations: 62.03 kB / 1.123 GB, free: 12.74 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.7884, allocations: 121.4 kB / 1.123 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of SimCode: time 3.41e-07/0.7884, allocations: 0 / 1.123 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.8175, allocations: 10.19 MB / 1.133 GB, free: 11.6 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.706/8.524, allocations: 7.766 kB / 1.133 GB, free: 11.6 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