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.001234/0.001234, allocations: 104.6 kB / 16.41 MB, free: 6.5 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.001335/0.001335, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.288/1.288, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.769/0.769, allocations: 135.1 MB / 426.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 64.42 kB / 0.5863 GB, free: 21.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1419, allocations: 80.93 MB / 0.6653 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001647/0.1435, allocations: 0.5682 MB / 0.6659 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002566/0.1438, allocations: 46.45 kB / 0.6659 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.476e-05/0.1438, allocations: 0 / 0.6659 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.502e-05/0.1439, allocations: 4 kB / 0.6659 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.692e-06/0.1439, allocations: 3.938 kB / 0.6659 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.1441, allocations: 19.97 kB / 0.666 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 3.837e-05/0.1442, allocations: 0 / 0.666 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.231e-05/0.1442, allocations: 4 kB / 0.666 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.317e-05/0.1442, allocations: 3.938 kB / 0.666 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.157e-05/0.1443, allocations: 0 / 0.666 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.097e-06/0.1443, allocations: 0 / 0.666 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.332e-05/0.1443, allocations: 11.98 kB / 0.666 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.646e-06/0.1444, allocations: 0 / 0.666 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.1444, allocations: 11.98 kB / 0.666 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.068e-05/0.1445, allocations: 7.984 kB / 0.666 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1445, allocations: 0 / 0.666 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.293e-06/0.1445, allocations: 7.938 kB / 0.666 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.1445, allocations: 3.938 kB / 0.666 GB, free: 5.066 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.0002725/0.1448, allocations: 319.5 kB / 0.6663 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1448, allocations: 9.109 kB / 0.6663 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/0.1449, allocations: 4.938 kB / 0.6663 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.209e-05/0.145, allocations: 168.3 kB / 0.6665 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.145, allocations: 384 / 0.6665 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-06/0.145, allocations: 384 / 0.6665 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.339e-05/0.1451, allocations: 30.27 kB / 0.6665 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.1451, allocations: 4.188 kB / 0.6665 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.1451, allocations: 3.938 kB / 0.6665 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1451, allocations: 0 / 0.6665 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.437e-05/0.1452, allocations: 7.984 kB / 0.6665 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001349/0.1453, allocations: 145.7 kB / 0.6667 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.915e-05/0.1454, allocations: 30.55 kB / 0.6667 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.816e-05/0.1454, allocations: 9.188 kB / 0.6667 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001567/0.1455, allocations: 85.17 kB / 0.6668 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.035e-05/0.1456, allocations: 30.56 kB / 0.6668 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.1456, allocations: 0 / 0.6668 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001417/0.1457, allocations: 49.62 kB / 0.6669 GB, free: 4 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.1458, allocations: 51.41 kB / 0.6669 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.982e-05/0.1458, allocations: 89.86 kB / 0.667 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.1458, allocations: 25.7 kB / 0.667 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.351e-05/0.1459, allocations: 80.27 kB / 0.6671 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.1459, allocations: 7.938 kB / 0.6671 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/0.1459, allocations: 17.72 kB / 0.6671 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.302e-05/0.146, allocations: 310.8 kB / 0.6674 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.452e-05/0.146, allocations: 7.984 kB / 0.6674 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.585e-06/0.146, allocations: 0 / 0.6674 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.152e-05/0.1461, allocations: 16.86 kB / 0.6675 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1461, allocations: 0 / 0.6675 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.633e-05/0.1461, allocations: 37.77 kB / 0.6675 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.1462, allocations: 8 kB / 0.6675 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1462, allocations: 3.984 kB / 0.6675 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1462, allocations: 7.875 kB / 0.6675 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.606e-05/0.1463, allocations: 11.94 kB / 0.6675 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.1463, allocations: 0 / 0.6675 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.539e-05/0.1463, allocations: 7.844 kB / 0.6675 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-06/0.1463, allocations: 0 / 0.6675 GB, free: 3.273 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 5.877e-05/0.1464, allocations: 113.8 kB / 0.6676 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.674e-06/0.1464, allocations: 4.031 kB / 0.6676 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.114e-05/0.1465, allocations: 52.73 kB / 0.6677 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1465, allocations: 0 / 0.6677 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1465, allocations: 3.938 kB / 0.6677 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1465, allocations: 0 / 0.6677 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.472e-05/0.1466, allocations: 145.7 kB / 0.6678 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1466, allocations: 4 kB / 0.6678 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.213e-05/0.1466, allocations: 0 / 0.6678 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1466, allocations: 0 / 0.6678 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.1466, allocations: 7.938 kB / 0.6678 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.1466, allocations: 7.969 kB / 0.6679 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1467, allocations: 0 / 0.6679 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.935e-05/0.1467, allocations: 61.12 kB / 0.6679 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.799e-05/0.1468, allocations: 77.11 kB / 0.668 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.1468, allocations: 3.938 kB / 0.668 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.12e-05/0.1468, allocations: 0 / 0.668 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.883e-05/0.1468, allocations: 11.98 kB / 0.668 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.1468, allocations: 4.031 kB / 0.668 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.584e-05/0.1469, allocations: 75.28 kB / 0.6681 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1469, allocations: 0 / 0.6681 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001991/0.1471, allocations: 4 kB / 0.6681 GB, free: 2.602 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.0001558/0.1472, allocations: 100.6 kB / 0.6682 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.242e-05/0.1473, allocations: 11.94 kB / 0.6682 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1473, allocations: 0 / 0.6682 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.481e-05/0.1473, allocations: 16.05 kB / 0.6682 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.1475, allocations: 0 / 0.6682 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002054/0.1477, allocations: 110.6 kB / 0.6683 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.1479, allocations: 0.6806 MB / 0.669 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.68e-05/0.1479, allocations: 7.438 kB / 0.669 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1479, allocations: 0 / 0.669 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of Templates: time 0.001617/0.1496, allocations: 459.8 kB / 0.6694 GB, free: 1.16 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)