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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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.8338/0.8338, allocations: 141.8 MB / 149.3 MB, free: 9.223 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 168.9 kB / 182.2 MB, free: 9.441 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 221.5 MB / 436.4 MB, free: 13.29 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009467/0.0009468, allocations: 81.62 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001749/0.001749, allocations: 277.2 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.511e-05/1.513e-05, allocations: 0 / 0.6765 GB, free: 12.84 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.526/0.5261, allocations: 82.78 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8751/1.401, allocations: 365.5 MB / 1.114 GB, free: 15.71 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/1.402, allocations: 91.89 kB / 1.114 GB, free: 15.67 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.6458/2.047, allocations: 105.1 MB / 1.217 GB, free: 237.9 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.454e-06/2.047, allocations: 0 / 1.217 GB, free: 237.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.519e-05/2.047, allocations: 11.94 kB / 1.217 GB, free: 237.8 MB / 0.698 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.001131/2.049, allocations: 0.6454 MB / 1.218 GB, free: 237.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/2.049, allocations: 8.031 kB / 1.218 GB, free: 237.1 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002491/2.049, allocations: 43.53 kB / 1.218 GB, free: 237.1 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01291/2.062, allocations: 6.788 MB / 1.224 GB, free: 230.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/2.062, allocations: 8 kB / 1.224 GB, free: 230.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.239e-05/2.062, allocations: 16 kB / 1.224 GB, free: 230.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003487/2.062, allocations: 133.1 kB / 1.225 GB, free: 230.1 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003988/2.063, allocations: 257.1 kB / 1.225 GB, free: 229.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/2.063, allocations: 0 / 1.225 GB, free: 229.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.876e-05/2.063, allocations: 8 kB / 1.225 GB, free: 229.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.412e-05/2.063, allocations: 8 kB / 1.225 GB, free: 229.9 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/2.065, allocations: 1.434 MB / 1.226 GB, free: 228.3 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/2.065, allocations: 118.6 kB / 1.226 GB, free: 228.2 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.454e-05/2.065, allocations: 48.23 kB / 1.226 GB, free: 228.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/2.065, allocations: 89.09 kB / 1.226 GB, free: 228 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/2.065, allocations: 109.3 kB / 1.227 GB, free: 227.9 MB / 0.698 GB Notification: Performance of pre-optimization done (n=15): time 2.405e-06/2.065, allocations: 0 / 1.227 GB, free: 227.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=15): time 0.0003703/2.066, allocations: 133.3 kB / 1.227 GB, free: 227.8 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/2.066, allocations: 59.39 kB / 1.227 GB, free: 227.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/2.066, allocations: 277.1 kB / 1.227 GB, free: 227.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/2.066, allocations: 29.64 kB / 1.227 GB, free: 227.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/2.066, allocations: 215.8 kB / 1.227 GB, free: 227.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.156e-05/2.066, allocations: 55.3 kB / 1.227 GB, free: 227.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.183e-05/2.066, allocations: 0 / 1.227 GB, free: 227.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.809e-05/2.066, allocations: 346.7 kB / 1.228 GB, free: 226.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.385e-05/2.066, allocations: 51.92 kB / 1.228 GB, free: 226.7 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.777e-05/2.067, allocations: 117.9 kB / 1.228 GB, free: 226.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/2.067, allocations: 76.41 kB / 1.228 GB, free: 226.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/2.067, allocations: 0 / 1.228 GB, free: 226.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003986/2.067, allocations: 233.9 kB / 1.228 GB, free: 226.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.34e-05/2.067, allocations: 37.64 kB / 1.228 GB, free: 226.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/2.067, allocations: 0 / 1.228 GB, free: 226.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/2.067, allocations: 4 kB / 1.228 GB, free: 226.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002178/2.067, allocations: 64.22 kB / 1.228 GB, free: 226.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/2.067, allocations: 4 kB / 1.228 GB, free: 226.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/2.068, allocations: 35.73 kB / 1.228 GB, free: 226.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/2.068, allocations: 11.98 kB / 1.228 GB, free: 226.1 MB / 0.698 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 () * 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 8.57e-05/2.068, allocations: 122 kB / 1.228 GB, free: 226 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.68e-05/2.068, allocations: 35.61 kB / 1.228 GB, free: 226 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002781/2.068, allocations: 148.5 kB / 1.228 GB, free: 225.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/2.068, allocations: 4 kB / 1.228 GB, free: 225.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/2.068, allocations: 0 / 1.228 GB, free: 225.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000231/2.069, allocations: 453.4 kB / 1.229 GB, free: 225.3 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003611/2.069, allocations: 305.9 kB / 1.229 GB, free: 224.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/2.069, allocations: 0 / 1.229 GB, free: 224.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/2.069, allocations: 31.97 kB / 1.229 GB, free: 224.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/2.069, allocations: 4 kB / 1.229 GB, free: 224.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/2.069, allocations: 0 / 1.229 GB, free: 224.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/2.069, allocations: 4 kB / 1.229 GB, free: 224.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/2.069, allocations: 0 / 1.229 GB, free: 224.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003179/2.069, allocations: 231.1 kB / 1.229 GB, free: 224.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/2.07, allocations: 136.6 kB / 1.23 GB, free: 224.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.675e-05/2.07, allocations: 4 kB / 1.23 GB, free: 224.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/2.07, allocations: 15.98 kB / 1.23 GB, free: 224.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.921e-05/2.07, allocations: 23.91 kB / 1.23 GB, free: 224.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/2.07, allocations: 12 kB / 1.23 GB, free: 224.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001738/2.07, allocations: 216.6 kB / 1.23 GB, free: 224.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/2.07, allocations: 0 / 1.23 GB, free: 224.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004854/2.071, allocations: 135.9 kB / 1.23 GB, free: 224.1 MB / 0.698 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) * 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.0004092/2.071, allocations: 232.7 kB / 1.23 GB, free: 223.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000252/2.071, allocations: 187.7 kB / 1.23 GB, free: 223.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/2.071, allocations: 0 / 1.23 GB, free: 223.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 7.491e-05/2.071, allocations: 55.92 kB / 1.23 GB, free: 223.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008669/2.072, allocations: 178.4 kB / 1.231 GB, free: 223.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008868/2.073, allocations: 0.5153 MB / 1.231 GB, free: 222.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/2.073, allocations: 0.803 MB / 1.232 GB, free: 222.1 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002959/2.074, allocations: 59.19 kB / 1.232 GB, free: 222 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.829e-05/2.074, allocations: 35.42 kB / 1.232 GB, free: 222 MB / 0.698 GB Notification: Performance of SimCode: time 2.4e-07/2.074, allocations: 0 / 1.232 GB, free: 222 MB / 0.698 GB Notification: Performance of Templates: time 0.01035/2.084, allocations: 6.135 MB / 1.238 GB, free: 216 MB / 0.698 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)