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.8283/0.8283, allocations: 141.8 MB / 149.3 MB, free: 9.219 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.001264/0.001264, allocations: 180.6 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.43/1.43, allocations: 221.5 MB / 436.4 MB, free: 13.35 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.001013/0.001013, allocations: 79.88 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001788/0.001788, allocations: 279.2 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.038e-05/2.03e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4261/0.4262, allocations: 82.77 MB / 0.7575 GB, free: 31.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8035/1.23, allocations: 365.5 MB / 1.114 GB, free: 15.42 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/1.23, allocations: 87.27 kB / 1.114 GB, free: 15.38 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.6375/1.868, allocations: 105.1 MB / 1.217 GB, free: 237.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.104e-06/1.868, allocations: 7.938 kB / 1.217 GB, free: 237.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.564e-05/1.868, allocations: 7.938 kB / 1.217 GB, free: 237.5 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.0009178/1.869, allocations: 0.6579 MB / 1.218 GB, free: 236.8 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/1.869, allocations: 12.03 kB / 1.218 GB, free: 236.8 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/1.869, allocations: 47.44 kB / 1.218 GB, free: 236.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01231/1.881, allocations: 6.793 MB / 1.224 GB, free: 229.9 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/1.881, allocations: 8 kB / 1.224 GB, free: 229.9 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.732e-05/1.881, allocations: 16 kB / 1.225 GB, free: 229.9 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002824/1.882, allocations: 137 kB / 1.225 GB, free: 229.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003312/1.882, allocations: 245.2 kB / 1.225 GB, free: 229.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/1.882, allocations: 0 / 1.225 GB, free: 229.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/1.882, allocations: 4 kB / 1.225 GB, free: 229.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/1.882, allocations: 15.94 kB / 1.225 GB, free: 229.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/1.883, allocations: 1.426 MB / 1.226 GB, free: 228 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/1.884, allocations: 114.7 kB / 1.226 GB, free: 227.9 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.01e-05/1.884, allocations: 44.86 kB / 1.226 GB, free: 227.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/1.884, allocations: 96.77 kB / 1.227 GB, free: 227.7 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/1.884, allocations: 107.3 kB / 1.227 GB, free: 227.6 MB / 0.698 GB Notification: Performance of pre-optimization done (n=15): time 1.774e-06/1.884, allocations: 0 / 1.227 GB, free: 227.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=15): time 0.0003226/1.884, allocations: 143 kB / 1.227 GB, free: 227.4 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.409e-05/1.884, allocations: 59.39 kB / 1.227 GB, free: 227.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002259/1.885, allocations: 273.1 kB / 1.227 GB, free: 227.1 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/1.885, allocations: 25.7 kB / 1.227 GB, free: 227.1 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.982e-05/1.885, allocations: 215.8 kB / 1.227 GB, free: 226.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.237e-05/1.885, allocations: 55.3 kB / 1.227 GB, free: 226.8 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/1.885, allocations: 0 / 1.227 GB, free: 226.8 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.19e-05/1.885, allocations: 342.8 kB / 1.228 GB, free: 226.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.695e-05/1.885, allocations: 55.92 kB / 1.228 GB, free: 226.4 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.154e-05/1.885, allocations: 122.9 kB / 1.228 GB, free: 226.2 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/1.885, allocations: 72.81 kB / 1.228 GB, free: 226.2 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/1.885, allocations: 0 / 1.228 GB, free: 226.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003444/1.886, allocations: 237.7 kB / 1.228 GB, free: 225.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/1.886, allocations: 35.27 kB / 1.228 GB, free: 225.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/1.886, allocations: 0 / 1.228 GB, free: 225.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/1.886, allocations: 4 kB / 1.228 GB, free: 225.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/1.886, allocations: 56.22 kB / 1.228 GB, free: 225.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/1.886, allocations: 8 kB / 1.228 GB, free: 225.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002567/1.886, allocations: 31.73 kB / 1.228 GB, free: 225.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/1.886, allocations: 26.97 kB / 1.228 GB, free: 225.8 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 6.93e-05/1.886, allocations: 112.9 kB / 1.228 GB, free: 225.7 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001931/1.886, allocations: 145.2 kB / 1.229 GB, free: 225.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.376e-05/1.886, allocations: 31.72 kB / 1.229 GB, free: 225.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002428/1.887, allocations: 149.8 kB / 1.229 GB, free: 225.3 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/1.887, allocations: 3.984 kB / 1.229 GB, free: 225.3 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/1.887, allocations: 0 / 1.229 GB, free: 225.3 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002147/1.887, allocations: 454 kB / 1.229 GB, free: 224.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003038/1.887, allocations: 309.7 kB / 1.229 GB, free: 224.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/1.887, allocations: 0 / 1.229 GB, free: 224.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/1.887, allocations: 35.98 kB / 1.229 GB, free: 224.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/1.887, allocations: 0 / 1.229 GB, free: 224.4 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/1.888, allocations: 11.98 kB / 1.23 GB, free: 224.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/1.888, allocations: 4 kB / 1.23 GB, free: 224.4 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/1.888, allocations: 0 / 1.23 GB, free: 224.4 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002949/1.888, allocations: 224.6 kB / 1.23 GB, free: 224.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/1.888, allocations: 124.8 kB / 1.23 GB, free: 224 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.782e-05/1.888, allocations: 3.938 kB / 1.23 GB, free: 224 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/1.888, allocations: 27.91 kB / 1.23 GB, free: 224 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/1.888, allocations: 15.98 kB / 1.23 GB, free: 224 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/1.888, allocations: 7.984 kB / 1.23 GB, free: 224 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001554/1.888, allocations: 212.6 kB / 1.23 GB, free: 223.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/1.888, allocations: 0 / 1.23 GB, free: 223.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004422/1.889, allocations: 139.9 kB / 1.23 GB, free: 223.6 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.000685/1.89, allocations: 0.9007 MB / 1.231 GB, free: 222.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002335/1.89, allocations: 180.3 kB / 1.231 GB, free: 222.5 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/1.89, allocations: 3.938 kB / 1.231 GB, free: 222.5 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 6.99e-05/1.89, allocations: 51.98 kB / 1.231 GB, free: 222.5 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008147/1.891, allocations: 176.6 kB / 1.232 GB, free: 222.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/1.892, allocations: 0.6183 MB / 1.232 GB, free: 221.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001957/1.892, allocations: 0.7952 MB / 1.233 GB, free: 220.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002679/1.892, allocations: 55.25 kB / 1.233 GB, free: 220.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/1.892, allocations: 111.4 kB / 1.233 GB, free: 220.7 MB / 0.698 GB Notification: Performance of SimCode: time 2.71e-07/1.892, allocations: 0 / 1.233 GB, free: 220.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/1.922, allocations: 8.996 MB / 1.242 GB, free: 211.8 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/1.922, allocations: 144 kB / 1.242 GB, free: 211.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.204/4.126, allocations: 1.969 kB / 1.242 GB, free: 211.6 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)