Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001091/0.001091, allocations: 100.1 kB / 15.88 MB, free: 12 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.001113/0.001113, allocations: 196.6 kB / 16.79 MB, free: 6.809 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.324/1.324, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9653/0.9653, allocations: 135.1 MB / 425.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 68.88 kB / 0.5053 GB, free: 5.762 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1434, allocations: 80.93 MB / 0.5843 GB, free: 5.004 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002752/0.1461, allocations: 1.564 MB / 0.5859 GB, free: 3.418 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000341/0.1465, allocations: 120.5 kB / 0.586 GB, free: 3.297 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.703e-05/0.1465, allocations: 4 kB / 0.586 GB, free: 3.293 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.899e-05/0.1466, allocations: 3.984 kB / 0.586 GB, free: 3.289 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.977e-05/0.1466, allocations: 3.938 kB / 0.586 GB, free: 3.285 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001716/0.1468, allocations: 15.98 kB / 0.586 GB, free: 3.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.686e-05/0.1469, allocations: 35.86 kB / 0.586 GB, free: 3.234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.865e-05/0.147, allocations: 8 kB / 0.5861 GB, free: 3.227 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.638e-05/0.147, allocations: 11.97 kB / 0.5861 GB, free: 3.215 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.158e-05/0.1471, allocations: 11.94 kB / 0.5861 GB, free: 3.203 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.1471, allocations: 4 kB / 0.5861 GB, free: 3.199 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.459e-05/0.1471, allocations: 11.98 kB / 0.5861 GB, free: 3.188 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.241e-05/0.1472, allocations: 4 kB / 0.5861 GB, free: 3.184 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.582e-05/0.1472, allocations: 11.92 kB / 0.5861 GB, free: 3.172 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.555e-05/0.1473, allocations: 27.95 kB / 0.5861 GB, free: 3.145 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1473, allocations: 4 kB / 0.5861 GB, free: 3.141 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1473, allocations: 0 / 0.5861 GB, free: 3.141 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.1473, allocations: 0 / 0.5861 GB, free: 3.141 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005022/0.1478, allocations: 347.7 kB / 0.5865 GB, free: 2.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.1478, allocations: 8.031 kB / 0.5865 GB, free: 2.742 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.1479, allocations: 4.938 kB / 0.5865 GB, free: 2.738 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.148, allocations: 172.3 kB / 0.5866 GB, free: 2.531 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.148, allocations: 384 / 0.5866 GB, free: 2.531 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-06/0.148, allocations: 8.375 kB / 0.5867 GB, free: 2.523 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.1482, allocations: 58.17 kB / 0.5867 GB, free: 2.461 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.1482, allocations: 192 / 0.5867 GB, free: 2.461 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.1483, allocations: 7.938 kB / 0.5867 GB, free: 2.453 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1483, allocations: 0 / 0.5867 GB, free: 2.453 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.1484, allocations: 39.95 kB / 0.5868 GB, free: 2.414 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003581/0.1488, allocations: 265 kB / 0.587 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003112/0.1491, allocations: 58.42 kB / 0.5871 GB, free: 2.039 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.79e-05/0.1492, allocations: 32.83 kB / 0.5871 GB, free: 2.004 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.1494, allocations: 77.11 kB / 0.5872 GB, free: 1.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.319e-05/0.1494, allocations: 38.56 kB / 0.5872 GB, free: 1.863 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1494, allocations: 0 / 0.5872 GB, free: 1.863 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003686/0.1498, allocations: 97.75 kB / 0.5873 GB, free: 1.762 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.1499, allocations: 51.41 kB / 0.5874 GB, free: 1.699 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.1499, allocations: 105.8 kB / 0.5875 GB, free: 1.586 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.15, allocations: 25.7 kB / 0.5875 GB, free: 1.555 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.278e-05/0.15, allocations: 88.05 kB / 0.5876 GB, free: 1.465 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.15, allocations: 11.94 kB / 0.5876 GB, free: 1.453 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.1501, allocations: 17.7 kB / 0.5876 GB, free: 1.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.1502, allocations: 314.8 kB / 0.5879 GB, free: 1.113 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.946e-05/0.1503, allocations: 15.98 kB / 0.5879 GB, free: 1.098 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.17e-05/0.1504, allocations: 19.97 kB / 0.5879 GB, free: 1.078 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000165/0.1506, allocations: 48.83 kB / 0.588 GB, free: 1.027 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1506, allocations: 3.938 kB / 0.588 GB, free: 1.023 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002159/0.1508, allocations: 81.55 kB / 0.5881 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1509, allocations: 4 kB / 0.5881 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1509, allocations: 3.938 kB / 0.5881 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.1509, allocations: 3.938 kB / 0.5881 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.112e-05/0.151, allocations: 11.98 kB / 0.5881 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.151, allocations: 0 / 0.5881 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.073e-05/0.151, allocations: 12 kB / 0.5881 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.1511, allocations: 3.984 kB / 0.5881 GB, free: 0.8984 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 (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.668e-05/0.1511, allocations: 113.8 kB / 0.5882 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.1512, allocations: 0 / 0.5882 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002621/0.1514, allocations: 85.14 kB / 0.5883 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1515, allocations: 0 / 0.5883 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1515, allocations: 0 / 0.5883 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1515, allocations: 4 kB / 0.5883 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001688/0.1516, allocations: 169.6 kB / 0.5884 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.1517, allocations: 0 / 0.5884 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.069e-05/0.1518, allocations: 15.92 kB / 0.5885 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1518, allocations: 0 / 0.5885 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.1518, allocations: 0 / 0.5885 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1518, allocations: 0 / 0.5885 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1518, allocations: 0 / 0.5885 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002496/0.152, allocations: 179.3 kB / 0.5886 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.121e-05/0.1521, allocations: 81.11 kB / 0.5887 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.1521, allocations: 480 / 0.5887 GB, free: 168 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.585e-05/0.1522, allocations: 7.984 kB / 0.5887 GB, free: 160 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.651e-05/0.1523, allocations: 4 kB / 0.5887 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.1523, allocations: 3.938 kB / 0.5887 GB, free: 152 kB / 494.1 MB Notification: Performance of sorting global known variables: time 3.834e-05/0.1523, allocations: 91.25 kB / 0.5888 GB, free: 60 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1523, allocations: 0 / 0.5888 GB, free: 60 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002271/0.1525, allocations: 12 kB / 0.5888 GB, free: 48 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.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.0001562/0.1527, allocations: 103.2 kB / 0.5889 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002238/0.1529, allocations: 43.91 kB / 0.589 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.153, allocations: 0 / 0.589 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.596e-05/0.1531, allocations: 27.97 kB / 0.589 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.1533, allocations: 7.938 kB / 0.589 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002875/0.1536, allocations: 144.9 kB / 0.5891 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.1539, allocations: 0.6809 MB / 0.5898 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.887e-05/0.1539, allocations: 11.44 kB / 0.5898 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1539, allocations: 0 / 0.5898 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of Templates: time 0.001983/0.1559, allocations: 0.7241 MB / 0.5905 GB, free: 14.24 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)