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.00236/0.00236, allocations: 87.69 kB / 20.23 MB, free: 4.184 MB / 18.57 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.002802/0.002802, allocations: 161.3 kB / 23.55 MB, free: 0.875 MB / 18.57 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.703/1.703, allocations: 177.1 MB / 203.9 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.067/3.067, allocations: 377.8 MB / 0.6232 GB, free: 8.562 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel") translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.073e-06/2.073e-06, allocations: 1.094 kB / 0.8108 GB, free: 2.125 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.359e-05/3.567e-05, allocations: 5.266 kB / 0.8108 GB, free: 2.121 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.02182/0.02186, allocations: 14.9 MB / 0.8253 GB, free: 3.219 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.007209/0.02907, allocations: 3.71 MB / 0.829 GB, free: 15.52 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007532/0.02982, allocations: 23.81 kB / 0.829 GB, free: 15.49 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0008482/0.03067, allocations: 202.6 kB / 0.8292 GB, free: 15.29 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.001759/0.03243, allocations: 0.6409 MB / 0.8298 GB, free: 14.65 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.03349, allocations: 418.7 kB / 0.8302 GB, free: 14.24 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.001603/0.03509, allocations: 1.102 MB / 0.8313 GB, free: 13.13 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004873/0.03558, allocations: 269.1 kB / 0.8315 GB, free: 12.86 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001439/0.03702, allocations: 0.5787 MB / 0.8321 GB, free: 12.29 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000497/0.03752, allocations: 287.1 kB / 0.8324 GB, free: 12.01 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 7.174e-05/0.03759, allocations: 32 kB / 0.8324 GB, free: 11.98 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005744/0.03816, allocations: 215.5 kB / 0.8326 GB, free: 11.77 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.03831, allocations: 103.6 kB / 0.8327 GB, free: 11.67 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.03854, allocations: 151.6 kB / 0.8329 GB, free: 11.52 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.03962, allocations: 0.6153 MB / 0.8335 GB, free: 10.9 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.03963, allocations: 4 kB / 0.8335 GB, free: 10.9 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.492e-06/0.03963, allocations: 0 / 0.8335 GB, free: 10.9 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.03964, allocations: 0 / 0.8335 GB, free: 10.9 MB / 0.7917 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.001587/0.04123, allocations: 0.8084 MB / 0.8343 GB, free: 10.05 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.04127, allocations: 12.03 kB / 0.8343 GB, free: 10.04 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002955/0.04157, allocations: 76.53 kB / 0.8343 GB, free: 9.961 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008719/0.04244, allocations: 410.8 kB / 0.8347 GB, free: 9.535 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.955e-05/0.04247, allocations: 20.88 kB / 0.8348 GB, free: 9.516 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.839e-05/0.04254, allocations: 32.36 kB / 0.8348 GB, free: 9.484 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007384/0.04327, allocations: 430.5 kB / 0.8352 GB, free: 9.016 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.04329, allocations: 0 / 0.8352 GB, free: 9.016 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.786e-05/0.04333, allocations: 12 kB / 0.8352 GB, free: 9.004 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.04336, allocations: 12 kB / 0.8352 GB, free: 8.992 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004554/0.04381, allocations: 169.8 kB / 0.8354 GB, free: 8.828 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002284/0.0461, allocations: 1.434 MB / 0.8368 GB, free: 7.328 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004546/0.04655, allocations: 139.1 kB / 0.8369 GB, free: 7.18 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.04672, allocations: 59.91 kB / 0.837 GB, free: 7.117 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001259/0.04684, allocations: 16 kB / 0.837 GB, free: 7.102 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004/0.04724, allocations: 227.7 kB / 0.8372 GB, free: 6.84 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.04724, allocations: 0 / 0.8372 GB, free: 6.84 MB / 0.7917 GB Notification: Performance of matching and sorting (n=15): time 0.0007333/0.04798, allocations: 209.4 kB / 0.8374 GB, free: 6.629 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.04804, allocations: 51.41 kB / 0.8374 GB, free: 6.566 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000552/0.04859, allocations: 438.2 kB / 0.8379 GB, free: 6.117 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.04863, allocations: 29.7 kB / 0.8379 GB, free: 6.082 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.04892, allocations: 295 kB / 0.8382 GB, free: 5.789 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 7.71e-05/0.049, allocations: 55.59 kB / 0.8382 GB, free: 5.734 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.04912, allocations: 63.36 kB / 0.8383 GB, free: 5.664 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0003243/0.04944, allocations: 0.5352 MB / 0.8388 GB, free: 5.117 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.04965, allocations: 89.61 kB / 0.8389 GB, free: 5.023 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004501/0.0501, allocations: 210.2 kB / 0.8391 GB, free: 4.766 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004545/0.05055, allocations: 270.9 kB / 0.8394 GB, free: 4.449 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.05055, allocations: 0 / 0.8394 GB, free: 4.449 MB / 0.7917 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006442/0.0512, allocations: 342.5 kB / 0.8397 GB, free: 4.098 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 4.381e-05/0.05124, allocations: 29.7 kB / 0.8397 GB, free: 4.062 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.05125, allocations: 4 kB / 0.8397 GB, free: 4.059 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.05127, allocations: 4 kB / 0.8397 GB, free: 4.055 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002387/0.05151, allocations: 59.91 kB / 0.8398 GB, free: 3.996 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.05153, allocations: 7.938 kB / 0.8398 GB, free: 3.988 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.05176, allocations: 31.81 kB / 0.8398 GB, free: 3.957 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.0518, allocations: 8.25 kB / 0.8398 GB, free: 3.949 MB / 0.7917 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.0002282/0.05202, allocations: 212.4 kB / 0.84 GB, free: 3.73 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-05/0.05209, allocations: 31.81 kB / 0.8401 GB, free: 3.699 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000444/0.05253, allocations: 173.8 kB / 0.8402 GB, free: 3.523 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.05254, allocations: 4 kB / 0.8402 GB, free: 3.52 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.05255, allocations: 0 / 0.8402 GB, free: 3.52 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005555/0.0531, allocations: 467.8 kB / 0.8407 GB, free: 2.977 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005192/0.05362, allocations: 324.3 kB / 0.841 GB, free: 2.625 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.05362, allocations: 4 kB / 0.841 GB, free: 2.621 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.05378, allocations: 23.98 kB / 0.841 GB, free: 2.598 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.05378, allocations: 4 kB / 0.841 GB, free: 2.594 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.0538, allocations: 3.984 kB / 0.841 GB, free: 2.59 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.0538, allocations: 0 / 0.841 GB, free: 2.59 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.05381, allocations: 0 / 0.841 GB, free: 2.59 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006042/0.05441, allocations: 278.7 kB / 0.8413 GB, free: 2.297 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.05454, allocations: 43.78 kB / 0.8413 GB, free: 2.254 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.908e-05/0.05459, allocations: 8 kB / 0.8413 GB, free: 2.246 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.0548, allocations: 15.98 kB / 0.8413 GB, free: 2.23 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.847e-05/0.05487, allocations: 19.91 kB / 0.8414 GB, free: 2.211 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.05489, allocations: 8 kB / 0.8414 GB, free: 2.203 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0003178/0.05521, allocations: 283 kB / 0.8416 GB, free: 1.93 MB / 0.7917 GB Notification: Performance of sort global known variables: time 8.1e-08/0.05521, allocations: 0 / 0.8416 GB, free: 1.93 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.0004913/0.0557, allocations: 127.7 kB / 0.8418 GB, free: 1.805 MB / 0.7917 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.0003879/0.05609, allocations: 193.7 kB / 0.8419 GB, free: 1.609 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.0005601/0.05665, allocations: 257 kB / 0.8422 GB, free: 1.336 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.05665, allocations: 4.188 kB / 0.8422 GB, free: 1.332 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.05683, allocations: 71.59 kB / 0.8423 GB, free: 1.258 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.05815, allocations: 218.3 kB / 0.8425 GB, free: 1.055 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.05958, allocations: 0.6467 MB / 0.8431 GB, free: 384 kB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.0598, allocations: 185.1 kB / 0.8433 GB, free: 180 kB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0002355/0.06004, allocations: 59.19 kB / 0.8433 GB, free: 116 kB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.395e-05/0.06013, allocations: 32.48 kB / 0.8434 GB, free: 80 kB / 0.7917 GB Notification: Performance of SimCode: time 9.72e-07/0.06013, allocations: 0 / 0.8434 GB, free: 80 kB / 0.7917 GB Notification: Performance of Templates: time 0.01637/0.07651, allocations: 7.249 MB / 0.8504 GB, free: 9.023 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile [Timeout 300] (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 & ./Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) [Timeout 240] 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/jenkins/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: 8.837020631995983]