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.001244/0.001244, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001301/0.001301, allocations: 197.2 kB / 16.14 MB, free: 6.66 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.234/1.234, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001984/0.001984, allocations: 294.8 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8939/0.8939, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 97.8 kB / 0.5946 GB, free: 28.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1443, allocations: 86.98 MB / 0.6795 GB, free: 1.117 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01406/0.1584, allocations: 14.38 MB / 0.6936 GB, free: 2.695 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004536/0.163, allocations: 3.676 MB / 0.6972 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002444/0.1633, allocations: 19.88 kB / 0.6972 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004888/0.1638, allocations: 167.1 kB / 0.6973 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.1648, allocations: 0.5444 MB / 0.6979 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007193/0.1656, allocations: 355.2 kB / 0.6982 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001259/0.1668, allocations: 1.461 MB / 0.6996 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003338/0.1672, allocations: 268.4 kB / 0.6999 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003677/0.1675, allocations: 326.5 kB / 0.7002 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003129/0.1679, allocations: 302.6 kB / 0.7005 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.5e-05/0.1679, allocations: 20 kB / 0.7005 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004425/0.1684, allocations: 243.5 kB / 0.7008 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.326e-05/0.1685, allocations: 79.61 kB / 0.7008 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.1687, allocations: 199.1 kB / 0.701 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005925/0.1693, allocations: 0.5724 MB / 0.7016 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1693, allocations: 0 / 0.7016 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.11e-07/0.1693, allocations: 4 kB / 0.7016 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.774e-06/0.1693, allocations: 0 / 0.7016 GB, free: 10.48 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.001041/0.1704, allocations: 0.7495 MB / 0.7023 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.1704, allocations: 8.031 kB / 0.7023 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.467e-05/0.1705, allocations: 66.72 kB / 0.7024 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.1706, allocations: 44.47 kB / 0.7024 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006611/0.1713, allocations: 479.9 kB / 0.7029 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.1713, allocations: 24.5 kB / 0.7029 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/0.1714, allocations: 27.91 kB / 0.7029 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005233/0.1719, allocations: 314.2 kB / 0.7032 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.172, allocations: 0 / 0.7032 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.172, allocations: 12 kB / 0.7032 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.172, allocations: 7.984 kB / 0.7033 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004367/0.1725, allocations: 194.1 kB / 0.7034 GB, free: 8.461 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.001582/0.174, allocations: 1.477 MB / 0.7049 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003985/0.1745, allocations: 157.3 kB / 0.705 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.1746, allocations: 72.81 kB / 0.7051 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001609/0.1748, allocations: 85.09 kB / 0.7052 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.1751, allocations: 131.3 kB / 0.7053 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1751, allocations: 0 / 0.7053 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005796/0.1757, allocations: 238.8 kB / 0.7055 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.1757, allocations: 55.34 kB / 0.7056 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003159/0.176, allocations: 337.7 kB / 0.7059 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.1761, allocations: 25.7 kB / 0.7059 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.1762, allocations: 215.8 kB / 0.7061 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.447e-05/0.1763, allocations: 59.2 kB / 0.7062 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.1764, allocations: 53.69 kB / 0.7062 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.1765, allocations: 342.8 kB / 0.7066 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.1767, allocations: 63.95 kB / 0.7066 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.1769, allocations: 163 kB / 0.7068 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000393/0.1773, allocations: 240.5 kB / 0.707 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1773, allocations: 0 / 0.707 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005591/0.1779, allocations: 312.7 kB / 0.7073 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.1779, allocations: 37.69 kB / 0.7074 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1779, allocations: 8 kB / 0.7074 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.178, allocations: 7.938 kB / 0.7074 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.1782, allocations: 56.22 kB / 0.7074 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.1782, allocations: 8 kB / 0.7074 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.1784, allocations: 35.67 kB / 0.7075 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.1785, allocations: 12 kB / 0.7075 GB, free: 4.008 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.0001518/0.1786, allocations: 162.4 kB / 0.7076 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.996e-05/0.1787, allocations: 31.62 kB / 0.7077 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004336/0.1791, allocations: 212.3 kB / 0.7079 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1792, allocations: 4 kB / 0.7079 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1792, allocations: 0 / 0.7079 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004598/0.1796, allocations: 482.3 kB / 0.7083 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003799/0.18, allocations: 353.3 kB / 0.7087 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.18, allocations: 0 / 0.7087 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.1802, allocations: 27.98 kB / 0.7087 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1802, allocations: 4 kB / 0.7087 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.1802, allocations: 7.938 kB / 0.7087 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.461e-06/0.1802, allocations: 4 kB / 0.7087 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1802, allocations: 3.938 kB / 0.7087 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005624/0.1808, allocations: 280.6 kB / 0.709 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.1809, allocations: 124.8 kB / 0.7091 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.181, allocations: 3.938 kB / 0.7091 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.1812, allocations: 23.97 kB / 0.7091 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.796e-05/0.1813, allocations: 7.984 kB / 0.7091 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.1813, allocations: 15.98 kB / 0.7091 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002142/0.1815, allocations: 235.2 kB / 0.7094 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1815, allocations: 0 / 0.7094 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003627/0.1819, allocations: 123.9 kB / 0.7095 GB, free: 1.77 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.0009953/0.1829, allocations: 0.9105 MB / 0.7104 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004343/0.1833, allocations: 227.7 kB / 0.7106 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1834, allocations: 4.062 kB / 0.7106 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.1835, allocations: 71.89 kB / 0.7107 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008743/0.1844, allocations: 205.8 kB / 0.7109 GB, free: 328 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003982/0.1884, allocations: 3.147 MB / 0.7139 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.1888, allocations: 0.7879 MB / 0.7147 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00024/0.189, allocations: 71.17 kB / 0.7148 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.1892, allocations: 119.4 kB / 0.7149 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of SimCode: time 2.1e-07/0.1892, allocations: 0 / 0.7149 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0289/0.2181, allocations: 9.442 MB / 0.7241 GB, free: 2.812 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/0.2184, allocations: 214.9 kB / 0.7243 GB, free: 2.555 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/1.97, allocations: 0 / 0.7243 GB, free: 2.555 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)