Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.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: translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002444/0.002444, allocations: 270.9 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9823/0.9823, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 106.9 kB / 0.5952 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1575, allocations: 86.99 MB / 0.6802 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.003276/0.1608, allocations: 1.724 MB / 0.6819 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001616/0.1624, allocations: 1.025 MB / 0.6829 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.335e-05/0.1625, allocations: 0 / 0.6829 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.004e-05/0.1626, allocations: 11.86 kB / 0.6829 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.796e-05/0.1627, allocations: 27.72 kB / 0.6829 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004934/0.1632, allocations: 171.7 kB / 0.6831 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.1633, allocations: 91.53 kB / 0.6831 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.1634, allocations: 36.08 kB / 0.6832 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.964e-05/0.1635, allocations: 39.8 kB / 0.6832 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.688e-05/0.1636, allocations: 43.84 kB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.654e-05/0.1637, allocations: 4 kB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003118/0.164, allocations: 191.8 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.288e-05/0.164, allocations: 19.92 kB / 0.6835 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.578e-05/0.1641, allocations: 43.78 kB / 0.6835 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.1644, allocations: 195.5 kB / 0.6837 GB, free: 13.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1644, allocations: 3.984 kB / 0.6837 GB, free: 13.08 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1644, allocations: 0 / 0.6837 GB, free: 13.08 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.1644, allocations: 0 / 0.6837 GB, free: 13.08 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005178/0.1649, allocations: 427 kB / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.165, allocations: 8.031 kB / 0.6841 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.593e-05/0.165, allocations: 8.844 kB / 0.6841 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.1652, allocations: 188.1 kB / 0.6843 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.1652, allocations: 8.375 kB / 0.6843 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.1652, allocations: 4.312 kB / 0.6843 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.1654, allocations: 73.97 kB / 0.6844 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.1654, allocations: 0 / 0.6844 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.1654, allocations: 8 kB / 0.6844 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.1655, allocations: 0 / 0.6844 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001596/0.1656, allocations: 47.97 kB / 0.6844 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006982/0.1663, allocations: 392 kB / 0.6848 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.1665, allocations: 42.56 kB / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.982e-05/0.1665, allocations: 28.94 kB / 0.6849 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001148/0.1666, allocations: 81.11 kB / 0.685 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.1667, allocations: 30.56 kB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 3.627e-06/0.1667, allocations: 3.984 kB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002814/0.167, allocations: 93.5 kB / 0.6851 GB, free: 11.47 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.167, allocations: 51.41 kB / 0.6851 GB, free: 11.41 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.1672, allocations: 144 kB / 0.6853 GB, free: 11.26 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.1672, allocations: 29.7 kB / 0.6853 GB, free: 11.22 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.787e-05/0.1672, allocations: 104.1 kB / 0.6854 GB, free: 11.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.786e-05/0.1673, allocations: 7.812 kB / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.571e-05/0.1673, allocations: 13.72 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1674, allocations: 318.8 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.177e-05/0.1675, allocations: 12 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.718e-05/0.1675, allocations: 15.98 kB / 0.6857 GB, free: 10.74 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.1676, allocations: 48.78 kB / 0.6858 GB, free: 10.69 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1677, allocations: 0 / 0.6858 GB, free: 10.69 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001454/0.1678, allocations: 73.58 kB / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1678, allocations: 4 kB / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1678, allocations: 3.938 kB / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.1679, allocations: 0 / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.168, allocations: 11.98 kB / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.168, allocations: 0 / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.746e-05/0.168, allocations: 7.938 kB / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.1681, allocations: 4 kB / 0.6859 GB, free: 10.58 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 9.488e-05/0.1682, allocations: 118.5 kB / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.025e-05/0.1682, allocations: 7.906 kB / 0.686 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002172/0.1684, allocations: 81.86 kB / 0.6861 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1684, allocations: 8.094 kB / 0.6861 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1684, allocations: 3.938 kB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1685, allocations: 3.938 kB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.1687, allocations: 185.6 kB / 0.6863 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1687, allocations: 0 / 0.6863 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.48e-05/0.1688, allocations: 11.98 kB / 0.6863 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1688, allocations: 0 / 0.6863 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.1688, allocations: 4 kB / 0.6863 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1688, allocations: 0 / 0.6863 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1689, allocations: 0 / 0.6863 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.1691, allocations: 175.3 kB / 0.6865 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.792e-05/0.1691, allocations: 92.95 kB / 0.6865 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.1691, allocations: 4 kB / 0.6866 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.596e-05/0.1692, allocations: 7.984 kB / 0.6866 GB, free: 9.785 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.1693, allocations: 4.359 kB / 0.6866 GB, free: 9.781 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.1693, allocations: 0 / 0.6866 GB, free: 9.781 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.694e-05/0.1694, allocations: 109 kB / 0.6867 GB, free: 9.676 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1694, allocations: 0 / 0.6867 GB, free: 9.676 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.1697, allocations: 63.94 kB / 0.6867 GB, free: 9.613 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002925/0.17, allocations: 159.1 kB / 0.6869 GB, free: 9.449 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001619/0.1702, allocations: 43.95 kB / 0.6869 GB, free: 9.406 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1702, allocations: 3.938 kB / 0.6869 GB, free: 9.402 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 5.916e-05/0.1703, allocations: 23.98 kB / 0.6869 GB, free: 9.379 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.1706, allocations: 19.64 kB / 0.687 GB, free: 9.363 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004028/0.171, allocations: 214.9 kB / 0.6872 GB, free: 9.129 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.1713, allocations: 0.6924 MB / 0.6878 GB, free: 8.41 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.531e-05/0.1713, allocations: 8 kB / 0.6879 GB, free: 8.402 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.601e-05/0.1714, allocations: 11.44 kB / 0.6879 GB, free: 8.391 MB / 494.1 MB Notification: Performance of SimCode: time 2.866e-06/0.1714, allocations: 0 / 0.6879 GB, free: 8.391 MB / 494.1 MB Notification: Performance of Templates: time 0.004518/0.1759, allocations: 1.774 MB / 0.6896 GB, free: 6.629 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.makefile (rm -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.sim & ./BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)