Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") translateModel(IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009981/0.0009983, allocations: 92.95 kB / 16.02 MB, free: 84 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.001274/0.001274, allocations: 184.7 kB / 16.92 MB, free: 6.887 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.453/1.453, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7812/0.7812, allocations: 115.5 MB / 407.6 MB, free: 2.68 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003438, allocations: 8 kB / 495.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.1631, allocations: 77.52 MB / 0.5599 GB, free: 9.027 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.001797/0.165, allocations: 1.23 MB / 0.5611 GB, free: 7.785 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003382/0.1653, allocations: 116.5 kB / 0.5612 GB, free: 7.668 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.026e-05/0.1653, allocations: 4 kB / 0.5612 GB, free: 7.664 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.76e-05/0.1654, allocations: 7.938 kB / 0.5613 GB, free: 7.656 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.735e-05/0.1654, allocations: 0 / 0.5613 GB, free: 7.656 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000178/0.1656, allocations: 19.97 kB / 0.5613 GB, free: 7.637 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 6.076e-05/0.1657, allocations: 31.86 kB / 0.5613 GB, free: 7.605 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.172e-05/0.1658, allocations: 11.98 kB / 0.5613 GB, free: 7.594 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.486e-05/0.1658, allocations: 4 kB / 0.5613 GB, free: 7.59 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.844e-05/0.1659, allocations: 15.92 kB / 0.5613 GB, free: 7.574 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.1659, allocations: 4 kB / 0.5613 GB, free: 7.57 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.035e-05/0.1659, allocations: 12 kB / 0.5614 GB, free: 7.559 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.712e-05/0.166, allocations: 11.97 kB / 0.5614 GB, free: 7.547 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.939e-05/0.166, allocations: 33.64 kB / 0.5614 GB, free: 7.508 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 9.836e-05/0.1661, allocations: 31.89 kB / 0.5614 GB, free: 7.477 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1661, allocations: 0 / 0.5614 GB, free: 7.477 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1661, allocations: 0 / 0.5614 GB, free: 7.477 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1661, allocations: 0 / 0.5614 GB, free: 7.477 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004909/0.1666, allocations: 343.7 kB / 0.5618 GB, free: 7.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.1667, allocations: 12.03 kB / 0.5618 GB, free: 7.078 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.527e-05/0.1667, allocations: 0.9375 kB / 0.5618 GB, free: 7.078 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.1669, allocations: 176.3 kB / 0.5619 GB, free: 6.867 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.1669, allocations: 384 / 0.5619 GB, free: 6.867 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.923e-05/0.1669, allocations: 4.375 kB / 0.5619 GB, free: 6.863 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.1672, allocations: 54.23 kB / 0.562 GB, free: 6.805 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1672, allocations: 8.125 kB / 0.562 GB, free: 6.797 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.1673, allocations: 11.94 kB / 0.562 GB, free: 6.785 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.1673, allocations: 0 / 0.562 GB, free: 6.785 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002313/0.1675, allocations: 51.89 kB / 0.5621 GB, free: 6.734 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003856/0.1679, allocations: 272.8 kB / 0.5623 GB, free: 6.418 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003252/0.1683, allocations: 62.48 kB / 0.5624 GB, free: 6.348 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.1684, allocations: 32.89 kB / 0.5624 GB, free: 6.312 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.1685, allocations: 85.11 kB / 0.5625 GB, free: 6.211 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.1686, allocations: 30.56 kB / 0.5625 GB, free: 6.172 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.293e-06/0.1686, allocations: 0 / 0.5625 GB, free: 6.172 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004081/0.169, allocations: 117.6 kB / 0.5626 GB, free: 6.051 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.169, allocations: 51.41 kB / 0.5627 GB, free: 5.988 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.229e-05/0.1691, allocations: 106 kB / 0.5628 GB, free: 5.875 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.1691, allocations: 25.7 kB / 0.5628 GB, free: 5.844 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.806e-05/0.1692, allocations: 80.14 kB / 0.5629 GB, free: 5.762 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.1692, allocations: 11.84 kB / 0.5629 GB, free: 5.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.466e-05/0.1692, allocations: 13.72 kB / 0.5629 GB, free: 5.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.1693, allocations: 318.8 kB / 0.5632 GB, free: 5.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.922e-05/0.1695, allocations: 23.98 kB / 0.5632 GB, free: 5.387 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.485e-05/0.1696, allocations: 24.17 kB / 0.5633 GB, free: 5.363 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000187/0.1697, allocations: 60.89 kB / 0.5633 GB, free: 5.301 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1698, allocations: 3.938 kB / 0.5633 GB, free: 5.297 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002255/0.17, allocations: 89.58 kB / 0.5634 GB, free: 5.203 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.17, allocations: 9.719 kB / 0.5634 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.17, allocations: 0 / 0.5634 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.17, allocations: 0 / 0.5634 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.387e-05/0.1701, allocations: 15.98 kB / 0.5634 GB, free: 5.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.1701, allocations: 3.984 kB / 0.5634 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.955e-05/0.1702, allocations: 7.906 kB / 0.5634 GB, free: 5.168 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1702, allocations: 8 kB / 0.5634 GB, free: 5.16 MB / 430.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: 2 (rea2Int.y,fac.y) * 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.283e-05/0.1703, allocations: 121.8 kB / 0.5636 GB, free: 5.031 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.1704, allocations: 4 kB / 0.5636 GB, free: 5.027 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002837/0.1706, allocations: 89.08 kB / 0.5637 GB, free: 4.934 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1707, allocations: 4 kB / 0.5637 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.1707, allocations: 4 kB / 0.5637 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.1707, allocations: 0 / 0.5637 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.1708, allocations: 165.6 kB / 0.5638 GB, free: 4.715 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1709, allocations: 7.938 kB / 0.5638 GB, free: 4.707 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.593e-05/0.1709, allocations: 11.98 kB / 0.5638 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1709, allocations: 0 / 0.5638 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.433e-06/0.171, allocations: 0 / 0.5638 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.171, allocations: 0 / 0.5638 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.171, allocations: 7.938 kB / 0.5638 GB, free: 4.688 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.1712, allocations: 179.5 kB / 0.564 GB, free: 4.496 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.721e-05/0.1713, allocations: 88.94 kB / 0.5641 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.257e-05/0.1713, allocations: 0 / 0.5641 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.93e-05/0.1714, allocations: 12 kB / 0.5641 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/0.1715, allocations: 11.98 kB / 0.5641 GB, free: 4.367 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.1715, allocations: 0 / 0.5641 GB, free: 4.367 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.312e-05/0.1715, allocations: 79.28 kB / 0.5642 GB, free: 4.289 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1715, allocations: 0 / 0.5642 GB, free: 4.289 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002221/0.1718, allocations: 11.98 kB / 0.5642 GB, free: 4.277 MB / 430.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: 2 (fac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001539/0.1719, allocations: 99.25 kB / 0.5643 GB, free: 4.168 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002413/0.1722, allocations: 56.23 kB / 0.5644 GB, free: 4.113 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1722, allocations: 0 / 0.5644 GB, free: 4.113 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.1723, allocations: 36 kB / 0.5644 GB, free: 4.078 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.1726, allocations: 11.94 kB / 0.5644 GB, free: 4.066 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002806/0.1728, allocations: 120.8 kB / 0.5645 GB, free: 3.926 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.1731, allocations: 0.677 MB / 0.5652 GB, free: 3.223 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.395e-05/0.1731, allocations: 7.938 kB / 0.5652 GB, free: 3.215 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.571e-05/0.1732, allocations: 11.44 kB / 0.5652 GB, free: 3.203 MB / 430.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1732, allocations: 4 kB / 0.5652 GB, free: 3.199 MB / 430.1 MB Notification: Performance of Templates: time 0.002773/0.176, allocations: 0.6105 MB / 0.5658 GB, free: 2.598 MB / 430.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)