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.000953/0.0009529, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 186.9 kB / 16.92 MB, free: 6.684 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.302/1.302, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8942/0.8942, allocations: 135.3 MB / 427.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003284, allocations: 12 kB / 0.5083 GB, free: 4.758 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.151, allocations: 82.3 MB / 0.5886 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0006566/0.1517, allocations: 311 kB / 0.5889 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000256/0.152, allocations: 47.86 kB / 0.589 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.247e-06/0.152, allocations: 0 / 0.589 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.08e-05/0.152, allocations: 0 / 0.589 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.229e-06/0.152, allocations: 4 kB / 0.589 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001658/0.1522, allocations: 8 kB / 0.589 GB, free: 2.262 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.6e-05/0.1522, allocations: 4 kB / 0.589 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.111e-05/0.1523, allocations: 3.984 kB / 0.589 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.297e-05/0.1523, allocations: 0 / 0.589 GB, free: 2.254 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.942e-05/0.1523, allocations: 7.984 kB / 0.589 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.686e-06/0.1524, allocations: 7.875 kB / 0.589 GB, free: 2.238 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.998e-05/0.1524, allocations: 8 kB / 0.589 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.805e-06/0.1524, allocations: 0 / 0.589 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.733e-05/0.1525, allocations: 25.7 kB / 0.589 GB, free: 2.199 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 5.974e-05/0.1525, allocations: 7.984 kB / 0.589 GB, free: 2.191 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1525, allocations: 8 kB / 0.589 GB, free: 2.184 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1526, allocations: 0 / 0.589 GB, free: 2.184 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.1526, allocations: 0 / 0.589 GB, free: 2.184 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.0002694/0.1528, allocations: 311.6 kB / 0.5893 GB, free: 1.828 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1529, allocations: 11.97 kB / 0.5894 GB, free: 1.816 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.1529, allocations: 0.9375 kB / 0.5894 GB, free: 1.816 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.791e-05/0.153, allocations: 164.4 kB / 0.5895 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.153, allocations: 4.375 kB / 0.5895 GB, free: 1.613 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.153, allocations: 4.359 kB / 0.5895 GB, free: 1.609 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.825e-05/0.1531, allocations: 34.27 kB / 0.5896 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.1531, allocations: 192 / 0.5896 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.1532, allocations: 7.938 kB / 0.5896 GB, free: 1.562 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.1532, allocations: 0 / 0.5896 GB, free: 1.562 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.109e-05/0.1532, allocations: 11.92 kB / 0.5896 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001315/0.1533, allocations: 141.7 kB / 0.5897 GB, free: 1.363 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.728e-05/0.1534, allocations: 22.61 kB / 0.5897 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.463e-05/0.1534, allocations: 20.91 kB / 0.5897 GB, free: 1.309 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.1536, allocations: 85.05 kB / 0.5898 GB, free: 1.207 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.1536, allocations: 30.56 kB / 0.5899 GB, free: 1.168 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1536, allocations: 0 / 0.5899 GB, free: 1.168 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001275/0.1538, allocations: 49.56 kB / 0.5899 GB, free: 1.113 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.1538, allocations: 51.41 kB / 0.59 GB, free: 1.051 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.324e-05/0.1538, allocations: 89.86 kB / 0.59 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.1539, allocations: 29.7 kB / 0.5901 GB, free: 0.918 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.136e-05/0.1539, allocations: 84.27 kB / 0.5901 GB, free: 0.832 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.731e-05/0.1539, allocations: 7.906 kB / 0.5902 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.143e-05/0.1539, allocations: 9.719 kB / 0.5902 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.178e-05/0.154, allocations: 310.8 kB / 0.5905 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.081e-05/0.154, allocations: 4 kB / 0.5905 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.404e-06/0.1541, allocations: 3.984 kB / 0.5905 GB, free: 500 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.101e-05/0.1541, allocations: 16.86 kB / 0.5905 GB, free: 480 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1541, allocations: 64 / 0.5905 GB, free: 480 kB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.278e-05/0.1542, allocations: 41.64 kB / 0.5905 GB, free: 432 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.1542, allocations: 7.125 kB / 0.5905 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1542, allocations: 0 / 0.5905 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.1542, allocations: 3.938 kB / 0.5905 GB, free: 424 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.138e-05/0.1543, allocations: 7.984 kB / 0.5905 GB, free: 416 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.1543, allocations: 0 / 0.5905 GB, free: 416 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.537e-05/0.1543, allocations: 4 kB / 0.5905 GB, free: 412 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-06/0.1543, allocations: 0 / 0.5905 GB, free: 412 kB / 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 (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 6.316e-05/0.1544, allocations: 113.9 kB / 0.5907 GB, free: 288 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.051e-06/0.1544, allocations: 0 / 0.5907 GB, free: 288 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.85e-05/0.1545, allocations: 52.97 kB / 0.5907 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.1545, allocations: 0 / 0.5907 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1545, allocations: 0 / 0.5907 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1545, allocations: 0 / 0.5907 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.093e-05/0.1546, allocations: 161.5 kB / 0.5909 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1546, allocations: 0 / 0.5909 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.977e-05/0.1546, allocations: 0 / 0.5909 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1546, allocations: 4 kB / 0.5909 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.1546, allocations: 7.969 kB / 0.5909 GB, free: 4 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1547, allocations: 0 / 0.5909 GB, free: 4 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.465e-05/0.1547, allocations: 4 kB / 0.5909 GB, free: 0 / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.645e-05/0.1548, allocations: 61.25 kB / 0.5909 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.771e-05/0.1548, allocations: 81.05 kB / 0.591 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.1548, allocations: 11.94 kB / 0.591 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.224e-05/0.1548, allocations: 0 / 0.591 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.506e-05/0.1549, allocations: 3.938 kB / 0.591 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-06/0.1549, allocations: 4.031 kB / 0.591 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.193e-05/0.1549, allocations: 79.27 kB / 0.5911 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1549, allocations: 0 / 0.5911 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001857/0.1551, allocations: 4 kB / 0.5911 GB, free: 15.72 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.0001356/0.1552, allocations: 103.2 kB / 0.5912 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 5.8e-05/0.1553, allocations: 4 kB / 0.5912 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1553, allocations: 0 / 0.5912 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.158e-05/0.1553, allocations: 12.06 kB / 0.5912 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.1555, allocations: 7.984 kB / 0.5912 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001762/0.1556, allocations: 108.4 kB / 0.5913 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/0.1559, allocations: 0.677 MB / 0.592 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.444e-05/0.1559, allocations: 11.42 kB / 0.592 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of SimCode: time 5.01e-07/0.1559, allocations: 0 / 0.592 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of Templates: time 0.00151/0.1574, allocations: 453.5 kB / 0.5924 GB, free: 14.29 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (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)