Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005329/0.005329, allocations: 100.4 kB / 15.73 MB, free: 6.062 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.001165/0.001165, allocations: 198.1 kB / 16.68 MB, free: 5.973 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.203 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8094/0.8094, allocations: 132.2 MB / 422.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 63.91 kB / 0.5814 GB, free: 7.496 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.529/0.5302, allocations: 80.2 MB / 0.6597 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001866/0.5321, allocations: 0.5721 MB / 0.6603 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002983/0.5324, allocations: 62.83 kB / 0.6603 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.873e-05/0.5325, allocations: 0 / 0.6603 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.886e-05/0.5325, allocations: 0 / 0.6603 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.035e-06/0.5325, allocations: 0 / 0.6603 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.5328, allocations: 11.19 kB / 0.6603 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.331e-05/0.5328, allocations: 2.266 kB / 0.6603 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 6.038e-05/0.5329, allocations: 2.703 kB / 0.6603 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.091e-05/0.5329, allocations: 5.156 kB / 0.6604 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.179e-05/0.5329, allocations: 5.625 kB / 0.6604 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.533, allocations: 0 / 0.6604 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.378e-05/0.5331, allocations: 7.672 kB / 0.6604 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.47e-05/0.5331, allocations: 7.984 kB / 0.6604 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.258e-05/0.5331, allocations: 1.344 kB / 0.6604 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.651e-05/0.5332, allocations: 9.188 kB / 0.6604 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.5332, allocations: 5.344 kB / 0.6604 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.194e-06/0.5332, allocations: 0.6562 kB / 0.6604 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.5332, allocations: 0 / 0.6604 GB, free: 9.879 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002988/0.5335, allocations: 318.1 kB / 0.6607 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/0.5336, allocations: 13.81 kB / 0.6607 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.647e-05/0.5337, allocations: 3 kB / 0.6607 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.03e-05/0.5337, allocations: 161.1 kB / 0.6609 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.5337, allocations: 384 / 0.6609 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.997e-06/0.5338, allocations: 2.406 kB / 0.6609 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.5339, allocations: 34.3 kB / 0.6609 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.5339, allocations: 192 / 0.6609 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.5339, allocations: 5.281 kB / 0.6609 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.5339, allocations: 0 / 0.6609 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.154e-05/0.534, allocations: 13.08 kB / 0.6609 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001297/0.5341, allocations: 149.1 kB / 0.6611 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.222e-05/0.5342, allocations: 24.08 kB / 0.6611 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.678e-05/0.5342, allocations: 8.188 kB / 0.6611 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.5343, allocations: 80.97 kB / 0.6612 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.5344, allocations: 32.36 kB / 0.6612 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.5344, allocations: 4 kB / 0.6612 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001496/0.5345, allocations: 49.16 kB / 0.6612 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.5346, allocations: 52.98 kB / 0.6613 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.992e-05/0.5346, allocations: 90.47 kB / 0.6614 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.338e-06/0.5346, allocations: 25.7 kB / 0.6614 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.249e-05/0.5346, allocations: 81.2 kB / 0.6615 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.5347, allocations: 9.25 kB / 0.6615 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.496e-05/0.5347, allocations: 16.72 kB / 0.6615 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.996e-05/0.5347, allocations: 317.2 kB / 0.6618 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.409e-05/0.5348, allocations: 1.984 kB / 0.6618 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.688e-06/0.5348, allocations: 3.062 kB / 0.6618 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.069e-05/0.5348, allocations: 17.77 kB / 0.6618 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.5348, allocations: 1.594 kB / 0.6618 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.334e-05/0.5349, allocations: 38.64 kB / 0.6619 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.5349, allocations: 5.625 kB / 0.6619 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.944e-06/0.5349, allocations: 0.5625 kB / 0.6619 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/0.5349, allocations: 13.52 kB / 0.6619 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.861e-05/0.535, allocations: 3.047 kB / 0.6619 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.535, allocations: 0.5156 kB / 0.6619 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.536e-05/0.535, allocations: 5.469 kB / 0.6619 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.708e-06/0.535, allocations: 0.6094 kB / 0.6619 GB, free: 8.191 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.707e-05/0.5351, allocations: 107.9 kB / 0.662 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-06/0.5351, allocations: 1.469 kB / 0.662 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.313e-05/0.5352, allocations: 46.36 kB / 0.6621 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.5352, allocations: 5.656 kB / 0.6621 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.5352, allocations: 4.641 kB / 0.6621 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.5352, allocations: 0 / 0.6621 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.799e-05/0.5353, allocations: 154.1 kB / 0.6622 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.5353, allocations: 0 / 0.6622 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.309e-05/0.5353, allocations: 5.016 kB / 0.6622 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.5353, allocations: 0 / 0.6622 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.5353, allocations: 5.156 kB / 0.6622 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5353, allocations: 0.5156 kB / 0.6622 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.5353, allocations: 0 / 0.6622 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.959e-05/0.5354, allocations: 65.91 kB / 0.6623 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.162e-05/0.5354, allocations: 83.33 kB / 0.6624 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.5355, allocations: 3.938 kB / 0.6624 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.062e-05/0.5355, allocations: 0 / 0.6624 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.606e-05/0.5355, allocations: 2.828 kB / 0.6624 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.5355, allocations: 1.312 kB / 0.6624 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.4e-05/0.5355, allocations: 76.08 kB / 0.6624 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.72e-07/0.5355, allocations: 0 / 0.6624 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002132/0.5358, allocations: 12.22 kB / 0.6625 GB, free: 7.574 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001682/0.5359, allocations: 104.5 kB / 0.6626 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 8.642e-05/0.536, allocations: 16.17 kB / 0.6626 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.536, allocations: 0 / 0.6626 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.579e-05/0.5361, allocations: 5.375 kB / 0.6626 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001341/0.5362, allocations: 5.312 kB / 0.6626 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002007/0.5364, allocations: 95.58 kB / 0.6627 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.5365, allocations: 0.6716 MB / 0.6633 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.54e-05/0.5365, allocations: 5.281 kB / 0.6633 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.498e-05/0.5366, allocations: 13.41 kB / 0.6633 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.5366, allocations: 1.375 kB / 0.6633 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of Templates: time 0.002524/0.5391, allocations: 317.7 kB / 0.6636 GB, free: 6.594 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)