Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.0008262/0.0008263, allocations: 98.92 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.000871/0.000871, allocations: 177.3 kB / 15.95 MB, free: 216 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.194/1.194, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8559/0.8559, allocations: 135.2 MB / 426.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.0002929, allocations: 8 kB / 0.5068 GB, free: 5.25 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1581, allocations: 82.32 MB / 0.5872 GB, free: 3.109 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0007179/0.1589, allocations: 295.1 kB / 0.5875 GB, free: 2.816 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002226/0.1591, allocations: 47.89 kB / 0.5875 GB, free: 2.77 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.66e-05/0.1591, allocations: 4 kB / 0.5875 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.093e-05/0.1591, allocations: 0 / 0.5875 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.1592, allocations: 0 / 0.5875 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.1593, allocations: 7.938 kB / 0.5876 GB, free: 2.758 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.762e-05/0.1594, allocations: 7.984 kB / 0.5876 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.34e-05/0.1595, allocations: 0 / 0.5876 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.638e-05/0.1595, allocations: 3.938 kB / 0.5876 GB, free: 2.746 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.862e-05/0.1595, allocations: 4 kB / 0.5876 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.1595, allocations: 0 / 0.5876 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.555e-05/0.1596, allocations: 4 kB / 0.5876 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.448e-06/0.1596, allocations: 11.98 kB / 0.5876 GB, free: 2.727 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.414e-05/0.1597, allocations: 25.7 kB / 0.5876 GB, free: 2.695 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 5.716e-05/0.1597, allocations: 7.984 kB / 0.5876 GB, free: 2.688 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.1597, allocations: 0 / 0.5876 GB, free: 2.688 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1597, allocations: 0 / 0.5876 GB, free: 2.688 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.1597, allocations: 0 / 0.5876 GB, free: 2.688 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002828/0.16, allocations: 311.4 kB / 0.5879 GB, free: 2.336 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.1601, allocations: 8.031 kB / 0.5879 GB, free: 2.328 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.834e-05/0.1601, allocations: 3.984 kB / 0.5879 GB, free: 2.324 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.1602, allocations: 163 kB / 0.5881 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.1602, allocations: 7.938 kB / 0.5881 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-06/0.1602, allocations: 0 / 0.5881 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.1604, allocations: 33.7 kB / 0.5881 GB, free: 2.078 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.1604, allocations: 0 / 0.5881 GB, free: 2.078 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.1604, allocations: 3.938 kB / 0.5881 GB, free: 2.074 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.1604, allocations: 4 kB / 0.5881 GB, free: 2.07 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.133e-05/0.1604, allocations: 3.984 kB / 0.5881 GB, free: 2.066 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001556/0.1606, allocations: 153.6 kB / 0.5883 GB, free: 1.867 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.191e-05/0.1606, allocations: 26.55 kB / 0.5883 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001709/0.1608, allocations: 85.16 kB / 0.5884 GB, free: 1.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.1609, allocations: 30.56 kB / 0.5884 GB, free: 1.691 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1609, allocations: 0 / 0.5884 GB, free: 1.691 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001354/0.161, allocations: 41.69 kB / 0.5885 GB, free: 1.645 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.161, allocations: 51.41 kB / 0.5885 GB, free: 1.582 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.694e-05/0.1611, allocations: 97.89 kB / 0.5886 GB, free: 1.477 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.1611, allocations: 29.7 kB / 0.5886 GB, free: 1.441 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.609e-05/0.1611, allocations: 84.08 kB / 0.5887 GB, free: 1.355 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.1612, allocations: 4 kB / 0.5887 GB, free: 1.352 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-06/0.1612, allocations: 0 / 0.5887 GB, free: 1.352 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1613, allocations: 310.8 kB / 0.589 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.1613, allocations: 7.938 kB / 0.589 GB, free: 1.031 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.551e-06/0.1613, allocations: 0 / 0.589 GB, free: 1.031 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.048e-05/0.1613, allocations: 4 kB / 0.589 GB, free: 1.027 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1614, allocations: 4.062 kB / 0.589 GB, free: 1.023 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.602e-05/0.1614, allocations: 45.64 kB / 0.5891 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.1614, allocations: 4 kB / 0.5891 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.1614, allocations: 0 / 0.5891 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1615, allocations: 0 / 0.5891 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.821e-05/0.1615, allocations: 4 kB / 0.5891 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1615, allocations: 0 / 0.5891 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.443e-05/0.1615, allocations: 4 kB / 0.5891 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-06/0.1615, allocations: 3.984 kB / 0.5891 GB, free: 0.957 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.495e-05/0.1616, allocations: 113.9 kB / 0.5892 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-06/0.1616, allocations: 3.953 kB / 0.5892 GB, free: 0.832 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.783e-05/0.1617, allocations: 49.03 kB / 0.5892 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.1617, allocations: 0 / 0.5892 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1617, allocations: 0 / 0.5892 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1617, allocations: 0 / 0.5892 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.638e-05/0.1618, allocations: 153.6 kB / 0.5894 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.1618, allocations: 0 / 0.5894 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.078e-05/0.1619, allocations: 7.984 kB / 0.5894 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1619, allocations: 7.984 kB / 0.5894 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-06/0.1619, allocations: 0 / 0.5894 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1619, allocations: 0 / 0.5894 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1619, allocations: 0 / 0.5894 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.261e-05/0.162, allocations: 65.06 kB / 0.5895 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.782e-05/0.162, allocations: 88.94 kB / 0.5895 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.162, allocations: 7.953 kB / 0.5896 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.901e-05/0.162, allocations: 4 kB / 0.5896 GB, free: 372 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.212e-05/0.1621, allocations: 4.031 kB / 0.5896 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.1621, allocations: 0 / 0.5896 GB, free: 368 kB / 494.1 MB Notification: Performance of sorting global known variables: time 2.578e-05/0.1621, allocations: 75.28 kB / 0.5896 GB, free: 292 kB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1621, allocations: 3.938 kB / 0.5896 GB, free: 288 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001912/0.1623, allocations: 4 kB / 0.5896 GB, free: 284 kB / 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,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 (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.0001277/0.1624, allocations: 111.2 kB / 0.5897 GB, free: 160 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.53e-05/0.1625, allocations: 4 kB / 0.5898 GB, free: 156 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1625, allocations: 4.062 kB / 0.5898 GB, free: 152 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.394e-05/0.1625, allocations: 7.938 kB / 0.5898 GB, free: 144 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.597e-05/0.1626, allocations: 2.812 kB / 0.5898 GB, free: 144 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001473/0.1628, allocations: 82.75 kB / 0.5898 GB, free: 36 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.163, allocations: 0.677 MB / 0.5905 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.119e-05/0.163, allocations: 0 / 0.5905 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.158e-05/0.163, allocations: 11.44 kB / 0.5905 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.163, allocations: 0 / 0.5905 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of Templates: time 0.001944/0.165, allocations: 302.3 kB / 0.5908 GB, free: 15.03 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile Environment - environmentSimulation: (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: