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 1.335/1.335, allocations: 143.4 MB / 158.3 MB, free: 5.758 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.00181/0.00181, allocations: 177 kB / 191.5 MB, free: 5.762 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.823/1.823, allocations: 223.2 MB / 447.7 MB, free: 4.848 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.001333/0.001332, allocations: 92.31 kB / 0.5187 GB, free: 1.207 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001948/0.001948, allocations: 269.9 kB / 0.6005 GB, free: 48.78 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000495/0.000495, allocations: 15.55 kB / 0.6929 GB, free: 59.67 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.225, allocations: 82.8 MB / 0.7738 GB, free: 13.78 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.07/1.295, allocations: 366.2 MB / 1.131 GB, free: 4.293 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000318/1.296, allocations: 94.64 kB / 1.132 GB, free: 4.242 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.7614/2.057, allocations: 105.9 MB / 1.235 GB, free: 223.1 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.342e-06/2.057, allocations: 0 / 1.235 GB, free: 223.1 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.626e-05/2.057, allocations: 12 kB / 1.235 GB, free: 223.1 MB / 0.7136 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.00126/2.058, allocations: 0.7204 MB / 1.236 GB, free: 222.4 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/2.058, allocations: 12.03 kB / 1.236 GB, free: 222.3 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.909e-05/2.058, allocations: 62.48 kB / 1.236 GB, free: 222.3 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/2.059, allocations: 47.52 kB / 1.236 GB, free: 222.2 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/2.071, allocations: 6.856 MB / 1.242 GB, free: 215.3 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/2.071, allocations: 20.78 kB / 1.243 GB, free: 215.2 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.327e-05/2.071, allocations: 31.91 kB / 1.243 GB, free: 215.2 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005947/2.072, allocations: 306.2 kB / 1.243 GB, free: 214.9 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/2.072, allocations: 0 / 1.243 GB, free: 214.9 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/2.072, allocations: 19.97 kB / 1.243 GB, free: 214.9 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/2.072, allocations: 11.94 kB / 1.243 GB, free: 214.9 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004155/2.073, allocations: 194.1 kB / 1.243 GB, free: 214.7 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/2.074, allocations: 1.497 MB / 1.245 GB, free: 213.1 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004251/2.075, allocations: 158.6 kB / 1.245 GB, free: 212.9 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001264/2.075, allocations: 89.09 kB / 1.245 GB, free: 212.8 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002767/2.075, allocations: 132 kB / 1.245 GB, free: 212.6 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 2.315e-06/2.075, allocations: 0 / 1.245 GB, free: 212.6 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.0006072/2.076, allocations: 250.7 kB / 1.245 GB, free: 212.4 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/2.076, allocations: 55.41 kB / 1.245 GB, free: 212.3 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/2.076, allocations: 308.9 kB / 1.245 GB, free: 212 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/2.076, allocations: 29.7 kB / 1.245 GB, free: 212 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/2.076, allocations: 215.7 kB / 1.246 GB, free: 211.8 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.25e-05/2.076, allocations: 59.25 kB / 1.246 GB, free: 211.7 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/2.076, allocations: 8 kB / 1.246 GB, free: 211.7 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.096e-05/2.076, allocations: 338.8 kB / 1.246 GB, free: 211.4 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001718/2.077, allocations: 80.39 kB / 1.246 GB, free: 211.3 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/2.077, allocations: 152.2 kB / 1.246 GB, free: 211.1 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002035/2.077, allocations: 120.1 kB / 1.246 GB, free: 211 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/2.077, allocations: 0 / 1.246 GB, free: 211 MB / 0.7136 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005042/2.078, allocations: 322.6 kB / 1.247 GB, free: 210.7 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/2.078, allocations: 33.7 kB / 1.247 GB, free: 210.6 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/2.078, allocations: 0 / 1.247 GB, free: 210.6 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/2.078, allocations: 4 kB / 1.247 GB, free: 210.6 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/2.078, allocations: 72.14 kB / 1.247 GB, free: 210.5 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/2.078, allocations: 4 kB / 1.247 GB, free: 210.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002779/2.078, allocations: 47.61 kB / 1.247 GB, free: 210.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/2.078, allocations: 11.95 kB / 1.247 GB, free: 210.5 MB / 0.7136 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.0001577/2.078, allocations: 162.3 kB / 1.247 GB, free: 210.3 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.492e-05/2.078, allocations: 35.56 kB / 1.247 GB, free: 210.3 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004513/2.079, allocations: 202.6 kB / 1.247 GB, free: 210.1 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/2.079, allocations: 4 kB / 1.247 GB, free: 210.1 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/2.079, allocations: 0 / 1.247 GB, free: 210.1 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003983/2.079, allocations: 495.7 kB / 1.248 GB, free: 209.5 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003662/2.08, allocations: 349.4 kB / 1.248 GB, free: 209.1 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/2.08, allocations: 3.938 kB / 1.248 GB, free: 209.1 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/2.08, allocations: 39.97 kB / 1.248 GB, free: 209.1 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/2.08, allocations: 4 kB / 1.248 GB, free: 209.1 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/2.08, allocations: 0 / 1.248 GB, free: 209.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/2.08, allocations: 4 kB / 1.248 GB, free: 209.1 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/2.08, allocations: 4 kB / 1.248 GB, free: 209.1 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005381/2.08, allocations: 306.7 kB / 1.248 GB, free: 208.7 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/2.081, allocations: 128.7 kB / 1.249 GB, free: 208.6 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/2.081, allocations: 7.938 kB / 1.249 GB, free: 208.6 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/2.081, allocations: 19.98 kB / 1.249 GB, free: 208.6 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.926e-05/2.081, allocations: 15.97 kB / 1.249 GB, free: 208.6 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/2.081, allocations: 12 kB / 1.249 GB, free: 208.5 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0002161/2.081, allocations: 243.2 kB / 1.249 GB, free: 208.3 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.3e-07/2.081, allocations: 0 / 1.249 GB, free: 208.3 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0005085/2.082, allocations: 148 kB / 1.249 GB, free: 208.2 MB / 0.7136 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.001091/2.083, allocations: 0.9788 MB / 1.25 GB, free: 207.2 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004483/2.083, allocations: 235.2 kB / 1.25 GB, free: 206.9 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/2.083, allocations: 0 / 1.25 GB, free: 206.9 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000161/2.083, allocations: 76.52 kB / 1.25 GB, free: 206.8 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008559/2.084, allocations: 201 kB / 1.25 GB, free: 206.7 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003355/2.088, allocations: 3.662 MB / 1.254 GB, free: 202.9 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/2.088, allocations: 0.7962 MB / 1.255 GB, free: 202.1 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0003124/2.088, allocations: 67.23 kB / 1.255 GB, free: 202 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/2.088, allocations: 111.4 kB / 1.255 GB, free: 201.9 MB / 0.7136 GB Notification: Performance of SimCode: time 3.71e-07/2.088, allocations: 0 / 1.255 GB, free: 201.9 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02653/2.115, allocations: 10.71 MB / 1.265 GB, free: 191.4 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000282/2.115, allocations: 178.4 kB / 1.266 GB, free: 191.2 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.583/4.699, allocations: 0 / 1.266 GB, free: 191.2 MB / 0.7136 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)