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: "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7146/0.7146, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009957/0.000996, allocations: 174.8 kB / 187.2 MB, free: 11.89 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.288/1.288, allocations: 221.3 MB / 441.4 MB, free: 4.609 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.0008914/0.0008915, allocations: 93.92 kB / 0.5124 GB, free: 24.24 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001667/0.001667, allocations: 271.3 kB / 0.5939 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.51e-05/2.513e-05, allocations: 4 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3219, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5875/0.9094, allocations: 366.2 MB / 1.122 GB, free: 7.973 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.9097, allocations: 87.11 kB / 1.122 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.4816/1.391, allocations: 105.6 MB / 1.225 GB, free: 239.9 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.653e-06/1.391, allocations: 3.719 kB / 1.225 GB, free: 239.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.03e-05/1.391, allocations: 10.91 kB / 1.225 GB, free: 239.9 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.0007769/1.392, allocations: 0.6557 MB / 1.226 GB, free: 239.3 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/1.392, allocations: 7.031 kB / 1.226 GB, free: 239.3 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.306e-05/1.392, allocations: 69.44 kB / 1.226 GB, free: 239.3 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/1.392, allocations: 43.78 kB / 1.226 GB, free: 239.2 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0113/1.404, allocations: 6.815 MB / 1.233 GB, free: 234.9 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/1.404, allocations: 20.56 kB / 1.233 GB, free: 234.9 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/1.404, allocations: 24 kB / 1.233 GB, free: 234.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/1.404, allocations: 294.3 kB / 1.233 GB, free: 234.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/1.404, allocations: 0 / 1.233 GB, free: 234.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/1.404, allocations: 12 kB / 1.233 GB, free: 234.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/1.404, allocations: 4.219 kB / 1.233 GB, free: 234.5 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/1.405, allocations: 158.2 kB / 1.233 GB, free: 234.4 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/1.406, allocations: 1.495 MB / 1.235 GB, free: 232.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/1.406, allocations: 130.6 kB / 1.235 GB, free: 232.6 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.194e-05/1.406, allocations: 52.86 kB / 1.235 GB, free: 232.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001176/1.407, allocations: 85.09 kB / 1.235 GB, free: 232.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/1.407, allocations: 107.4 kB / 1.235 GB, free: 232.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/1.407, allocations: 4 kB / 1.235 GB, free: 232.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=15): time 0.0002696/1.407, allocations: 145.2 kB / 1.235 GB, free: 232.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/1.407, allocations: 59.34 kB / 1.235 GB, free: 232.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/1.407, allocations: 319.5 kB / 1.235 GB, free: 231.8 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/1.407, allocations: 29.7 kB / 1.235 GB, free: 231.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.568e-05/1.407, allocations: 215.7 kB / 1.236 GB, free: 231.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.245e-05/1.407, allocations: 47.36 kB / 1.236 GB, free: 231.5 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.067e-05/1.407, allocations: 4 kB / 1.236 GB, free: 231.5 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.618e-05/1.408, allocations: 346.8 kB / 1.236 GB, free: 231.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.69e-05/1.408, allocations: 48.5 kB / 1.236 GB, free: 231.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/1.408, allocations: 128.9 kB / 1.236 GB, free: 231 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/1.408, allocations: 107.1 kB / 1.236 GB, free: 230.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/1.408, allocations: 4 kB / 1.236 GB, free: 230.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003359/1.408, allocations: 272 kB / 1.237 GB, free: 230.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/1.408, allocations: 33.77 kB / 1.237 GB, free: 230.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/1.408, allocations: 4 kB / 1.237 GB, free: 230.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/1.408, allocations: 11.98 kB / 1.237 GB, free: 230.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/1.409, allocations: 63.89 kB / 1.237 GB, free: 230.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/1.409, allocations: 7.938 kB / 1.237 GB, free: 230.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002516/1.409, allocations: 55.56 kB / 1.237 GB, free: 230.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/1.409, allocations: 8 kB / 1.237 GB, free: 230.4 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 7.335e-05/1.409, allocations: 116.9 kB / 1.237 GB, free: 230.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.865e-05/1.409, allocations: 31.62 kB / 1.237 GB, free: 230.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002538/1.409, allocations: 170.7 kB / 1.237 GB, free: 230.1 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/1.409, allocations: 4 kB / 1.237 GB, free: 230 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/1.409, allocations: 0 / 1.237 GB, free: 230 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002171/1.409, allocations: 455.7 kB / 1.237 GB, free: 229.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003205/1.41, allocations: 365.1 kB / 1.238 GB, free: 229.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/1.41, allocations: 0 / 1.238 GB, free: 229.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000152/1.41, allocations: 27.98 kB / 1.238 GB, free: 229.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/1.41, allocations: 4 kB / 1.238 GB, free: 229.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/1.41, allocations: 4 kB / 1.238 GB, free: 229.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/1.41, allocations: 3.984 kB / 1.238 GB, free: 229.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/1.41, allocations: 0 / 1.238 GB, free: 229.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/1.41, allocations: 243.9 kB / 1.238 GB, free: 228.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/1.41, allocations: 132.7 kB / 1.238 GB, free: 228.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/1.41, allocations: 4 kB / 1.238 GB, free: 228.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/1.411, allocations: 15.98 kB / 1.238 GB, free: 228.7 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/1.411, allocations: 19.97 kB / 1.238 GB, free: 228.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/1.411, allocations: 7.984 kB / 1.238 GB, free: 228.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001763/1.411, allocations: 242.2 kB / 1.238 GB, free: 228.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/1.411, allocations: 0 / 1.238 GB, free: 228.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003804/1.411, allocations: 151.9 kB / 1.239 GB, free: 228.2 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.0006168/1.412, allocations: 0.8978 MB / 1.24 GB, free: 227.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002284/1.412, allocations: 203.6 kB / 1.24 GB, free: 227.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/1.412, allocations: 0 / 1.24 GB, free: 227.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 7.55e-05/1.412, allocations: 49.77 kB / 1.24 GB, free: 227.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008101/1.413, allocations: 207.8 kB / 1.24 GB, free: 226.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000945/1.414, allocations: 0.6371 MB / 1.241 GB, free: 226.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/1.414, allocations: 0.7962 MB / 1.241 GB, free: 225.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002141/1.414, allocations: 69.03 kB / 1.241 GB, free: 225.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/1.415, allocations: 111.4 kB / 1.242 GB, free: 225.2 MB / 0.698 GB Notification: Performance of SimCode: time 2.5e-07/1.415, allocations: 0 / 1.242 GB, free: 225.2 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/1.433, allocations: 10.76 MB / 1.252 GB, free: 214.7 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001297/1.434, allocations: 164.4 kB / 1.252 GB, free: 214.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/3.472, allocations: 7.938 kB / 1.252 GB, free: 214.5 MB / 0.698 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)