Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7576/0.7576, allocations: 140.1 MB / 156 MB, free: 5.168 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 176.7 kB / 188.5 MB, free: 15.83 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.767/1.767, allocations: 205.4 MB / 426.3 MB, free: 8.473 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 89.12 kB / 0.4945 GB, free: 8.418 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001917/0.001917, allocations: 263.8 kB / 0.5728 GB, free: 66.23 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004834/0.0004835, allocations: 23.98 kB / 0.662 GB, free: 6.82 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.491/0.4915, allocations: 79.3 MB / 0.7395 GB, free: 46.36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9289/1.42, allocations: 364.3 MB / 1.095 GB, free: 12.61 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003389/1.421, allocations: 97.44 kB / 1.095 GB, free: 12.56 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.7208/2.142, allocations: 103.4 MB / 1.196 GB, free: 218.3 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.493e-06/2.142, allocations: 4 kB / 1.196 GB, free: 218.3 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 3.004e-05/2.142, allocations: 10.19 kB / 1.196 GB, free: 218.3 MB / 0.6667 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.001202/2.143, allocations: 0.7196 MB / 1.197 GB, free: 217.5 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/2.143, allocations: 8.031 kB / 1.197 GB, free: 217.5 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001984/2.143, allocations: 52.45 kB / 1.197 GB, free: 217.5 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01098/2.154, allocations: 6.063 MB / 1.203 GB, free: 211.4 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/2.154, allocations: 24.92 kB / 1.203 GB, free: 211.4 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.497e-05/2.154, allocations: 28.94 kB / 1.203 GB, free: 211.4 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006809/2.155, allocations: 314.1 kB / 1.203 GB, free: 211 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/2.155, allocations: 3.938 kB / 1.203 GB, free: 211 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.746e-05/2.155, allocations: 12 kB / 1.203 GB, free: 211 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.496e-05/2.155, allocations: 8 kB / 1.203 GB, free: 211 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005007/2.156, allocations: 202.1 kB / 1.204 GB, free: 210.8 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001985/2.158, allocations: 1.479 MB / 1.205 GB, free: 209.2 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004242/2.158, allocations: 166.6 kB / 1.205 GB, free: 209 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/2.158, allocations: 76.81 kB / 1.205 GB, free: 209 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001343/2.159, allocations: 85.11 kB / 1.205 GB, free: 208.9 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/2.159, allocations: 135.1 kB / 1.205 GB, free: 208.7 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=15): time 4.248e-06/2.159, allocations: 0 / 1.205 GB, free: 208.7 MB / 0.6667 GB Notification: Performance of matching and sorting (n=15): time 0.0007038/2.16, allocations: 250.6 kB / 1.206 GB, free: 208.5 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/2.16, allocations: 59.41 kB / 1.206 GB, free: 208.4 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003679/2.16, allocations: 321.7 kB / 1.206 GB, free: 208.1 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 3.465e-05/2.16, allocations: 37.69 kB / 1.206 GB, free: 208 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/2.16, allocations: 211.7 kB / 1.206 GB, free: 207.8 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 5.641e-05/2.16, allocations: 55.28 kB / 1.206 GB, free: 207.8 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.165e-05/2.16, allocations: 4 kB / 1.206 GB, free: 207.8 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 9.852e-05/2.16, allocations: 342.8 kB / 1.207 GB, free: 207.4 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/2.161, allocations: 75.95 kB / 1.207 GB, free: 207.3 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/2.161, allocations: 153.4 kB / 1.207 GB, free: 207.2 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004064/2.161, allocations: 261.8 kB / 1.207 GB, free: 206.9 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/2.161, allocations: 0 / 1.207 GB, free: 206.9 MB / 0.6667 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005906/2.162, allocations: 321.1 kB / 1.207 GB, free: 206.5 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/2.162, allocations: 37.94 kB / 1.207 GB, free: 206.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/2.162, allocations: 8 kB / 1.207 GB, free: 206.5 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/2.162, allocations: 4 kB / 1.207 GB, free: 206.5 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/2.162, allocations: 55.91 kB / 1.207 GB, free: 206.4 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/2.162, allocations: 4 kB / 1.208 GB, free: 206.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000331/2.162, allocations: 39.73 kB / 1.208 GB, free: 206.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.113e-05/2.163, allocations: 19.94 kB / 1.208 GB, free: 206.4 MB / 0.6667 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001963/2.163, allocations: 165.6 kB / 1.208 GB, free: 206.2 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/2.163, allocations: 31.62 kB / 1.208 GB, free: 206.2 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004383/2.163, allocations: 207.7 kB / 1.208 GB, free: 206 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/2.163, allocations: 3.938 kB / 1.208 GB, free: 206 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/2.163, allocations: 0 / 1.208 GB, free: 206 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004077/2.164, allocations: 495.7 kB / 1.208 GB, free: 205.4 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004191/2.164, allocations: 353 kB / 1.209 GB, free: 205 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/2.164, allocations: 0 / 1.209 GB, free: 205 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/2.164, allocations: 35.97 kB / 1.209 GB, free: 205 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.227e-06/2.164, allocations: 4 kB / 1.209 GB, free: 205 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/2.164, allocations: 0 / 1.209 GB, free: 205 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/2.164, allocations: 0 / 1.209 GB, free: 205 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/2.164, allocations: 4 kB / 1.209 GB, free: 205 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005539/2.165, allocations: 316.3 kB / 1.209 GB, free: 204.6 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/2.165, allocations: 124.8 kB / 1.209 GB, free: 204.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/2.165, allocations: 0 / 1.209 GB, free: 204.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/2.165, allocations: 27.97 kB / 1.209 GB, free: 204.5 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.905e-05/2.165, allocations: 15.97 kB / 1.209 GB, free: 204.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/2.165, allocations: 8 kB / 1.209 GB, free: 204.4 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002116/2.166, allocations: 239.1 kB / 1.209 GB, free: 204.2 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.1e-07/2.166, allocations: 0 / 1.209 GB, free: 204.2 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0005108/2.166, allocations: 132 kB / 1.21 GB, free: 204.1 MB / 0.6667 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004258/2.167, allocations: 225.7 kB / 1.21 GB, free: 203.9 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.000457/2.167, allocations: 247.1 kB / 1.21 GB, free: 203.6 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/2.167, allocations: 0 / 1.21 GB, free: 203.6 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001629/2.167, allocations: 72.58 kB / 1.21 GB, free: 203.5 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009417/2.168, allocations: 184 kB / 1.21 GB, free: 203.4 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/2.17, allocations: 0.9542 MB / 1.211 GB, free: 202.4 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/2.17, allocations: 0.7882 MB / 1.212 GB, free: 201.6 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0003193/2.17, allocations: 75.12 kB / 1.212 GB, free: 201.5 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.044e-05/2.17, allocations: 31.42 kB / 1.212 GB, free: 201.5 MB / 0.6667 GB Notification: Performance of SimCode: time 3.1e-07/2.17, allocations: 0 / 1.212 GB, free: 201.5 MB / 0.6667 GB Notification: Performance of Templates: time 0.01242/2.183, allocations: 7.035 MB / 1.219 GB, free: 194.5 MB / 0.6667 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)