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/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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001093, allocations: 108.6 kB / 16.41 MB, free: 6.496 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.001046/0.001046, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.303/1.303, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7591/0.7591, allocations: 132.2 MB / 423.4 MB, free: 6.633 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 64.2 kB / 0.582 GB, free: 23.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.151, allocations: 80.2 MB / 0.6603 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002745/0.1538, allocations: 1.513 MB / 0.6618 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0004154/0.1542, allocations: 124.5 kB / 0.6619 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.156e-05/0.1543, allocations: 3.938 kB / 0.6619 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.68e-05/0.1543, allocations: 0 / 0.6619 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.909e-05/0.1544, allocations: 7.922 kB / 0.6619 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.1547, allocations: 19.97 kB / 0.662 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.938e-05/0.1548, allocations: 35.92 kB / 0.662 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.1549, allocations: 8 kB / 0.662 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.137e-05/0.1549, allocations: 11.98 kB / 0.662 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.048e-05/0.155, allocations: 19.91 kB / 0.662 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.155, allocations: 4 kB / 0.662 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.043e-05/0.1551, allocations: 8 kB / 0.662 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.989e-05/0.1551, allocations: 11.92 kB / 0.6621 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.823e-05/0.1552, allocations: 7.938 kB / 0.6621 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.1553, allocations: 51.75 kB / 0.6621 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.1553, allocations: 4 kB / 0.6621 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.983e-06/0.1553, allocations: 0 / 0.6621 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.1554, allocations: 0 / 0.6621 GB, free: 8.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.000505/0.1559, allocations: 347.4 kB / 0.6624 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.1559, allocations: 8.031 kB / 0.6625 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.977e-05/0.156, allocations: 4.938 kB / 0.6625 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.1561, allocations: 160.4 kB / 0.6626 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.1561, allocations: 384 / 0.6626 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.421e-05/0.1561, allocations: 8.359 kB / 0.6626 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.1563, allocations: 58.23 kB / 0.6627 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.1564, allocations: 192 / 0.6627 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.1564, allocations: 7.938 kB / 0.6627 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1564, allocations: 0 / 0.6627 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.1566, allocations: 39.89 kB / 0.6627 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003881/0.157, allocations: 272.9 kB / 0.663 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.1573, allocations: 50.48 kB / 0.663 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.692e-05/0.1574, allocations: 28.89 kB / 0.6631 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001471/0.1576, allocations: 81.11 kB / 0.6631 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.1576, allocations: 34.56 kB / 0.6632 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1576, allocations: 7.938 kB / 0.6632 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004001/0.158, allocations: 89.62 kB / 0.6633 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.1581, allocations: 55.41 kB / 0.6633 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.583e-05/0.1582, allocations: 101.8 kB / 0.6634 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.1582, allocations: 25.7 kB / 0.6634 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.1583, allocations: 80.14 kB / 0.6635 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.1583, allocations: 15.84 kB / 0.6635 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.754e-05/0.1583, allocations: 17.72 kB / 0.6635 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1585, allocations: 318.8 kB / 0.6638 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.105e-05/0.1585, allocations: 11.98 kB / 0.6639 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.352e-05/0.1586, allocations: 27.91 kB / 0.6639 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001725/0.1588, allocations: 49.23 kB / 0.6639 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1588, allocations: 7.938 kB / 0.6639 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002173/0.1591, allocations: 77.62 kB / 0.664 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.1591, allocations: 8 kB / 0.664 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1591, allocations: 0 / 0.664 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1591, allocations: 0 / 0.664 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.768e-05/0.1592, allocations: 11.98 kB / 0.664 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1592, allocations: 4 kB / 0.664 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.894e-05/0.1593, allocations: 7.906 kB / 0.664 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-06/0.1593, allocations: 4 kB / 0.664 GB, free: 6.184 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 (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 7.553e-05/0.1594, allocations: 117.8 kB / 0.6642 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.549e-05/0.1594, allocations: 3.938 kB / 0.6642 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000271/0.1597, allocations: 85.08 kB / 0.6642 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1597, allocations: 0 / 0.6642 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1597, allocations: 4 kB / 0.6642 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1597, allocations: 0 / 0.6642 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.1599, allocations: 165.6 kB / 0.6644 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1599, allocations: 0 / 0.6644 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.707e-05/0.16, allocations: 11.98 kB / 0.6644 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.16, allocations: 0 / 0.6644 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.16, allocations: 4 kB / 0.6644 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.16, allocations: 0 / 0.6644 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.16, allocations: 0 / 0.6644 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.1603, allocations: 179.4 kB / 0.6646 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.243e-05/0.1603, allocations: 85 kB / 0.6647 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.1603, allocations: 0 / 0.6647 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.232e-05/0.1604, allocations: 4 kB / 0.6647 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.1605, allocations: 7.984 kB / 0.6647 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.1605, allocations: 4 kB / 0.6647 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.564e-05/0.1605, allocations: 79.28 kB / 0.6648 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1605, allocations: 0 / 0.6648 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002451/0.1608, allocations: 11.98 kB / 0.6648 GB, free: 5.332 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 (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.0001536/0.161, allocations: 107.2 kB / 0.6649 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002492/0.1612, allocations: 47.95 kB / 0.6649 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1612, allocations: 3.938 kB / 0.6649 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.683e-05/0.1613, allocations: 23.97 kB / 0.665 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.1616, allocations: 12.39 kB / 0.665 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003243/0.162, allocations: 139.7 kB / 0.6651 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.1622, allocations: 0.6807 MB / 0.6658 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.05e-05/0.1622, allocations: 7.438 kB / 0.6658 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of SimCode: time 3.01e-07/0.1623, allocations: 0 / 0.6658 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of Templates: time 0.002247/0.1645, allocations: 0.7404 MB / 0.6665 GB, free: 3.512 MB / 0.4981 GB 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)