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.000748/0.000748, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.004662/0.004662, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.288/1.288, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001685/0.001685, allocations: 263.2 kB / 291.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9218/0.9218, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004107/0.0004107, allocations: 11.53 kB / 0.5986 GB, free: 28.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1592, allocations: 88.55 MB / 0.6851 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.001736/0.1609, allocations: 1.445 MB / 0.6865 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.1624, allocations: 1.027 MB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.537e-05/0.1624, allocations: 1.188 kB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.053e-05/0.1625, allocations: 11.92 kB / 0.6875 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.843e-05/0.1626, allocations: 16.41 kB / 0.6875 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.1629, allocations: 130.2 kB / 0.6877 GB, free: 12.47 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00013/0.1631, allocations: 99.45 kB / 0.6878 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.1632, allocations: 33.31 kB / 0.6878 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.387e-05/0.1633, allocations: 31.28 kB / 0.6878 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.046e-05/0.1634, allocations: 39.84 kB / 0.6879 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.1634, allocations: 4 kB / 0.6879 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003012/0.1637, allocations: 183.8 kB / 0.688 GB, free: 12.09 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.889e-05/0.1637, allocations: 11.92 kB / 0.6881 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.926e-05/0.1638, allocations: 69.48 kB / 0.6881 GB, free: 12 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002694/0.1641, allocations: 192.1 kB / 0.6883 GB, free: 11.81 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1641, allocations: 0 / 0.6883 GB, free: 11.81 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1641, allocations: 4.562 kB / 0.6883 GB, free: 11.81 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1641, allocations: 0 / 0.6883 GB, free: 11.81 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.0004678/0.1646, allocations: 410.1 kB / 0.6887 GB, free: 11.36 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1646, allocations: 12.03 kB / 0.6887 GB, free: 11.35 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.132e-05/0.1647, allocations: 8.844 kB / 0.6887 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.1648, allocations: 196.1 kB / 0.6889 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.1649, allocations: 384 / 0.6889 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.421e-05/0.1649, allocations: 5.125 kB / 0.6889 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.1651, allocations: 74.77 kB / 0.689 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.1651, allocations: 9.703 kB / 0.689 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.1651, allocations: 0 / 0.689 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1651, allocations: 0 / 0.689 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.1652, allocations: 44.64 kB / 0.689 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005158/0.1658, allocations: 408.6 kB / 0.6894 GB, free: 10.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.1659, allocations: 42.56 kB / 0.6895 GB, free: 10.47 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.049e-05/0.166, allocations: 20.86 kB / 0.6895 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.1661, allocations: 93.78 kB / 0.6896 GB, free: 10.34 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.1661, allocations: 35.38 kB / 0.6896 GB, free: 10.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1661, allocations: 0 / 0.6896 GB, free: 10.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002706/0.1664, allocations: 87.17 kB / 0.6897 GB, free: 10.21 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.1664, allocations: 52.41 kB / 0.6897 GB, free: 10.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.1666, allocations: 143.8 kB / 0.6899 GB, free: 9.992 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.1666, allocations: 33.7 kB / 0.6899 GB, free: 9.953 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.1666, allocations: 104 kB / 0.69 GB, free: 9.848 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.745e-05/0.1667, allocations: 7.891 kB / 0.69 GB, free: 9.84 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.1667, allocations: 9.719 kB / 0.69 GB, free: 9.824 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1668, allocations: 318.8 kB / 0.6903 GB, free: 9.504 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.259e-05/0.1669, allocations: 15.98 kB / 0.6903 GB, free: 9.488 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.581e-05/0.1669, allocations: 19.98 kB / 0.6904 GB, free: 9.469 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.795e-05/0.167, allocations: 44.78 kB / 0.6904 GB, free: 9.422 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.167, allocations: 0 / 0.6904 GB, free: 9.422 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001418/0.1672, allocations: 77.86 kB / 0.6905 GB, free: 9.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.1672, allocations: 4 kB / 0.6905 GB, free: 9.336 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.1672, allocations: 0 / 0.6905 GB, free: 9.336 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1672, allocations: 48 / 0.6905 GB, free: 9.336 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.829e-05/0.1673, allocations: 15.98 kB / 0.6905 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.1673, allocations: 3.984 kB / 0.6905 GB, free: 9.316 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.787e-05/0.1674, allocations: 7.938 kB / 0.6905 GB, free: 9.309 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.1674, allocations: 0 / 0.6905 GB, free: 9.309 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 7.822e-05/0.1675, allocations: 118.4 kB / 0.6906 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.763e-05/0.1675, allocations: 7.906 kB / 0.6906 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002048/0.1677, allocations: 97.84 kB / 0.6907 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1677, allocations: 0 / 0.6907 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1678, allocations: 0 / 0.6907 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1678, allocations: 3.938 kB / 0.6907 GB, free: 9.062 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.1679, allocations: 185.7 kB / 0.6909 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.168, allocations: 7.938 kB / 0.6909 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.618e-05/0.168, allocations: 8 kB / 0.6909 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.168, allocations: 0 / 0.6909 GB, free: 8.816 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.1681, allocations: 3.984 kB / 0.6909 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1681, allocations: 4 kB / 0.6909 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1681, allocations: 0 / 0.6909 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.1683, allocations: 179.3 kB / 0.6911 GB, free: 8.617 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.445e-05/0.1683, allocations: 88.95 kB / 0.6912 GB, free: 8.512 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/0.1683, allocations: 4 kB / 0.6912 GB, free: 8.508 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.315e-05/0.1684, allocations: 4 kB / 0.6912 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.356e-05/0.1685, allocations: 11.92 kB / 0.6912 GB, free: 8.492 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-06/0.1685, allocations: 0 / 0.6912 GB, free: 8.492 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.246e-05/0.1685, allocations: 109.5 kB / 0.6913 GB, free: 8.387 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1685, allocations: 0 / 0.6913 GB, free: 8.387 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.1689, allocations: 67.92 kB / 0.6914 GB, free: 8.32 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.0002644/0.1691, allocations: 155.1 kB / 0.6915 GB, free: 8.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001494/0.1693, allocations: 47.92 kB / 0.6916 GB, free: 8.113 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1693, allocations: 0 / 0.6916 GB, free: 8.113 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.38e-05/0.1694, allocations: 23.98 kB / 0.6916 GB, free: 8.09 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.1697, allocations: 20.84 kB / 0.6916 GB, free: 8.074 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003887/0.1701, allocations: 265.1 kB / 0.6919 GB, free: 7.789 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.1704, allocations: 0.6965 MB / 0.6925 GB, free: 7.066 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.572e-05/0.1704, allocations: 7.984 kB / 0.6926 GB, free: 7.059 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.1705, allocations: 15.44 kB / 0.6926 GB, free: 7.043 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1705, allocations: 0 / 0.6926 GB, free: 7.043 MB / 494.1 MB Notification: Performance of Templates: time 0.004439/0.1749, allocations: 1.699 MB / 0.6942 GB, free: 5.355 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)