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.004519/0.004519, allocations: 100.4 kB / 15.73 MB, free: 6.023 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.00107/0.00107, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 278.7 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9275/0.9275, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 95.86 kB / 0.6814 GB, free: 15.55 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1609/0.1625, allocations: 86.97 MB / 0.7663 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002665/0.1652, allocations: 1.741 MB / 0.768 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001553/0.1668, allocations: 1.021 MB / 0.769 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.446e-05/0.1668, allocations: 0 / 0.769 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.014e-05/0.1669, allocations: 11.86 kB / 0.769 GB, free: 5.707 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001079/0.167, allocations: 31.7 kB / 0.7691 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005107/0.1675, allocations: 171.4 kB / 0.7692 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.1677, allocations: 95.53 kB / 0.7693 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.1678, allocations: 32.16 kB / 0.7694 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.989e-05/0.1679, allocations: 47.78 kB / 0.7694 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.168, allocations: 43.78 kB / 0.7694 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.1681, allocations: 4 kB / 0.7695 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003353/0.1684, allocations: 195.7 kB / 0.7696 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.006e-05/0.1684, allocations: 7.938 kB / 0.7696 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.077e-05/0.1685, allocations: 43.8 kB / 0.7697 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.1688, allocations: 199.6 kB / 0.7699 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1688, allocations: 0 / 0.7699 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.796e-06/0.1688, allocations: 4 kB / 0.7699 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.692e-06/0.1688, allocations: 3.938 kB / 0.7699 GB, free: 4.84 MB / 0.5606 GB 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.0005652/0.1694, allocations: 423 kB / 0.7703 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001028/0.1695, allocations: 8.031 kB / 0.7703 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.606e-05/0.1696, allocations: 12.75 kB / 0.7703 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/0.1698, allocations: 198.5 kB / 0.7705 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.1698, allocations: 4.375 kB / 0.7705 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.1698, allocations: 4.375 kB / 0.7705 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.17, allocations: 73.98 kB / 0.7706 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.17, allocations: 0 / 0.7706 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.17, allocations: 4 kB / 0.7706 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.17, allocations: 0 / 0.7706 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001248/0.1701, allocations: 43.97 kB / 0.7706 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005054/0.1707, allocations: 392 kB / 0.771 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.1708, allocations: 50.56 kB / 0.771 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.011e-05/0.1709, allocations: 24.94 kB / 0.7711 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001269/0.171, allocations: 81.11 kB / 0.7711 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.171, allocations: 34.5 kB / 0.7712 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.171, allocations: 0 / 0.7712 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0002615/0.1713, allocations: 85.56 kB / 0.7713 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.1713, allocations: 55.41 kB / 0.7713 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.1715, allocations: 140.5 kB / 0.7714 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.1715, allocations: 29.7 kB / 0.7715 GB, free: 2.984 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.1716, allocations: 104 kB / 0.7716 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.1716, allocations: 11.89 kB / 0.7716 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.298e-05/0.1717, allocations: 17.72 kB / 0.7716 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1718, allocations: 318.8 kB / 0.7719 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.01e-05/0.1718, allocations: 15.98 kB / 0.7719 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-05/0.1719, allocations: 16 kB / 0.7719 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.439e-05/0.172, allocations: 40.77 kB / 0.772 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.172, allocations: 4 kB / 0.772 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001366/0.1721, allocations: 65.59 kB / 0.772 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.1722, allocations: 4 kB / 0.772 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.1722, allocations: 0 / 0.772 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.1722, allocations: 3.938 kB / 0.772 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.1723, allocations: 11.98 kB / 0.7721 GB, free: 2.355 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1723, allocations: 4 kB / 0.7721 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.347e-05/0.1723, allocations: 7.922 kB / 0.7721 GB, free: 2.344 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.1724, allocations: 4 kB / 0.7721 GB, free: 2.34 MB / 0.5606 GB 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 8.151e-05/0.1724, allocations: 118.4 kB / 0.7722 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.1725, allocations: 3.906 kB / 0.7722 GB, free: 2.211 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001994/0.1727, allocations: 85.91 kB / 0.7723 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.1727, allocations: 0 / 0.7723 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1727, allocations: 8 kB / 0.7723 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.1727, allocations: 3.938 kB / 0.7723 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.1729, allocations: 185.5 kB / 0.7725 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1729, allocations: 112 / 0.7725 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.543e-05/0.173, allocations: 19.92 kB / 0.7725 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.173, allocations: 0 / 0.7725 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.173, allocations: 4 kB / 0.7725 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.173, allocations: 0 / 0.7725 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.173, allocations: 0 / 0.7725 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.1732, allocations: 179.8 kB / 0.7727 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.193e-05/0.1733, allocations: 92.94 kB / 0.7727 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.1733, allocations: 0 / 0.7727 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.245e-05/0.1734, allocations: 4 kB / 0.7727 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.909e-05/0.1734, allocations: 3.938 kB / 0.7728 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.1735, allocations: 3.984 kB / 0.7728 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.718e-05/0.1735, allocations: 109.5 kB / 0.7729 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.1735, allocations: 0 / 0.7729 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003078/0.1738, allocations: 71.83 kB / 0.7729 GB, free: 1.363 MB / 0.5606 GB 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.0002571/0.1741, allocations: 155.1 kB / 0.7731 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.1743, allocations: 43.91 kB / 0.7731 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1743, allocations: 0 / 0.7731 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.965e-05/0.1743, allocations: 19.98 kB / 0.7731 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.1747, allocations: 12 kB / 0.7731 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003724/0.1751, allocations: 214.9 kB / 0.7734 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.1754, allocations: 0.6923 MB / 0.774 GB, free: 176 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.75e-05/0.1754, allocations: 8 kB / 0.774 GB, free: 168 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.488e-05/0.1755, allocations: 15.42 kB / 0.7741 GB, free: 152 kB / 0.5606 GB Notification: Performance of SimCode: time 2.81e-07/0.1755, allocations: 4 kB / 0.7741 GB, free: 148 kB / 0.5606 GB Notification: Performance of Templates: time 0.3098/0.4853, allocations: 1.781 MB / 0.7758 GB, free: 14.33 MB / 0.5606 GB 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)