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.001187/0.001187, allocations: 101.8 kB / 19.73 MB, free: 2.23 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.001341/0.001341, allocations: 217 kB / 23.04 MB, free: 5.074 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.385/1.385, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.19/3.19, allocations: 0.49 GB / 0.7959 GB, free: 33.3 MB / 0.6231 GB " [Timeout remaining time 176] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="cs",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.002879/0.002879, allocations: 68.62 kB / 1.155 GB, free: 25.72 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4217/0.4246, allocations: 176.1 MB / 1.327 GB, free: 1.988 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01764/0.4422, allocations: 14.81 MB / 1.341 GB, free: 3.125 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.005892/0.4481, allocations: 3.686 MB / 1.345 GB, free: 15.43 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005198/0.4486, allocations: 27.81 kB / 1.345 GB, free: 15.4 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0006558/0.4493, allocations: 214.7 kB / 1.345 GB, free: 15.19 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.001565/0.4509, allocations: 0.6297 MB / 1.346 GB, free: 14.56 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009736/0.4518, allocations: 416.4 kB / 1.346 GB, free: 14.16 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001523/0.4534, allocations: 1.118 MB / 1.347 GB, free: 13.03 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.4538, allocations: 265 kB / 1.347 GB, free: 12.76 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001176/0.455, allocations: 447.9 kB / 1.348 GB, free: 12.32 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004601/0.4554, allocations: 322.6 kB / 1.348 GB, free: 12.01 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.324e-05/0.4555, allocations: 32 kB / 1.348 GB, free: 11.98 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006032/0.4561, allocations: 287.5 kB / 1.348 GB, free: 11.7 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.4562, allocations: 103.5 kB / 1.348 GB, free: 11.59 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002235/0.4564, allocations: 211 kB / 1.349 GB, free: 11.39 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0008914/0.4573, allocations: 0.6189 MB / 1.349 GB, free: 10.77 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.4573, allocations: 0 / 1.349 GB, free: 10.77 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.132e-06/0.4573, allocations: 0 / 1.349 GB, free: 10.77 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.4573, allocations: 0 / 1.349 GB, free: 10.77 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.001175/0.4585, allocations: 0.6894 MB / 1.35 GB, free: 10.04 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.4585, allocations: 8.031 kB / 1.35 GB, free: 10.03 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.038e-05/0.4586, allocations: 8.688 kB / 1.35 GB, free: 10.02 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.956e-05/0.4586, allocations: 58.73 kB / 1.35 GB, free: 9.957 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.4588, allocations: 52.64 kB / 1.35 GB, free: 9.906 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008007/0.4596, allocations: 400.8 kB / 1.35 GB, free: 9.488 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.254e-05/0.4597, allocations: 28.38 kB / 1.35 GB, free: 9.461 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-05/0.4597, allocations: 27.98 kB / 1.35 GB, free: 9.434 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005878/0.4603, allocations: 309.3 kB / 1.351 GB, free: 9.109 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.4603, allocations: 3.953 kB / 1.351 GB, free: 9.105 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.086e-05/0.4604, allocations: 12 kB / 1.351 GB, free: 9.094 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.336e-05/0.4604, allocations: 11.98 kB / 1.351 GB, free: 9.082 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004977/0.4609, allocations: 201.8 kB / 1.351 GB, free: 8.887 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.001934/0.4628, allocations: 1.421 MB / 1.352 GB, free: 7.348 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004403/0.4632, allocations: 142.6 kB / 1.352 GB, free: 7.199 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.4634, allocations: 64.81 kB / 1.353 GB, free: 7.133 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.4635, allocations: 8 kB / 1.353 GB, free: 7.125 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000308/0.4638, allocations: 133.4 kB / 1.353 GB, free: 6.984 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 2.104e-06/0.4638, allocations: 0 / 1.353 GB, free: 6.984 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0006642/0.4645, allocations: 241.2 kB / 1.353 GB, free: 6.742 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/0.4646, allocations: 55.41 kB / 1.353 GB, free: 6.676 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004102/0.465, allocations: 353.6 kB / 1.353 GB, free: 6.328 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.465, allocations: 33.7 kB / 1.353 GB, free: 6.289 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.4652, allocations: 220.1 kB / 1.354 GB, free: 6.07 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.739e-05/0.4652, allocations: 55.58 kB / 1.354 GB, free: 6.016 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.014e-05/0.4653, allocations: 53.66 kB / 1.354 GB, free: 5.957 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4655, allocations: 346.7 kB / 1.354 GB, free: 5.609 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.4657, allocations: 79.95 kB / 1.354 GB, free: 5.531 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002421/0.4659, allocations: 137.4 kB / 1.354 GB, free: 5.363 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004337/0.4664, allocations: 240.7 kB / 1.354 GB, free: 5.09 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.4664, allocations: 3.984 kB / 1.354 GB, free: 5.086 MB / 1.045 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006281/0.467, allocations: 317.1 kB / 1.355 GB, free: 4.766 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.545e-05/0.467, allocations: 33.7 kB / 1.355 GB, free: 4.727 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.4671, allocations: 0 / 1.355 GB, free: 4.727 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.4671, allocations: 7.938 kB / 1.355 GB, free: 4.719 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.4673, allocations: 63.89 kB / 1.355 GB, free: 4.656 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.4673, allocations: 4 kB / 1.355 GB, free: 4.652 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.4676, allocations: 35.77 kB / 1.355 GB, free: 4.617 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.4676, allocations: 8 kB / 1.355 GB, free: 4.609 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.0001759/0.4678, allocations: 166.4 kB / 1.355 GB, free: 4.438 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.9e-05/0.4678, allocations: 35.77 kB / 1.355 GB, free: 4.402 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004899/0.4683, allocations: 207.4 kB / 1.355 GB, free: 4.195 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.4683, allocations: 4 kB / 1.355 GB, free: 4.191 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4683, allocations: 0 / 1.355 GB, free: 4.191 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005698/0.4689, allocations: 487.7 kB / 1.356 GB, free: 3.629 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004495/0.4693, allocations: 320.5 kB / 1.356 GB, free: 3.273 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.4693, allocations: 0 / 1.356 GB, free: 3.273 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.4695, allocations: 31.92 kB / 1.356 GB, free: 3.242 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.4695, allocations: 0 / 1.356 GB, free: 3.242 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/0.4695, allocations: 11.92 kB / 1.356 GB, free: 3.23 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4695, allocations: 0 / 1.356 GB, free: 3.23 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4695, allocations: 0 / 1.356 GB, free: 3.23 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006453/0.4702, allocations: 286.3 kB / 1.356 GB, free: 2.934 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.4703, allocations: 43.83 kB / 1.356 GB, free: 2.891 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.288e-05/0.4704, allocations: 19.8 kB / 1.356 GB, free: 2.871 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.4706, allocations: 19.98 kB / 1.356 GB, free: 2.852 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.4707, allocations: 16.05 kB / 1.356 GB, free: 2.836 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.4707, allocations: 8 kB / 1.356 GB, free: 2.828 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002736/0.471, allocations: 255.1 kB / 1.357 GB, free: 2.578 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.2e-07/0.471, allocations: 0 / 1.357 GB, free: 2.578 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004468/0.4714, allocations: 131.6 kB / 1.357 GB, free: 2.449 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.001213/0.4726, allocations: 0.8996 MB / 1.358 GB, free: 1.52 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005229/0.4731, allocations: 231 kB / 1.358 GB, free: 1.281 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4731, allocations: 0 / 1.358 GB, free: 1.281 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001811/0.4733, allocations: 63.95 kB / 1.358 GB, free: 1.219 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009794/0.4743, allocations: 213.8 kB / 1.358 GB, free: 1.02 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004474/0.4788, allocations: 3.059 MB / 1.361 GB, free: 13.82 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.4792, allocations: 0.7995 MB / 1.362 GB, free: 12.99 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002804/0.4795, allocations: 67.23 kB / 1.362 GB, free: 12.93 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/0.4797, allocations: 115.4 kB / 1.362 GB, free: 12.81 MB / 1.061 GB Notification: Performance of SimCode: time 1.113e-06/0.4797, allocations: 0 / 1.362 GB, free: 12.81 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.5161, allocations: 10.54 MB / 1.372 GB, free: 2.535 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.1, allocations: 10.3 kB / 1.372 GB, free: 2.527 MB / 1.061 GB " [Timeout remaining time 288] (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: 18.832179012009874]