Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 107.6 kB / 18.95 MB, free: 2.809 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 211.3 kB / 22.24 MB, free: 5.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.357/1.357, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.95/2.95, allocations: 0.4892 GB / 0.7944 GB, free: 35.66 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 71.95 kB / 1.153 GB, free: 25.96 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3186, allocations: 176.1 MB / 1.325 GB, free: 2.512 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01609/0.3346, allocations: 13.53 MB / 1.338 GB, free: 4.934 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.005165/0.3398, allocations: 3.398 MB / 1.342 GB, free: 1.527 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004066/0.3402, allocations: 23.81 kB / 1.342 GB, free: 1.504 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0006379/0.3409, allocations: 202.7 kB / 1.342 GB, free: 1.305 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.001453/0.3423, allocations: 0.6247 MB / 1.342 GB, free: 0.6797 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000928/0.3432, allocations: 402.9 kB / 1.343 GB, free: 296 kB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001377/0.3446, allocations: 1.114 MB / 1.344 GB, free: 15.17 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004091/0.345, allocations: 260.9 kB / 1.344 GB, free: 14.9 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.3461, allocations: 448.3 kB / 1.345 GB, free: 14.46 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004176/0.3465, allocations: 302.6 kB / 1.345 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.172e-05/0.3465, allocations: 36 kB / 1.345 GB, free: 14.13 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004558/0.347, allocations: 219.5 kB / 1.345 GB, free: 13.92 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.3471, allocations: 95.61 kB / 1.345 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.3473, allocations: 179.2 kB / 1.345 GB, free: 13.65 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0008085/0.3481, allocations: 0.6072 MB / 1.346 GB, free: 13.04 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3481, allocations: 0 / 1.346 GB, free: 13.04 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3481, allocations: 3.938 kB / 1.346 GB, free: 13.04 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.099e-05/0.3481, allocations: 0 / 1.346 GB, free: 13.04 MB / 1.045 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.001168/0.3493, allocations: 0.6893 MB / 1.347 GB, free: 12.31 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3493, allocations: 8.031 kB / 1.347 GB, free: 12.3 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.941e-05/0.3494, allocations: 66.72 kB / 1.347 GB, free: 12.23 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.3496, allocations: 48.66 kB / 1.347 GB, free: 12.18 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007566/0.3503, allocations: 404.8 kB / 1.347 GB, free: 11.76 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.3504, allocations: 20.62 kB / 1.347 GB, free: 11.74 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.893e-05/0.3504, allocations: 32 kB / 1.347 GB, free: 11.71 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006395/0.3511, allocations: 408 kB / 1.348 GB, free: 11.27 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.3511, allocations: 7.953 kB / 1.348 GB, free: 11.26 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.3511, allocations: 12 kB / 1.348 GB, free: 11.25 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/0.3511, allocations: 12 kB / 1.348 GB, free: 11.23 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004824/0.3516, allocations: 189.8 kB / 1.348 GB, free: 11.05 MB / 1.045 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.001739/0.3534, allocations: 1.143 MB / 1.349 GB, free: 9.84 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004591/0.3538, allocations: 146.6 kB / 1.349 GB, free: 9.688 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.354, allocations: 64.81 kB / 1.349 GB, free: 9.621 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.3541, allocations: 8 kB / 1.349 GB, free: 9.613 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003624/0.3545, allocations: 226.1 kB / 1.349 GB, free: 9.355 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.834e-06/0.3545, allocations: 0 / 1.349 GB, free: 9.355 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0006715/0.3551, allocations: 239.5 kB / 1.35 GB, free: 9.117 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.3552, allocations: 59.39 kB / 1.35 GB, free: 9.047 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004026/0.3556, allocations: 349.7 kB / 1.35 GB, free: 8.699 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.3556, allocations: 33.7 kB / 1.35 GB, free: 8.66 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.3558, allocations: 220.1 kB / 1.35 GB, free: 8.441 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.814e-05/0.3559, allocations: 55.58 kB / 1.35 GB, free: 8.387 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.83e-05/0.3559, allocations: 53.66 kB / 1.35 GB, free: 8.328 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3561, allocations: 346.8 kB / 1.351 GB, free: 7.98 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.3563, allocations: 101.6 kB / 1.351 GB, free: 7.875 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.3566, allocations: 171.1 kB / 1.351 GB, free: 7.668 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004472/0.357, allocations: 252.8 kB / 1.351 GB, free: 7.383 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.357, allocations: 0 / 1.351 GB, free: 7.383 MB / 1.045 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006374/0.3577, allocations: 346.3 kB / 1.351 GB, free: 7.027 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.3577, allocations: 35.11 kB / 1.351 GB, free: 6.988 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3577, allocations: 7.938 kB / 1.351 GB, free: 6.98 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.3577, allocations: 7.938 kB / 1.351 GB, free: 6.973 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.358, allocations: 55.95 kB / 1.352 GB, free: 6.918 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.358, allocations: 7.938 kB / 1.352 GB, free: 6.91 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.3582, allocations: 35.77 kB / 1.352 GB, free: 6.875 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/0.3583, allocations: 15.94 kB / 1.352 GB, free: 6.859 MB / 1.045 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.0001733/0.3584, allocations: 166.4 kB / 1.352 GB, free: 6.688 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.592e-05/0.3585, allocations: 31.81 kB / 1.352 GB, free: 6.656 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000482/0.359, allocations: 188.4 kB / 1.352 GB, free: 6.465 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.359, allocations: 7.938 kB / 1.352 GB, free: 6.457 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.359, allocations: 0 / 1.352 GB, free: 6.457 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005193/0.3595, allocations: 491.6 kB / 1.352 GB, free: 5.891 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004021/0.3599, allocations: 292.5 kB / 1.353 GB, free: 5.562 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3599, allocations: 0 / 1.353 GB, free: 5.562 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.3601, allocations: 27.98 kB / 1.353 GB, free: 5.535 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3601, allocations: 0 / 1.353 GB, free: 5.535 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.3601, allocations: 11.98 kB / 1.353 GB, free: 5.523 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.3601, allocations: 3.938 kB / 1.353 GB, free: 5.52 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3601, allocations: 0 / 1.353 GB, free: 5.52 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006259/0.3607, allocations: 287.8 kB / 1.353 GB, free: 5.223 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.3608, allocations: 51.94 kB / 1.353 GB, free: 5.172 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.606e-05/0.3609, allocations: 7.984 kB / 1.353 GB, free: 5.164 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.3611, allocations: 19.92 kB / 1.353 GB, free: 5.145 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.416e-05/0.3612, allocations: 19.97 kB / 1.353 GB, free: 5.125 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.3612, allocations: 4 kB / 1.353 GB, free: 5.121 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002737/0.3615, allocations: 247.2 kB / 1.353 GB, free: 4.883 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3615, allocations: 3.938 kB / 1.353 GB, free: 4.879 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004283/0.3619, allocations: 123.8 kB / 1.353 GB, free: 4.758 MB / 1.045 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.001157/0.363, allocations: 0.9165 MB / 1.354 GB, free: 3.809 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005222/0.3636, allocations: 244.9 kB / 1.355 GB, free: 3.551 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3636, allocations: 0 / 1.355 GB, free: 3.551 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.3638, allocations: 63.89 kB / 1.355 GB, free: 3.488 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009432/0.3647, allocations: 223 kB / 1.355 GB, free: 3.281 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004384/0.3691, allocations: 3.174 MB / 1.358 GB, free: 15.94 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001876/0.3693, allocations: 193.6 kB / 1.358 GB, free: 15.73 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002654/0.3695, allocations: 67.19 kB / 1.358 GB, free: 15.67 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.3697, allocations: 123.4 kB / 1.358 GB, free: 15.55 MB / 1.061 GB Notification: Performance of SimCode: time 6.01e-07/0.3697, allocations: 0 / 1.358 GB, free: 15.55 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04075/0.4105, allocations: 11.57 MB / 1.37 GB, free: 4.289 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.38, allocations: 0 / 1.37 GB, free: 4.289 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --stepSize=2.88 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.575469979085028]