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.001442/0.001442, allocations: 83.59 kB / 20.45 MB, free: 4.121 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.001174/0.001174, allocations: 165 kB / 23.82 MB, free: 0.75 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 0.9304/0.9304, allocations: 177.1 MB / 204.2 MB, free: 5.25 MB / 186.7 MB " [Timeout remaining time 179] 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 1.841/1.841, allocations: 377.8 MB / 0.6236 GB, free: 8.562 MB / 0.5886 GB " [Timeout remaining time 178] 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 1.723e-06/1.723e-06, allocations: 0 / 0.8115 GB, free: 1.738 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.753e-05/1.926e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.734 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.006083/0.006103, allocations: 7.285 MB / 0.8186 GB, free: 10.45 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.002488/0.008591, allocations: 2.474 MB / 0.8211 GB, free: 7.98 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.008798, allocations: 30.03 kB / 0.8211 GB, free: 7.953 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0004248/0.009223, allocations: 127 kB / 0.8212 GB, free: 7.828 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0007415/0.009964, allocations: 0.535 MB / 0.8217 GB, free: 7.293 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000446/0.01041, allocations: 369.5 kB / 0.8221 GB, free: 6.934 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0009004/0.01131, allocations: 1.087 MB / 0.8231 GB, free: 5.84 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.0116, allocations: 262.9 kB / 0.8234 GB, free: 5.578 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007219/0.01232, allocations: 0.5518 MB / 0.8239 GB, free: 5.031 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002693/0.01259, allocations: 279.1 kB / 0.8242 GB, free: 4.758 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/0.01263, allocations: 33.19 kB / 0.8242 GB, free: 4.727 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.01282, allocations: 139.6 kB / 0.8244 GB, free: 4.59 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.512e-05/0.0129, allocations: 95.61 kB / 0.8245 GB, free: 4.496 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.01302, allocations: 148.7 kB / 0.8246 GB, free: 4.352 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0004412/0.01346, allocations: 414.6 kB / 0.825 GB, free: 3.945 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.01346, allocations: 3.938 kB / 0.825 GB, free: 3.941 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.22e-07/0.01347, allocations: 0.6562 kB / 0.825 GB, free: 3.941 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.01347, allocations: 0 / 0.825 GB, free: 3.941 MB / 0.7761 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.0008999/0.01437, allocations: 0.7705 MB / 0.8257 GB, free: 3.133 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.01441, allocations: 8.031 kB / 0.8258 GB, free: 3.125 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002017/0.01461, allocations: 80.58 kB / 0.8258 GB, free: 3.047 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.01506, allocations: 348.2 kB / 0.8262 GB, free: 2.684 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.01508, allocations: 25.89 kB / 0.8262 GB, free: 2.66 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-05/0.01514, allocations: 36.31 kB / 0.8262 GB, free: 2.625 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004484/0.01558, allocations: 375.2 kB / 0.8266 GB, free: 2.207 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.0156, allocations: 1.125 kB / 0.8266 GB, free: 2.207 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.01563, allocations: 12 kB / 0.8266 GB, free: 2.195 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.731e-05/0.01565, allocations: 8 kB / 0.8266 GB, free: 2.188 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.01585, allocations: 95.92 kB / 0.8267 GB, free: 2.098 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.01709, allocations: 1.291 MB / 0.828 GB, free: 0.75 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.01731, allocations: 99.09 kB / 0.828 GB, free: 0.6406 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.046e-05/0.01737, allocations: 31.67 kB / 0.8281 GB, free: 0.6055 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 7.852e-05/0.01744, allocations: 11.98 kB / 0.8281 GB, free: 0.5938 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.01763, allocations: 209.4 kB / 0.8283 GB, free: 360 kB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.693e-06/0.01764, allocations: 0 / 0.8283 GB, free: 360 kB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0003037/0.01794, allocations: 153.4 kB / 0.8284 GB, free: 204 kB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.01797, allocations: 55.41 kB / 0.8285 GB, free: 136 kB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.01826, allocations: 354.2 kB / 0.8288 GB, free: 15.77 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.01829, allocations: 34.28 kB / 0.8289 GB, free: 15.73 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.01842, allocations: 267.1 kB / 0.8291 GB, free: 15.46 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 4.359e-05/0.01847, allocations: 60.72 kB / 0.8292 GB, free: 15.4 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.656e-05/0.01854, allocations: 55.36 kB / 0.8292 GB, free: 15.34 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.01869, allocations: 0.5157 MB / 0.8297 GB, free: 14.81 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.135e-05/0.01877, allocations: 62.11 kB / 0.8298 GB, free: 14.74 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001282/0.0189, allocations: 166.2 kB / 0.8299 GB, free: 14.53 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.0191, allocations: 204.2 kB / 0.8301 GB, free: 14.28 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.0191, allocations: 0 / 0.8301 GB, free: 14.28 MB / 0.7917 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003309/0.01943, allocations: 276.6 kB / 0.8304 GB, free: 13.99 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.01946, allocations: 33.7 kB / 0.8304 GB, free: 13.95 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.01946, allocations: 4 kB / 0.8304 GB, free: 13.95 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.01948, allocations: 4 kB / 0.8304 GB, free: 13.94 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.01965, allocations: 51.91 kB / 0.8305 GB, free: 13.89 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.01966, allocations: 16.23 kB / 0.8305 GB, free: 13.88 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.01981, allocations: 27.83 kB / 0.8305 GB, free: 13.85 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.01983, allocations: 16 kB / 0.8306 GB, free: 13.83 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.0001063/0.01994, allocations: 176.4 kB / 0.8307 GB, free: 13.65 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.922e-05/0.01999, allocations: 39.77 kB / 0.8308 GB, free: 13.61 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002092/0.0202, allocations: 132.5 kB / 0.8309 GB, free: 13.47 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.0202, allocations: 0 / 0.8309 GB, free: 13.47 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.0202, allocations: 3.984 kB / 0.8309 GB, free: 13.47 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002294/0.02043, allocations: 423.8 kB / 0.8313 GB, free: 12.97 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002922/0.02072, allocations: 272.3 kB / 0.8316 GB, free: 12.67 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.02073, allocations: 3.938 kB / 0.8316 GB, free: 12.66 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.02083, allocations: 35.98 kB / 0.8316 GB, free: 12.63 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.02083, allocations: 0 / 0.8316 GB, free: 12.63 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.02085, allocations: 0 / 0.8316 GB, free: 12.63 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.02085, allocations: 4 kB / 0.8316 GB, free: 12.62 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.02085, allocations: 0 / 0.8316 GB, free: 12.62 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.02112, allocations: 214.1 kB / 0.8318 GB, free: 12.4 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 7.963e-05/0.0212, allocations: 47.78 kB / 0.8318 GB, free: 12.35 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/0.02123, allocations: 0 / 0.8318 GB, free: 12.35 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.02135, allocations: 19.98 kB / 0.8319 GB, free: 12.33 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/0.02141, allocations: 11.97 kB / 0.8319 GB, free: 12.32 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.02142, allocations: 8 kB / 0.8319 GB, free: 12.31 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0001733/0.0216, allocations: 239 kB / 0.8321 GB, free: 12.08 MB / 0.7917 GB Notification: Performance of sort global known variables: time 9e-08/0.0216, allocations: 0 / 0.8321 GB, free: 12.08 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.0003506/0.02195, allocations: 111.8 kB / 0.8322 GB, free: 11.97 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.0001936/0.02214, allocations: 147.1 kB / 0.8324 GB, free: 11.82 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.0002522/0.02239, allocations: 193.4 kB / 0.8325 GB, free: 11.61 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.02239, allocations: 0 / 0.8325 GB, free: 11.61 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 7.432e-05/0.02247, allocations: 51.59 kB / 0.8326 GB, free: 11.55 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006482/0.02312, allocations: 211.8 kB / 0.8328 GB, free: 11.36 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.0243, allocations: 0.6426 MB / 0.8334 GB, free: 10.68 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.216e-05/0.02436, allocations: 96.61 kB / 0.8335 GB, free: 10.57 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0001924/0.02456, allocations: 59.2 kB / 0.8336 GB, free: 10.51 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.54e-05/0.02463, allocations: 36.48 kB / 0.8336 GB, free: 10.47 MB / 0.7917 GB Notification: Performance of SimCode: time 8.31e-07/0.02463, allocations: 0 / 0.8336 GB, free: 10.47 MB / 0.7917 GB Notification: Performance of Templates: time 0.01147/0.0361, allocations: 7.277 MB / 0.8407 GB, free: 3.383 MB / 0.7917 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.267299451865256]