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.0008435/0.0008435, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004972/0.004972, allocations: 169.6 kB / 16.27 MB, free: 6.355 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.22/1.22, allocations: 223.2 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001665/0.001665, allocations: 278.5 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9025/0.9025, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004703/0.0004704, allocations: 17.62 kB / 0.5988 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1363, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01187/0.1483, allocations: 13.87 MB / 0.6988 GB, free: 1.078 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004362/0.1527, allocations: 3.625 MB / 0.7023 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002974/0.153, allocations: 19.88 kB / 0.7023 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004603/0.1534, allocations: 171.1 kB / 0.7025 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.1545, allocations: 0.5444 MB / 0.703 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.1552, allocations: 353.6 kB / 0.7034 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001248/0.1565, allocations: 1.461 MB / 0.7048 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003252/0.1568, allocations: 256.4 kB / 0.705 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.1572, allocations: 318.5 kB / 0.7053 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003086/0.1575, allocations: 302.6 kB / 0.7056 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.1575, allocations: 12 kB / 0.7056 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003971/0.1579, allocations: 239.4 kB / 0.7059 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.216e-05/0.158, allocations: 75.67 kB / 0.7059 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.1582, allocations: 216.7 kB / 0.7061 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005354/0.1587, allocations: 0.5606 MB / 0.7067 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1587, allocations: 7.938 kB / 0.7067 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.144e-06/0.1587, allocations: 3.984 kB / 0.7067 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.1588, allocations: 0 / 0.7067 GB, free: 8.93 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.0009004/0.1597, allocations: 0.6679 MB / 0.7073 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.1597, allocations: 12.03 kB / 0.7074 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.181e-05/0.1598, allocations: 70.72 kB / 0.7074 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.1599, allocations: 44.47 kB / 0.7075 GB, free: 8.07 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006075/0.1605, allocations: 483.8 kB / 0.7079 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.1606, allocations: 20.5 kB / 0.7079 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.933e-05/0.1606, allocations: 28 kB / 0.708 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005096/0.1611, allocations: 318.2 kB / 0.7083 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.1612, allocations: 0 / 0.7083 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.1612, allocations: 8 kB / 0.7083 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.1612, allocations: 12 kB / 0.7083 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004421/0.1617, allocations: 202.1 kB / 0.7085 GB, free: 6.973 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.001514/0.1632, allocations: 1.489 MB / 0.7099 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004112/0.1636, allocations: 166.6 kB / 0.7101 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.1638, allocations: 80.8 kB / 0.7102 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.1639, allocations: 85.09 kB / 0.7103 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002656/0.1642, allocations: 139.2 kB / 0.7104 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.1642, allocations: 0 / 0.7104 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005765/0.1648, allocations: 251.1 kB / 0.7106 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.1648, allocations: 59.34 kB / 0.7107 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003081/0.1651, allocations: 333.7 kB / 0.711 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.1652, allocations: 25.7 kB / 0.711 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.1653, allocations: 219.8 kB / 0.7112 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.263e-05/0.1654, allocations: 55.2 kB / 0.7113 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.954e-05/0.1654, allocations: 29.7 kB / 0.7113 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.1655, allocations: 346.8 kB / 0.7117 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001916/0.1657, allocations: 75.95 kB / 0.7117 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/0.166, allocations: 162.5 kB / 0.7119 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.1664, allocations: 252.8 kB / 0.7121 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1664, allocations: 0 / 0.7121 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005492/0.1669, allocations: 324.8 kB / 0.7124 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.167, allocations: 36.05 kB / 0.7125 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.167, allocations: 4 kB / 0.7125 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.167, allocations: 7.938 kB / 0.7125 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.1672, allocations: 63.89 kB / 0.7125 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1672, allocations: 7.938 kB / 0.7125 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.1675, allocations: 43.86 kB / 0.7126 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.1675, allocations: 8 kB / 0.7126 GB, free: 2.449 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.0001405/0.1677, allocations: 158.4 kB / 0.7127 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.314e-05/0.1677, allocations: 35.62 kB / 0.7128 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000434/0.1681, allocations: 212.4 kB / 0.713 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1682, allocations: 0 / 0.713 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1682, allocations: 0 / 0.713 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004503/0.1686, allocations: 0.4901 MB / 0.7135 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003552/0.169, allocations: 345.4 kB / 0.7138 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.169, allocations: 0 / 0.7138 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.1692, allocations: 43.91 kB / 0.7138 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1692, allocations: 0 / 0.7138 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1692, allocations: 3.938 kB / 0.7138 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.1692, allocations: 8 kB / 0.7138 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1692, allocations: 0 / 0.7138 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005781/0.1698, allocations: 300.5 kB / 0.7141 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.1699, allocations: 132.8 kB / 0.7143 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.175e-05/0.17, allocations: 3.938 kB / 0.7143 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.1702, allocations: 23.97 kB / 0.7143 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.689e-05/0.1703, allocations: 11.98 kB / 0.7143 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.1703, allocations: 11.98 kB / 0.7143 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002026/0.1705, allocations: 239.2 kB / 0.7145 GB, free: 292 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1705, allocations: 0 / 0.7145 GB, free: 292 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000359/0.1709, allocations: 116 kB / 0.7146 GB, free: 176 kB / 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.0009881/0.1719, allocations: 0.9295 MB / 0.7156 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000436/0.1723, allocations: 235.1 kB / 0.7158 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1723, allocations: 0.625 kB / 0.7158 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.1725, allocations: 86.14 kB / 0.7159 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009399/0.1735, allocations: 201.7 kB / 0.7161 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003785/0.1772, allocations: 3.239 MB / 0.7192 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000278/0.1775, allocations: 0.7879 MB / 0.72 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002364/0.1778, allocations: 63.2 kB / 0.72 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.1779, allocations: 119.4 kB / 0.7202 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of SimCode: time 1.673e-06/0.178, allocations: 0 / 0.7202 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.574/3.752, allocations: 9.365 MB / 0.7293 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002701/3.753, allocations: 210.8 kB / 0.7295 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.344/6.097, allocations: 4 kB / 0.7295 GB, free: 0.9375 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)