Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.Factorial.conf.json 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/IDEAS 3.0.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7476/0.7476, allocations: 132.2 MB / 148.9 MB, free: 12.14 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 403.4 MB, free: 7.066 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009619/0.000962, allocations: 102 kB / 484.3 MB, free: 8.668 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 60.14 kB / 0.5618 GB, free: 71.03 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1557, allocations: 80.2 MB / 0.6402 GB, free: 6.758 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002864/0.1586, allocations: 1.57 MB / 0.6417 GB, free: 5.168 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004677/0.1591, allocations: 120.5 kB / 0.6418 GB, free: 5.047 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.995e-05/0.1591, allocations: 4 kB / 0.6418 GB, free: 5.043 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 5.323e-05/0.1592, allocations: 3.938 kB / 0.6418 GB, free: 5.039 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 5.434e-05/0.1593, allocations: 0 / 0.6418 GB, free: 5.039 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.1595, allocations: 15.98 kB / 0.6418 GB, free: 5.023 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 9.905e-05/0.1596, allocations: 35.84 kB / 0.6419 GB, free: 4.988 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.1598, allocations: 11.98 kB / 0.6419 GB, free: 4.977 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.629e-05/0.1598, allocations: 8 kB / 0.6419 GB, free: 4.969 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.604e-05/0.1599, allocations: 15.92 kB / 0.6419 GB, free: 4.953 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.1599, allocations: 4 kB / 0.6419 GB, free: 4.949 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.742e-05/0.16, allocations: 11.98 kB / 0.6419 GB, free: 4.938 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 1.709e-05/0.16, allocations: 7.984 kB / 0.6419 GB, free: 4.93 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 3.13e-05/0.1601, allocations: 7.938 kB / 0.6419 GB, free: 4.922 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.1602, allocations: 35.89 kB / 0.642 GB, free: 4.887 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1602, allocations: 0 / 0.642 GB, free: 4.887 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1602, allocations: 4 kB / 0.642 GB, free: 4.883 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1602, allocations: 4 kB / 0.642 GB, free: 4.879 MB / 442.7 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.0006101/0.1609, allocations: 347.7 kB / 0.6423 GB, free: 4.488 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.1609, allocations: 8.031 kB / 0.6423 GB, free: 4.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.982e-05/0.161, allocations: 4.844 kB / 0.6423 GB, free: 4.477 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.1612, allocations: 172.3 kB / 0.6425 GB, free: 4.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.1612, allocations: 384 / 0.6425 GB, free: 4.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.1612, allocations: 384 / 0.6425 GB, free: 4.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002209/0.1615, allocations: 63.23 kB / 0.6426 GB, free: 4.203 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1615, allocations: 192 / 0.6426 GB, free: 4.203 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.1615, allocations: 7.922 kB / 0.6426 GB, free: 4.195 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1615, allocations: 4 kB / 0.6426 GB, free: 4.191 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.1617, allocations: 43.95 kB / 0.6426 GB, free: 4.148 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004129/0.1621, allocations: 264.9 kB / 0.6429 GB, free: 3.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.1625, allocations: 66.47 kB / 0.6429 GB, free: 3.766 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.939e-05/0.1626, allocations: 24.91 kB / 0.6429 GB, free: 3.738 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001296/0.1627, allocations: 81.11 kB / 0.643 GB, free: 3.641 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.1628, allocations: 34.55 kB / 0.6431 GB, free: 3.598 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 1.543e-06/0.1628, allocations: 0 / 0.6431 GB, free: 3.598 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0003895/0.1632, allocations: 93.58 kB / 0.6431 GB, free: 3.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.1632, allocations: 51.41 kB / 0.6432 GB, free: 3.438 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.637e-05/0.1633, allocations: 109.8 kB / 0.6433 GB, free: 3.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.1633, allocations: 25.7 kB / 0.6433 GB, free: 3.289 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.263e-05/0.1634, allocations: 84.14 kB / 0.6434 GB, free: 3.203 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.1634, allocations: 11.78 kB / 0.6434 GB, free: 3.191 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.1634, allocations: 25.7 kB / 0.6434 GB, free: 3.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.85e-05/0.1635, allocations: 314.8 kB / 0.6437 GB, free: 2.844 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.996e-05/0.1636, allocations: 15.98 kB / 0.6438 GB, free: 2.828 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.201e-05/0.1637, allocations: 19.97 kB / 0.6438 GB, free: 2.809 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.1639, allocations: 48.75 kB / 0.6438 GB, free: 2.758 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.1639, allocations: 7.938 kB / 0.6438 GB, free: 2.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002131/0.1641, allocations: 73.66 kB / 0.6439 GB, free: 2.672 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1641, allocations: 4 kB / 0.6439 GB, free: 2.668 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1642, allocations: 0 / 0.6439 GB, free: 2.668 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.1642, allocations: 4 kB / 0.6439 GB, free: 2.664 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.863e-05/0.1643, allocations: 11.98 kB / 0.6439 GB, free: 2.652 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.1643, allocations: 0 / 0.6439 GB, free: 2.652 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.783e-05/0.1643, allocations: 7.984 kB / 0.6439 GB, free: 2.645 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.1644, allocations: 0 / 0.6439 GB, free: 2.645 MB / 442.7 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.762e-05/0.1645, allocations: 123 kB / 0.644 GB, free: 2.516 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.737e-05/0.1645, allocations: 4 kB / 0.644 GB, free: 2.512 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002757/0.1648, allocations: 81.59 kB / 0.6441 GB, free: 2.418 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1648, allocations: 0 / 0.6441 GB, free: 2.418 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1648, allocations: 0 / 0.6441 GB, free: 2.418 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1648, allocations: 4 kB / 0.6441 GB, free: 2.414 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.165, allocations: 165.5 kB / 0.6443 GB, free: 2.203 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.165, allocations: 4.047 kB / 0.6443 GB, free: 2.199 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.1651, allocations: 19.97 kB / 0.6443 GB, free: 2.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1651, allocations: 0 / 0.6443 GB, free: 2.18 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.016e-06/0.1651, allocations: 0 / 0.6443 GB, free: 2.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.1651, allocations: 4 kB / 0.6443 GB, free: 2.176 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1651, allocations: 0 / 0.6443 GB, free: 2.176 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005515/0.1657, allocations: 0.7357 MB / 0.645 GB, free: 1.383 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.1657, allocations: 77.11 kB / 0.6451 GB, free: 1.289 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.1658, allocations: 4 kB / 0.6451 GB, free: 1.285 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-05/0.1658, allocations: 7.984 kB / 0.6451 GB, free: 1.277 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.1659, allocations: 11.94 kB / 0.6451 GB, free: 1.266 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.1659, allocations: 3.984 kB / 0.6451 GB, free: 1.262 MB / 442.7 MB Notification: Performance of sorting global known variables: time 3.382e-05/0.166, allocations: 79.28 kB / 0.6452 GB, free: 1.184 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.344e-06/0.166, allocations: 4 kB / 0.6452 GB, free: 1.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003234/0.1663, allocations: 11.94 kB / 0.6452 GB, free: 1.168 MB / 442.7 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.0001657/0.1665, allocations: 99.25 kB / 0.6453 GB, free: 1.062 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000222/0.1667, allocations: 39.95 kB / 0.6454 GB, free: 1.023 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.1667, allocations: 4 kB / 0.6454 GB, free: 1.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.1668, allocations: 27.97 kB / 0.6454 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.1671, allocations: 7.938 kB / 0.6454 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000359/0.1675, allocations: 234 kB / 0.6456 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.1677, allocations: 0.677 MB / 0.6463 GB, free: 16 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 3.434e-05/0.1678, allocations: 8 kB / 0.6463 GB, free: 8 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.403e-05/0.1678, allocations: 11.44 kB / 0.6463 GB, free: 0 / 442.7 MB Notification: Performance of SimCode: time 3e-07/0.1678, allocations: 0 / 0.6463 GB, free: 0 / 442.7 MB Notification: Performance of Templates: time 0.002688/0.1705, allocations: 0.6233 MB / 0.6469 GB, free: 15.38 MB / 458.7 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)