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.001749/0.001749, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002022/0.002022, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.293/2.293, allocations: 390.3 MB / 0.6647 GB, free: 468 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 63.91 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5306/0.532, allocations: 140.4 MB / 0.9497 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.013/0.545, allocations: 14.44 MB / 0.9638 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005173/0.5502, allocations: 3.637 MB / 0.9674 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003783/0.5506, allocations: 20.25 kB / 0.9674 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005633/0.5512, allocations: 208.1 kB / 0.9676 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.5525, allocations: 0.5845 MB / 0.9681 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008746/0.5534, allocations: 392.9 kB / 0.9685 GB, free: 9.652 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001117/0.5545, allocations: 1.082 MB / 0.9696 GB, free: 9.027 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003989/0.5549, allocations: 320.6 kB / 0.9699 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008128/0.5557, allocations: 390.8 kB / 0.9703 GB, free: 8.605 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003679/0.5561, allocations: 305.1 kB / 0.9705 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.18e-05/0.5562, allocations: 33.12 kB / 0.9706 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005116/0.5567, allocations: 260.2 kB / 0.9708 GB, free: 8.289 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.5568, allocations: 92.2 kB / 0.9709 GB, free: 8.219 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002186/0.557, allocations: 208.6 kB / 0.9711 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007066/0.5577, allocations: 0.5897 MB / 0.9717 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.5578, allocations: 0 / 0.9717 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.173e-06/0.5578, allocations: 0.7188 kB / 0.9717 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.5578, allocations: 0 / 0.9717 GB, free: 7.691 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.001056/0.5588, allocations: 0.7423 MB / 0.9724 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.5589, allocations: 13.31 kB / 0.9724 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.447e-05/0.559, allocations: 63.56 kB / 0.9725 GB, free: 6.969 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001718/0.5591, allocations: 50.06 kB / 0.9725 GB, free: 6.945 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000626/0.5598, allocations: 446.7 kB / 0.973 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.5598, allocations: 27.75 kB / 0.973 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.157e-05/0.5599, allocations: 29.78 kB / 0.973 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005533/0.5604, allocations: 308.8 kB / 0.9733 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.5604, allocations: 1.344 kB / 0.9733 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.5605, allocations: 10.69 kB / 0.9733 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.5605, allocations: 6.812 kB / 0.9733 GB, free: 6.305 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000472/0.561, allocations: 202.6 kB / 0.9735 GB, free: 6.207 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.001699/0.5627, allocations: 1.492 MB / 0.975 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004241/0.5631, allocations: 157.6 kB / 0.9751 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.5633, allocations: 62.52 kB / 0.9752 GB, free: 4.695 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001319/0.5635, allocations: 92.12 kB / 0.9753 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002783/0.5637, allocations: 121.4 kB / 0.9754 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 2.926e-06/0.5638, allocations: 0 / 0.9754 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006162/0.5644, allocations: 238.6 kB / 0.9756 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.5644, allocations: 58.44 kB / 0.9757 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003572/0.5648, allocations: 347.4 kB / 0.976 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.5648, allocations: 31.95 kB / 0.976 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.565, allocations: 217.9 kB / 0.9762 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.635e-05/0.565, allocations: 48.98 kB / 0.9763 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.621e-05/0.5651, allocations: 54.17 kB / 0.9763 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.5653, allocations: 345.8 kB / 0.9767 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.5655, allocations: 68.39 kB / 0.9767 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.5657, allocations: 152.9 kB / 0.9769 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000416/0.5661, allocations: 241.8 kB / 0.9771 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5662, allocations: 1.062 kB / 0.9771 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000599/0.5668, allocations: 318.3 kB / 0.9774 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.5668, allocations: 32.64 kB / 0.9775 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.5668, allocations: 2.625 kB / 0.9775 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.5668, allocations: 7.938 kB / 0.9775 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.5671, allocations: 61.95 kB / 0.9775 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.5671, allocations: 7.906 kB / 0.9775 GB, free: 2.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.5674, allocations: 36.45 kB / 0.9776 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.5674, allocations: 9.031 kB / 0.9776 GB, free: 2.793 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.000152/0.5675, allocations: 157.8 kB / 0.9777 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.601e-05/0.5676, allocations: 35.83 kB / 0.9778 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004584/0.5681, allocations: 192.6 kB / 0.9779 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.5681, allocations: 10.14 kB / 0.978 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.5681, allocations: 0 / 0.978 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004947/0.5686, allocations: 485.5 kB / 0.9784 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004061/0.569, allocations: 354.5 kB / 0.9788 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.569, allocations: 0 / 0.9788 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.5692, allocations: 35.94 kB / 0.9788 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.5692, allocations: 1.25 kB / 0.9788 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.5693, allocations: 5.125 kB / 0.9788 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.5693, allocations: 8.906 kB / 0.9788 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5693, allocations: 0 / 0.9788 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006133/0.5699, allocations: 290.6 kB / 0.9791 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.57, allocations: 121.4 kB / 0.9792 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.5701, allocations: 5.156 kB / 0.9792 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.5703, allocations: 16.77 kB / 0.9792 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.758e-05/0.5704, allocations: 18.78 kB / 0.9792 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.5704, allocations: 5.188 kB / 0.9792 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002481/0.5707, allocations: 254.2 kB / 0.9795 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5707, allocations: 4 kB / 0.9795 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004135/0.5711, allocations: 122.6 kB / 0.9796 GB, free: 1.137 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.001047/0.5721, allocations: 0.918 MB / 0.9805 GB, free: 392 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004985/0.5727, allocations: 238.5 kB / 0.9807 GB, free: 244 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5727, allocations: 0 / 0.9807 GB, free: 244 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.5729, allocations: 64.5 kB / 0.9808 GB, free: 220 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.5741, allocations: 221.4 kB / 0.981 GB, free: 104 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004116/0.5782, allocations: 3.071 MB / 0.984 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.5785, allocations: 0.7914 MB / 0.9848 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002532/0.5788, allocations: 66.62 kB / 0.9848 GB, free: 13 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.579, allocations: 119.3 kB / 0.9849 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of SimCode: time 2.8e-07/0.579, allocations: 0 / 0.9849 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02924/0.6082, allocations: 10.13 MB / 0.9948 GB, free: 2.934 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.431/8.039, allocations: 3.938 kB / 0.9948 GB, free: 2.93 MB / 0.7481 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