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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 191.3 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.223/1.223, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00198/0.00198, allocations: 290.9 kB / 290.4 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9058/0.9058, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 94.86 kB / 0.5948 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1267, allocations: 86.98 MB / 0.6797 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01342/0.1402, allocations: 14.35 MB / 0.6937 GB, free: 2.598 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00439/0.1446, allocations: 3.619 MB / 0.6973 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002501/0.1448, allocations: 19.88 kB / 0.6973 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004916/0.1454, allocations: 171.1 kB / 0.6975 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001039/0.1464, allocations: 0.5483 MB / 0.698 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007381/0.1472, allocations: 353.5 kB / 0.6983 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00113/0.1483, allocations: 1.112 MB / 0.6994 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003699/0.1487, allocations: 316.6 kB / 0.6997 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008226/0.1495, allocations: 386.8 kB / 0.7001 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003608/0.1499, allocations: 318.6 kB / 0.7004 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.723e-05/0.1499, allocations: 35.94 kB / 0.7004 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004652/0.1504, allocations: 259.5 kB / 0.7007 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.111e-05/0.1505, allocations: 91.61 kB / 0.7008 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.1507, allocations: 211.1 kB / 0.701 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006501/0.1514, allocations: 0.5881 MB / 0.7015 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1514, allocations: 7.922 kB / 0.7015 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.62e-07/0.1514, allocations: 4 kB / 0.7015 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.984e-06/0.1514, allocations: 0 / 0.7015 GB, free: 10.59 MB / 0.4981 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.001053/0.1525, allocations: 0.7418 MB / 0.7023 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1525, allocations: 12.03 kB / 0.7023 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.663e-05/0.1526, allocations: 62.66 kB / 0.7023 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.1528, allocations: 48.47 kB / 0.7024 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006604/0.1534, allocations: 483.9 kB / 0.7028 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.1535, allocations: 20.5 kB / 0.7029 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.037e-05/0.1535, allocations: 31.91 kB / 0.7029 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005605/0.1541, allocations: 306.2 kB / 0.7032 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.1541, allocations: 8 kB / 0.7032 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.015e-05/0.1542, allocations: 8 kB / 0.7032 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.1542, allocations: 8 kB / 0.7032 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.1546, allocations: 190.1 kB / 0.7034 GB, free: 8.574 MB / 0.4981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.1563, allocations: 1.485 MB / 0.7048 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004161/0.1567, allocations: 158.6 kB / 0.705 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.1569, allocations: 64.81 kB / 0.7051 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001367/0.157, allocations: 89.09 kB / 0.7051 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002661/0.1573, allocations: 127.3 kB / 0.7053 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 2.164e-06/0.1573, allocations: 0 / 0.7053 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006008/0.1579, allocations: 242.7 kB / 0.7055 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.158, allocations: 59.34 kB / 0.7056 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003162/0.1583, allocations: 329.7 kB / 0.7059 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1583, allocations: 33.7 kB / 0.7059 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.1585, allocations: 211.8 kB / 0.7061 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.093e-05/0.1585, allocations: 63.17 kB / 0.7062 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.986e-05/0.1586, allocations: 49.7 kB / 0.7062 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1588, allocations: 350.8 kB / 0.7065 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/0.1589, allocations: 67.95 kB / 0.7066 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.1592, allocations: 143.1 kB / 0.7067 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003939/0.1596, allocations: 248.3 kB / 0.707 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1596, allocations: 4 kB / 0.707 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005704/0.1602, allocations: 308.6 kB / 0.7073 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.728e-05/0.1602, allocations: 41.62 kB / 0.7073 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1602, allocations: 0 / 0.7073 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1602, allocations: 7.938 kB / 0.7073 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.1605, allocations: 59.91 kB / 0.7074 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.1605, allocations: 7.938 kB / 0.7074 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.1608, allocations: 43.95 kB / 0.7074 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.1608, allocations: 11.98 kB / 0.7074 GB, free: 4.113 MB / 0.4981 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.1609, allocations: 154.4 kB / 0.7076 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.989e-05/0.161, allocations: 31.62 kB / 0.7076 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004365/0.1614, allocations: 196.4 kB / 0.7078 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1615, allocations: 4 kB / 0.7078 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1615, allocations: 0 / 0.7078 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004775/0.1619, allocations: 489.1 kB / 0.7083 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004007/0.1624, allocations: 357.3 kB / 0.7086 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1624, allocations: 0 / 0.7086 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.1625, allocations: 31.98 kB / 0.7087 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1626, allocations: 4 kB / 0.7087 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.1626, allocations: 3.938 kB / 0.7087 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1626, allocations: 4 kB / 0.7087 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.1626, allocations: 3.984 kB / 0.7087 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005603/0.1632, allocations: 282.1 kB / 0.7089 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.1633, allocations: 124.8 kB / 0.7091 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.69e-05/0.1633, allocations: 7.938 kB / 0.7091 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002403/0.1636, allocations: 19.97 kB / 0.7091 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.871e-05/0.1636, allocations: 15.98 kB / 0.7091 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.1637, allocations: 7.984 kB / 0.7091 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002012/0.1639, allocations: 239.2 kB / 0.7093 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1639, allocations: 3.938 kB / 0.7093 GB, free: 2 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003818/0.1643, allocations: 119.9 kB / 0.7095 GB, free: 1.883 MB / 0.4981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009466/0.1652, allocations: 0.8972 MB / 0.7103 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004711/0.1657, allocations: 232.8 kB / 0.7105 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1657, allocations: 0.625 kB / 0.7105 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.1659, allocations: 75.89 kB / 0.7106 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008916/0.1668, allocations: 219.2 kB / 0.7108 GB, free: 444 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003904/0.1707, allocations: 3.148 MB / 0.7139 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.171, allocations: 0.7918 MB / 0.7147 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002436/0.1713, allocations: 55.27 kB / 0.7147 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.1714, allocations: 119.3 kB / 0.7148 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of SimCode: time 3.31e-07/0.1715, allocations: 0 / 0.7148 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.193, allocations: 9.73 MB / 0.7243 GB, free: 2.684 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.1932, allocations: 217 kB / 0.7246 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/2.045, allocations: 3.938 kB / 0.7246 GB, free: 2.418 MB / 0.5137 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/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)