Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.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.001274/0.001274, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001481/0.001481, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9938/0.9938, allocations: 143.3 MB / 434.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003149/0.0003149, allocations: 8 kB / 0.5158 GB, free: 11.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1683, allocations: 83.41 MB / 0.5973 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial): time 0.001661/0.17, allocations: 1.223 MB / 0.5985 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003395/0.1704, allocations: 120.5 kB / 0.5986 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.104e-05/0.1704, allocations: 0 / 0.5986 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.845e-05/0.1705, allocations: 4 kB / 0.5986 GB, free: 6.566 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.95e-05/0.1705, allocations: 3.938 kB / 0.5986 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.1707, allocations: 15.98 kB / 0.5986 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.445e-05/0.1708, allocations: 15.97 kB / 0.5986 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.374e-05/0.1709, allocations: 12 kB / 0.5986 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.373e-05/0.1709, allocations: 11.92 kB / 0.5986 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.005e-05/0.171, allocations: 19.97 kB / 0.5987 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.171, allocations: 0 / 0.5987 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.604e-05/0.1711, allocations: 4 kB / 0.5987 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.107e-05/0.1711, allocations: 3.938 kB / 0.5987 GB, free: 6.48 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.085e-05/0.1711, allocations: 37.64 kB / 0.5987 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 7.126e-05/0.1712, allocations: 19.95 kB / 0.5987 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1712, allocations: 3.938 kB / 0.5987 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.343e-06/0.1712, allocations: 4 kB / 0.5987 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.1712, allocations: 0 / 0.5987 GB, free: 6.41 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005131/0.1718, allocations: 347.5 kB / 0.5991 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1718, allocations: 8.031 kB / 0.5991 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.787e-05/0.1719, allocations: 4 kB / 0.5991 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.172, allocations: 163 kB / 0.5992 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.172, allocations: 0 / 0.5992 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.172, allocations: 12 kB / 0.5992 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.1722, allocations: 61.66 kB / 0.5993 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1723, allocations: 3.938 kB / 0.5993 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.348e-06/0.1723, allocations: 0 / 0.5993 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1723, allocations: 0 / 0.5993 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002017/0.1725, allocations: 55.95 kB / 0.5994 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.1728, allocations: 264.9 kB / 0.5996 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.1732, allocations: 66.48 kB / 0.5997 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.1733, allocations: 85.25 kB / 0.5998 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001086/0.1734, allocations: 30.56 kB / 0.5998 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.1734, allocations: 0 / 0.5998 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003961/0.1738, allocations: 113.5 kB / 0.5999 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.1739, allocations: 55.39 kB / 0.5999 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.1741, allocations: 102.1 kB / 0.6 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.1741, allocations: 29.7 kB / 0.6001 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.727e-05/0.1741, allocations: 80.14 kB / 0.6001 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.1742, allocations: 7.844 kB / 0.6002 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-06/0.1742, allocations: 8 kB / 0.6002 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001853/0.1744, allocations: 318.8 kB / 0.6005 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.54e-05/0.1745, allocations: 23.92 kB / 0.6005 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.578e-05/0.1746, allocations: 23.97 kB / 0.6005 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.496e-05/0.1747, allocations: 32.11 kB / 0.6005 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1747, allocations: 0 / 0.6005 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002302/0.1749, allocations: 81.66 kB / 0.6006 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/0.175, allocations: 15.94 kB / 0.6006 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.175, allocations: 0 / 0.6006 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.175, allocations: 3.984 kB / 0.6006 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.249e-05/0.1751, allocations: 8 kB / 0.6006 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.1751, allocations: 0 / 0.6006 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.454e-05/0.1752, allocations: 15.94 kB / 0.6007 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.1752, allocations: 4 kB / 0.6007 GB, free: 4.195 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.013e-05/0.1753, allocations: 121.8 kB / 0.6008 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.1753, allocations: 7.844 kB / 0.6008 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002975/0.1756, allocations: 89.14 kB / 0.6009 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.1756, allocations: 3.984 kB / 0.6009 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1756, allocations: 0 / 0.6009 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1756, allocations: 4 kB / 0.6009 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.1758, allocations: 161.6 kB / 0.601 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1758, allocations: 0 / 0.601 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.905e-05/0.1759, allocations: 15.98 kB / 0.6011 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.1759, allocations: 4 kB / 0.6011 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.185e-06/0.1759, allocations: 3.984 kB / 0.6011 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1759, allocations: 0 / 0.6011 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1759, allocations: 0 / 0.6011 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/0.1762, allocations: 183.4 kB / 0.6012 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.1763, allocations: 77.11 kB / 0.6013 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.1763, allocations: 4 kB / 0.6013 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.088e-05/0.1764, allocations: 11.98 kB / 0.6013 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.005e-05/0.1764, allocations: 11.98 kB / 0.6013 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.1765, allocations: 0 / 0.6013 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.836e-05/0.1765, allocations: 79.28 kB / 0.6014 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.6e-07/0.1765, allocations: 0 / 0.6014 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000238/0.1768, allocations: 11.91 kB / 0.6014 GB, free: 3.316 MB / 0.4981 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001641/0.1769, allocations: 103.2 kB / 0.6015 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002388/0.1772, allocations: 59.89 kB / 0.6016 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1772, allocations: 4 kB / 0.6016 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.1773, allocations: 24.36 kB / 0.6016 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/0.1775, allocations: 23.81 kB / 0.6016 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000326/0.1778, allocations: 112.7 kB / 0.6017 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.1782, allocations: 0.6809 MB / 0.6024 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.384e-05/0.1782, allocations: 7.984 kB / 0.6024 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.976e-05/0.1783, allocations: 7.438 kB / 0.6024 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/0.1783, allocations: 4 kB / 0.6024 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of Templates: time 0.002799/0.1811, allocations: 0.5896 MB / 0.603 GB, free: 1.641 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.makefile Environment - environmentSimulation: (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: