Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_10_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.004657/0.004657, allocations: 103.2 kB / 15.73 MB, free: 5.957 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.001095/0.001095, allocations: 191.4 kB / 16.67 MB, free: 5.887 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.423/2.423, allocations: 437 MB / 0.7105 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 68.12 kB / 1.018 GB, free: 9.902 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9236/0.9251, allocations: 151.6 MB / 1.166 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.0167/0.9418, allocations: 14.45 MB / 1.18 GB, free: 5.285 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005851/0.9477, allocations: 3.649 MB / 1.184 GB, free: 1.625 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007174/0.9485, allocations: 19.88 kB / 1.184 GB, free: 1.605 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0008159/0.9493, allocations: 206.7 kB / 1.184 GB, free: 1.402 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002076/0.9515, allocations: 0.6064 MB / 1.185 GB, free: 0.793 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.9526, allocations: 397.9 kB / 1.185 GB, free: 412 kB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001581/0.9542, allocations: 1.096 MB / 1.186 GB, free: 15.3 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004803/0.9547, allocations: 318.8 kB / 1.186 GB, free: 14.99 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.9558, allocations: 396.8 kB / 1.187 GB, free: 14.6 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004038/0.9562, allocations: 314.6 kB / 1.187 GB, free: 14.29 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.9563, allocations: 32 kB / 1.187 GB, free: 14.26 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006102/0.9569, allocations: 255.5 kB / 1.187 GB, free: 14.01 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.957, allocations: 103.5 kB / 1.187 GB, free: 13.91 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002082/0.9572, allocations: 203.1 kB / 1.188 GB, free: 13.71 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0008589/0.9581, allocations: 0.5881 MB / 1.188 GB, free: 13.12 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.9581, allocations: 0 / 1.188 GB, free: 13.12 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.576e-06/0.9581, allocations: 4 kB / 1.188 GB, free: 13.12 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.136e-06/0.9582, allocations: 3.938 kB / 1.188 GB, free: 13.11 MB / 0.92 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.001304/0.9595, allocations: 0.7496 MB / 1.189 GB, free: 12.31 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.9595, allocations: 8.922 kB / 1.189 GB, free: 12.3 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.16e-05/0.9596, allocations: 62.72 kB / 1.189 GB, free: 12.23 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000214/0.9598, allocations: 48.47 kB / 1.189 GB, free: 12.18 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007528/0.9606, allocations: 467.6 kB / 1.189 GB, free: 11.69 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.9606, allocations: 24.69 kB / 1.19 GB, free: 11.66 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.857e-05/0.9607, allocations: 27.91 kB / 1.19 GB, free: 11.63 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00058/0.9613, allocations: 318.2 kB / 1.19 GB, free: 11.3 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.9613, allocations: 0 / 1.19 GB, free: 11.3 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/0.9613, allocations: 12 kB / 1.19 GB, free: 11.29 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.9614, allocations: 8 kB / 1.19 GB, free: 11.29 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.9618, allocations: 194.1 kB / 1.19 GB, free: 11.1 MB / 0.92 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.001811/0.9636, allocations: 1.489 MB / 1.191 GB, free: 9.48 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004428/0.9641, allocations: 154.6 kB / 1.192 GB, free: 9.32 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.9643, allocations: 64.81 kB / 1.192 GB, free: 9.254 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001398/0.9644, allocations: 93.09 kB / 1.192 GB, free: 9.145 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.9647, allocations: 123.3 kB / 1.192 GB, free: 9.012 MB / 0.92 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.9648, allocations: 0 / 1.192 GB, free: 9.012 MB / 0.92 GB Notification: Performance of matching and sorting (n=15): time 0.0006203/0.9654, allocations: 240.9 kB / 1.192 GB, free: 8.77 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.9654, allocations: 59.41 kB / 1.192 GB, free: 8.699 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003711/0.9658, allocations: 345.7 kB / 1.193 GB, free: 8.355 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.9658, allocations: 33.7 kB / 1.193 GB, free: 8.316 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.966, allocations: 211.8 kB / 1.193 GB, free: 8.105 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.9661, allocations: 55.2 kB / 1.193 GB, free: 8.051 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.637e-05/0.9662, allocations: 49.7 kB / 1.193 GB, free: 7.996 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.9663, allocations: 342.8 kB / 1.193 GB, free: 7.652 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.9665, allocations: 75.95 kB / 1.193 GB, free: 7.578 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.9668, allocations: 141.4 kB / 1.193 GB, free: 7.406 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.9672, allocations: 245.1 kB / 1.194 GB, free: 7.129 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.9672, allocations: 0 / 1.194 GB, free: 7.129 MB / 0.92 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006132/0.9678, allocations: 316.9 kB / 1.194 GB, free: 6.809 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.671e-05/0.9679, allocations: 37.77 kB / 1.194 GB, free: 6.766 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.9679, allocations: 0 / 1.194 GB, free: 6.766 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.9679, allocations: 11.88 kB / 1.194 GB, free: 6.754 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.9681, allocations: 59.91 kB / 1.194 GB, free: 6.695 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.9681, allocations: 7.984 kB / 1.194 GB, free: 6.688 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.9684, allocations: 31.69 kB / 1.194 GB, free: 6.656 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.9684, allocations: 11.98 kB / 1.194 GB, free: 6.645 MB / 0.92 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.0001632/0.9686, allocations: 157.8 kB / 1.194 GB, free: 6.48 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.054e-05/0.9686, allocations: 31.62 kB / 1.194 GB, free: 6.449 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004593/0.9691, allocations: 197.9 kB / 1.194 GB, free: 6.25 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.9691, allocations: 7.938 kB / 1.194 GB, free: 6.242 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.9691, allocations: 0 / 1.194 GB, free: 6.242 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004801/0.9696, allocations: 490.2 kB / 1.195 GB, free: 5.68 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004226/0.9701, allocations: 357.2 kB / 1.195 GB, free: 5.281 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.9701, allocations: 0 / 1.195 GB, free: 5.281 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.9702, allocations: 35.97 kB / 1.195 GB, free: 5.246 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.9702, allocations: 0 / 1.195 GB, free: 5.246 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.9703, allocations: 4 kB / 1.195 GB, free: 5.242 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.9703, allocations: 7.938 kB / 1.195 GB, free: 5.234 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.9703, allocations: 0 / 1.195 GB, free: 5.234 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005864/0.9709, allocations: 288.5 kB / 1.196 GB, free: 4.934 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.971, allocations: 120.8 kB / 1.196 GB, free: 4.797 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.266e-05/0.9711, allocations: 4 kB / 1.196 GB, free: 4.793 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.9713, allocations: 15.92 kB / 1.196 GB, free: 4.777 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.679e-05/0.9714, allocations: 19.97 kB / 1.196 GB, free: 4.758 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.9714, allocations: 4 kB / 1.196 GB, free: 4.754 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002512/0.9716, allocations: 251.2 kB / 1.196 GB, free: 4.516 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.91e-07/0.9717, allocations: 4 kB / 1.196 GB, free: 4.512 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0004437/0.9721, allocations: 128 kB / 1.196 GB, free: 4.387 MB / 0.92 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.001068/0.9732, allocations: 0.9127 MB / 1.197 GB, free: 3.441 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004663/0.9737, allocations: 233.6 kB / 1.197 GB, free: 3.203 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.9737, allocations: 0 / 1.197 GB, free: 3.203 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.9738, allocations: 67.89 kB / 1.197 GB, free: 3.137 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008681/0.9747, allocations: 225.3 kB / 1.198 GB, free: 2.926 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004164/0.9789, allocations: 3.066 MB / 1.201 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004476/0.9794, allocations: 0.7879 MB / 1.201 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.000256/0.9796, allocations: 67.22 kB / 1.201 GB, free: 14.84 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.9798, allocations: 115.4 kB / 1.201 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of SimCode: time 3.71e-07/0.9798, allocations: 0 / 1.201 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03446/1.014, allocations: 10.19 MB / 1.211 GB, free: 4.738 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.934/9.949, allocations: 4.406 kB / 1.211 GB, free: 4.738 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches