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.001829/0.001829, allocations: 106.7 kB / 16.45 MB, free: 6.453 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.00223/0.00223, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.436/1.436, allocations: 230.6 MB / 252.8 MB, free: 8.953 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 3.186/3.186, allocations: 0.49 GB / 0.7916 GB, free: 33.41 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.001987/0.001987, allocations: 67.34 kB / 1.149 GB, free: 26.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3297, allocations: 176.1 MB / 1.321 GB, free: 3.258 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.0171/0.3468, allocations: 14.66 MB / 1.335 GB, free: 4.539 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.005533/0.3524, allocations: 3.661 MB / 1.339 GB, free: 0.8711 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004834/0.3528, allocations: 23.81 kB / 1.339 GB, free: 0.8477 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0007107/0.3536, allocations: 210.7 kB / 1.339 GB, free: 0.6406 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.001566/0.3551, allocations: 0.6259 MB / 1.34 GB, free: 12 kB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.3561, allocations: 389.8 kB / 1.34 GB, free: 15.63 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001587/0.3577, allocations: 1.083 MB / 1.341 GB, free: 14.54 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004618/0.3582, allocations: 272.6 kB / 1.341 GB, free: 14.27 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001148/0.3593, allocations: 447.5 kB / 1.342 GB, free: 13.84 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004671/0.3598, allocations: 330.5 kB / 1.342 GB, free: 13.51 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.959e-05/0.3599, allocations: 32 kB / 1.342 GB, free: 13.48 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005947/0.3605, allocations: 279.5 kB / 1.342 GB, free: 13.21 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.3606, allocations: 107.5 kB / 1.342 GB, free: 13.1 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002316/0.3608, allocations: 207 kB / 1.343 GB, free: 12.9 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0009321/0.3617, allocations: 0.6227 MB / 1.343 GB, free: 12.27 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3617, allocations: 0 / 1.343 GB, free: 12.27 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3618, allocations: 0 / 1.343 GB, free: 12.27 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.128e-05/0.3618, allocations: 0 / 1.343 GB, free: 12.27 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.001226/0.363, allocations: 0.7624 MB / 1.344 GB, free: 11.46 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.363, allocations: 11.98 kB / 1.344 GB, free: 11.45 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.698e-05/0.3631, allocations: 66.7 kB / 1.344 GB, free: 11.37 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.3633, allocations: 52.66 kB / 1.344 GB, free: 11.32 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007648/0.3641, allocations: 460 kB / 1.344 GB, free: 10.84 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.998e-05/0.3641, allocations: 28.67 kB / 1.344 GB, free: 10.8 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.628e-05/0.3641, allocations: 27.95 kB / 1.345 GB, free: 10.78 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006078/0.3648, allocations: 314.2 kB / 1.345 GB, free: 10.45 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.3648, allocations: 0 / 1.345 GB, free: 10.45 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.3648, allocations: 12 kB / 1.345 GB, free: 10.44 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.3648, allocations: 4 kB / 1.345 GB, free: 10.43 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005102/0.3653, allocations: 194.1 kB / 1.345 GB, free: 10.25 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.001963/0.3673, allocations: 1.485 MB / 1.346 GB, free: 8.629 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004685/0.3678, allocations: 150.6 kB / 1.347 GB, free: 8.473 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.3679, allocations: 64.83 kB / 1.347 GB, free: 8.406 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001491/0.3681, allocations: 85.09 kB / 1.347 GB, free: 8.305 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003267/0.3684, allocations: 139.2 kB / 1.347 GB, free: 8.156 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 1.964e-06/0.3684, allocations: 0 / 1.347 GB, free: 8.156 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0007241/0.3692, allocations: 233.3 kB / 1.347 GB, free: 7.922 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.3692, allocations: 51.41 kB / 1.347 GB, free: 7.859 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.3696, allocations: 353.6 kB / 1.347 GB, free: 7.508 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.3696, allocations: 29.7 kB / 1.348 GB, free: 7.473 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.3698, allocations: 220.1 kB / 1.348 GB, free: 7.254 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.977e-05/0.3699, allocations: 59.52 kB / 1.348 GB, free: 7.195 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.788e-05/0.37, allocations: 57.64 kB / 1.348 GB, free: 7.133 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000232/0.3702, allocations: 342.8 kB / 1.348 GB, free: 6.789 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002171/0.3704, allocations: 71.95 kB / 1.348 GB, free: 6.719 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.3707, allocations: 145.3 kB / 1.348 GB, free: 6.543 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004746/0.3712, allocations: 244.3 kB / 1.349 GB, free: 6.266 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3712, allocations: 7.938 kB / 1.349 GB, free: 6.258 MB / 1.045 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006676/0.3718, allocations: 310.8 kB / 1.349 GB, free: 5.941 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.749e-05/0.3719, allocations: 37.69 kB / 1.349 GB, free: 5.898 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.3719, allocations: 0 / 1.349 GB, free: 5.898 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.3719, allocations: 8.25 kB / 1.349 GB, free: 5.891 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/0.3722, allocations: 59.91 kB / 1.349 GB, free: 5.832 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.3722, allocations: 4 kB / 1.349 GB, free: 5.828 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.3724, allocations: 31.83 kB / 1.349 GB, free: 5.797 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.923e-05/0.3725, allocations: 12 kB / 1.349 GB, free: 5.785 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.0001876/0.3727, allocations: 161.7 kB / 1.349 GB, free: 5.617 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.118e-05/0.3727, allocations: 35.77 kB / 1.349 GB, free: 5.582 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005122/0.3732, allocations: 203.2 kB / 1.349 GB, free: 5.375 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3732, allocations: 3.938 kB / 1.349 GB, free: 5.371 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3732, allocations: 4 kB / 1.349 GB, free: 5.367 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000566/0.3738, allocations: 479.8 kB / 1.35 GB, free: 4.812 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004734/0.3743, allocations: 353.4 kB / 1.35 GB, free: 4.418 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3743, allocations: 0 / 1.35 GB, free: 4.418 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.3745, allocations: 35.97 kB / 1.35 GB, free: 4.383 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3745, allocations: 3.938 kB / 1.35 GB, free: 4.379 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.3745, allocations: 4 kB / 1.35 GB, free: 4.375 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.354e-06/0.3745, allocations: 11.92 kB / 1.35 GB, free: 4.363 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3745, allocations: 0 / 1.35 GB, free: 4.363 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006855/0.3752, allocations: 284.7 kB / 1.351 GB, free: 4.066 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.3753, allocations: 124.9 kB / 1.351 GB, free: 3.926 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.3754, allocations: 0 / 1.351 GB, free: 3.926 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.3756, allocations: 23.91 kB / 1.351 GB, free: 3.902 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.3757, allocations: 15.98 kB / 1.351 GB, free: 3.887 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.3757, allocations: 7.984 kB / 1.351 GB, free: 3.879 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002803/0.376, allocations: 247.2 kB / 1.351 GB, free: 3.641 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.1e-07/0.376, allocations: 3.938 kB / 1.351 GB, free: 3.637 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004469/0.3764, allocations: 127.7 kB / 1.351 GB, free: 3.512 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.001247/0.3777, allocations: 0.928 MB / 1.352 GB, free: 2.559 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005483/0.3782, allocations: 225.6 kB / 1.352 GB, free: 2.328 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3782, allocations: 0 / 1.352 GB, free: 2.328 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001933/0.3784, allocations: 66.42 kB / 1.352 GB, free: 2.266 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009646/0.3794, allocations: 208.6 kB / 1.352 GB, free: 2.07 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/0.384, allocations: 3.059 MB / 1.355 GB, free: 14.87 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.3844, allocations: 0.7956 MB / 1.356 GB, free: 14.05 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0003038/0.3847, allocations: 67.23 kB / 1.356 GB, free: 13.98 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.3849, allocations: 115.4 kB / 1.356 GB, free: 13.87 MB / 1.061 GB Notification: Performance of SimCode: time 7.01e-07/0.3849, allocations: 0 / 1.356 GB, free: 13.87 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04078/0.4257, allocations: 10.24 MB / 1.366 GB, free: 3.812 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.513/8.939, allocations: 10.08 kB / 1.366 GB, free: 3.805 MB / 1.061 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv --start-time 0 --stop-time 7200 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 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.csv","/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] "Error: Could not read variable vol.T in file Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv. Warning: Get data of variable vol.T from file Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv failed! Error: Could not read variable expVes.port_a.p in file Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv. Warning: Get data of variable expVes.port_a.p from file Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.498763855081052]