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.00159/0.00159, allocations: 106 kB / 16.4 MB, free: 6.465 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.001855/0.001856, allocations: 193.2 kB / 17.34 MB, free: 5.715 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7782/0.7782, allocations: 122.9 MB / 414.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 60.67 kB / 0.5685 GB, free: 28.56 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1606, allocations: 77.95 MB / 0.6446 GB, free: 8.984 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.003128/0.1638, allocations: 1.5 MB / 0.646 GB, free: 7.477 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004269/0.1643, allocations: 124.5 kB / 0.6462 GB, free: 7.352 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.766e-05/0.1643, allocations: 0 / 0.6462 GB, free: 7.352 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.987e-05/0.1644, allocations: 0 / 0.6462 GB, free: 7.352 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.092e-05/0.1645, allocations: 7.875 kB / 0.6462 GB, free: 7.344 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.1648, allocations: 23.91 kB / 0.6462 GB, free: 7.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.623e-05/0.1649, allocations: 27.97 kB / 0.6462 GB, free: 7.293 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.165, allocations: 15.94 kB / 0.6462 GB, free: 7.277 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.149e-05/0.1651, allocations: 15.98 kB / 0.6463 GB, free: 7.262 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.785e-05/0.1651, allocations: 15.92 kB / 0.6463 GB, free: 7.246 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.1651, allocations: 4 kB / 0.6463 GB, free: 7.242 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.195e-05/0.1652, allocations: 8 kB / 0.6463 GB, free: 7.234 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.037e-05/0.1652, allocations: 8 kB / 0.6463 GB, free: 7.227 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.261e-05/0.1653, allocations: 19.84 kB / 0.6463 GB, free: 7.207 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.1654, allocations: 31.91 kB / 0.6463 GB, free: 7.176 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1654, allocations: 3.938 kB / 0.6463 GB, free: 7.172 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1654, allocations: 0 / 0.6463 GB, free: 7.172 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.587e-06/0.1655, allocations: 0 / 0.6463 GB, free: 7.172 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000517/0.166, allocations: 347.4 kB / 0.6467 GB, free: 6.781 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.166, allocations: 8.625 kB / 0.6467 GB, free: 6.773 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.1661, allocations: 4.938 kB / 0.6467 GB, free: 6.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.1662, allocations: 168.3 kB / 0.6468 GB, free: 6.566 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.1662, allocations: 4.312 kB / 0.6468 GB, free: 6.562 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.1663, allocations: 4.375 kB / 0.6469 GB, free: 6.559 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.1665, allocations: 62.16 kB / 0.6469 GB, free: 6.492 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1665, allocations: 192 / 0.6469 GB, free: 6.492 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.1665, allocations: 11.94 kB / 0.6469 GB, free: 6.48 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1665, allocations: 0 / 0.6469 GB, free: 6.48 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002379/0.1668, allocations: 39.95 kB / 0.647 GB, free: 6.441 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004174/0.1672, allocations: 261 kB / 0.6472 GB, free: 6.137 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003547/0.1676, allocations: 66.41 kB / 0.6473 GB, free: 6.062 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.1677, allocations: 24.91 kB / 0.6473 GB, free: 6.035 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.1678, allocations: 85.09 kB / 0.6474 GB, free: 5.934 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.1679, allocations: 30.56 kB / 0.6474 GB, free: 5.895 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.1679, allocations: 0 / 0.6474 GB, free: 5.895 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004074/0.1683, allocations: 93.77 kB / 0.6475 GB, free: 5.797 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/0.1683, allocations: 59.41 kB / 0.6476 GB, free: 5.727 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.287e-05/0.1684, allocations: 101.8 kB / 0.6477 GB, free: 5.617 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.1684, allocations: 25.7 kB / 0.6477 GB, free: 5.586 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.394e-05/0.1685, allocations: 88.12 kB / 0.6478 GB, free: 5.496 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.1685, allocations: 7.953 kB / 0.6478 GB, free: 5.488 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-05/0.1686, allocations: 21.66 kB / 0.6478 GB, free: 5.461 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1687, allocations: 310.8 kB / 0.6481 GB, free: 5.148 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.48e-05/0.1688, allocations: 23.97 kB / 0.6481 GB, free: 5.125 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.31e-05/0.1689, allocations: 15.98 kB / 0.6481 GB, free: 5.109 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.1691, allocations: 48.81 kB / 0.6482 GB, free: 5.059 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1691, allocations: 3.938 kB / 0.6482 GB, free: 5.055 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002262/0.1693, allocations: 73.59 kB / 0.6482 GB, free: 4.977 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.1693, allocations: 12 kB / 0.6483 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1693, allocations: 0 / 0.6483 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1694, allocations: 0 / 0.6483 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.726e-05/0.1695, allocations: 15.92 kB / 0.6483 GB, free: 4.949 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.1695, allocations: 0 / 0.6483 GB, free: 4.949 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.947e-05/0.1695, allocations: 11.98 kB / 0.6483 GB, free: 4.938 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.1695, allocations: 0 / 0.6483 GB, free: 4.938 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: 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.975e-05/0.1696, allocations: 117.8 kB / 0.6484 GB, free: 4.812 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.1697, allocations: 3.953 kB / 0.6484 GB, free: 4.809 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002927/0.17, allocations: 81.14 kB / 0.6485 GB, free: 4.719 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.17, allocations: 0 / 0.6485 GB, free: 4.719 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.17, allocations: 7.984 kB / 0.6485 GB, free: 4.711 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.17, allocations: 0 / 0.6485 GB, free: 4.711 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002265/0.1703, allocations: 161.5 kB / 0.6486 GB, free: 4.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.1703, allocations: 0 / 0.6486 GB, free: 4.504 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.292e-05/0.1704, allocations: 15.98 kB / 0.6487 GB, free: 4.488 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.1704, allocations: 3.938 kB / 0.6487 GB, free: 4.484 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.1704, allocations: 11.94 kB / 0.6487 GB, free: 4.473 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1704, allocations: 3.984 kB / 0.6487 GB, free: 4.469 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1704, allocations: 0 / 0.6487 GB, free: 4.469 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003306/0.1707, allocations: 167.5 kB / 0.6488 GB, free: 4.289 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.185e-05/0.1708, allocations: 77.11 kB / 0.6489 GB, free: 4.195 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.1708, allocations: 0 / 0.6489 GB, free: 4.195 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.054e-05/0.1709, allocations: 11.98 kB / 0.6489 GB, free: 4.184 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.703e-05/0.171, allocations: 11.98 kB / 0.6489 GB, free: 4.172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.171, allocations: 0 / 0.6489 GB, free: 4.172 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.487e-05/0.171, allocations: 79.7 kB / 0.649 GB, free: 4.094 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1711, allocations: 0 / 0.649 GB, free: 4.094 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002696/0.1713, allocations: 11.95 kB / 0.649 GB, free: 4.082 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: 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.0001969/0.1715, allocations: 107.4 kB / 0.6491 GB, free: 3.965 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002603/0.1718, allocations: 51.89 kB / 0.6492 GB, free: 3.914 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1718, allocations: 0 / 0.6492 GB, free: 3.914 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.1719, allocations: 23.92 kB / 0.6492 GB, free: 3.891 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.1723, allocations: 7.938 kB / 0.6492 GB, free: 3.883 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003592/0.1726, allocations: 121.5 kB / 0.6493 GB, free: 3.738 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004909/0.1731, allocations: 0.6806 MB / 0.65 GB, free: 3.031 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.634e-05/0.1732, allocations: 8 kB / 0.65 GB, free: 3.023 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.1732, allocations: 7.438 kB / 0.65 GB, free: 3.016 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1732, allocations: 0 / 0.65 GB, free: 3.016 MB / 494.1 MB Notification: Performance of Templates: time 0.004284/0.1775, allocations: 0.7109 MB / 0.6507 GB, free: 2.309 MB / 494.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)