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.001287/0.001287, 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.001328/0.001328, allocations: 196.9 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.342/1.342, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9597/0.9597, allocations: 135.1 MB / 425.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.81 kB / 0.5053 GB, free: 5.762 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1465, allocations: 80.92 MB / 0.5843 GB, free: 5.004 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001623/0.1481, allocations: 0.6464 MB / 0.585 GB, free: 4.352 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002556/0.1484, allocations: 51.8 kB / 0.585 GB, free: 4.301 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.051e-05/0.1484, allocations: 0 / 0.585 GB, free: 4.301 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.78e-05/0.1484, allocations: 3.938 kB / 0.585 GB, free: 4.297 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.1485, allocations: 0 / 0.585 GB, free: 4.297 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001741/0.1486, allocations: 11.98 kB / 0.585 GB, free: 4.285 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.446e-05/0.1487, allocations: 4 kB / 0.585 GB, free: 4.281 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.566e-05/0.1487, allocations: 0 / 0.585 GB, free: 4.281 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.51e-05/0.1487, allocations: 4 kB / 0.5851 GB, free: 4.277 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.988e-05/0.1488, allocations: 7.922 kB / 0.5851 GB, free: 4.27 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-06/0.1488, allocations: 0 / 0.5851 GB, free: 4.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.425e-05/0.1488, allocations: 8 kB / 0.5851 GB, free: 4.262 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-06/0.1489, allocations: 0 / 0.5851 GB, free: 4.262 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.906e-05/0.1489, allocations: 4 kB / 0.5851 GB, free: 4.258 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 5.907e-05/0.149, allocations: 3.984 kB / 0.5851 GB, free: 4.254 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.149, allocations: 0 / 0.5851 GB, free: 4.254 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.149, allocations: 4 kB / 0.5851 GB, free: 4.25 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.287e-06/0.149, allocations: 0 / 0.5851 GB, free: 4.25 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.0002874/0.1493, allocations: 323.6 kB / 0.5854 GB, free: 3.883 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.1493, allocations: 8.031 kB / 0.5854 GB, free: 3.875 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.811e-05/0.1493, allocations: 0.9375 kB / 0.5854 GB, free: 3.875 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.934e-05/0.1494, allocations: 160.4 kB / 0.5855 GB, free: 3.68 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.1494, allocations: 384 / 0.5855 GB, free: 3.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.697e-06/0.1495, allocations: 4.375 kB / 0.5856 GB, free: 3.676 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.772e-05/0.1496, allocations: 34.19 kB / 0.5856 GB, free: 3.637 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.1496, allocations: 8.125 kB / 0.5856 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.1496, allocations: 3.938 kB / 0.5856 GB, free: 3.625 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1496, allocations: 4 kB / 0.5856 GB, free: 3.621 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.809e-05/0.1496, allocations: 0 / 0.5856 GB, free: 3.621 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001368/0.1498, allocations: 149.7 kB / 0.5857 GB, free: 3.426 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.856e-05/0.1498, allocations: 30.59 kB / 0.5858 GB, free: 3.387 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.463e-05/0.1499, allocations: 8.922 kB / 0.5858 GB, free: 3.375 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.15, allocations: 81.11 kB / 0.5859 GB, free: 3.277 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.1501, allocations: 38.5 kB / 0.5859 GB, free: 3.23 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.1501, allocations: 0 / 0.5859 GB, free: 3.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001272/0.1502, allocations: 45.62 kB / 0.5859 GB, free: 3.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.1502, allocations: 51.41 kB / 0.586 GB, free: 3.117 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.173e-05/0.1503, allocations: 89.86 kB / 0.5861 GB, free: 3.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.1503, allocations: 25.7 kB / 0.5861 GB, free: 2.988 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.382e-05/0.1503, allocations: 80.27 kB / 0.5862 GB, free: 2.906 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.1503, allocations: 11.91 kB / 0.5862 GB, free: 2.895 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/0.1504, allocations: 17.7 kB / 0.5862 GB, free: 2.871 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.992e-05/0.1505, allocations: 314.8 kB / 0.5865 GB, free: 2.555 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.048e-05/0.1505, allocations: 3.938 kB / 0.5865 GB, free: 2.551 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.358e-06/0.1505, allocations: 3.938 kB / 0.5865 GB, free: 2.547 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.037e-05/0.1506, allocations: 16.86 kB / 0.5865 GB, free: 2.527 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1506, allocations: 0 / 0.5865 GB, free: 2.527 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.989e-05/0.1506, allocations: 41.75 kB / 0.5866 GB, free: 2.48 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.1507, allocations: 5.875 kB / 0.5866 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.1507, allocations: 0 / 0.5866 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.1507, allocations: 3.938 kB / 0.5866 GB, free: 2.473 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.197e-05/0.1507, allocations: 4 kB / 0.5866 GB, free: 2.469 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1507, allocations: 0 / 0.5866 GB, free: 2.469 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.299e-05/0.1508, allocations: 0 / 0.5866 GB, free: 2.469 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.1508, allocations: 4 kB / 0.5866 GB, free: 2.465 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 (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.022e-05/0.1508, allocations: 109.8 kB / 0.5867 GB, free: 2.348 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-06/0.1509, allocations: 11.95 kB / 0.5867 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.859e-05/0.1509, allocations: 45.05 kB / 0.5867 GB, free: 2.285 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-06/0.151, allocations: 0 / 0.5867 GB, free: 2.285 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.151, allocations: 4 kB / 0.5867 GB, free: 2.281 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.151, allocations: 3.984 kB / 0.5867 GB, free: 2.277 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.245e-05/0.1511, allocations: 157.5 kB / 0.5869 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.1511, allocations: 0 / 0.5869 GB, free: 2.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.341e-05/0.1511, allocations: 4 kB / 0.5869 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.1511, allocations: 0 / 0.5869 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.1511, allocations: 3.938 kB / 0.5869 GB, free: 2.066 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1511, allocations: 4.031 kB / 0.5869 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1511, allocations: 3.984 kB / 0.5869 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.904e-05/0.1512, allocations: 61.08 kB / 0.587 GB, free: 1.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.961e-05/0.1513, allocations: 81.11 kB / 0.5871 GB, free: 1.883 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.152e-05/0.1513, allocations: 7.922 kB / 0.5871 GB, free: 1.875 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.422e-05/0.1513, allocations: 4 kB / 0.5871 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.447e-05/0.1513, allocations: 0 / 0.5871 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.1513, allocations: 8.031 kB / 0.5871 GB, free: 1.863 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.91e-05/0.1514, allocations: 75.28 kB / 0.5871 GB, free: 1.789 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1514, allocations: 0 / 0.5871 GB, free: 1.789 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001954/0.1516, allocations: 4 kB / 0.5871 GB, free: 1.785 MB / 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 (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.000149/0.1517, allocations: 99.25 kB / 0.5872 GB, free: 1.676 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.604e-05/0.1518, allocations: 7.984 kB / 0.5872 GB, free: 1.668 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1518, allocations: 0 / 0.5872 GB, free: 1.668 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.264e-05/0.1518, allocations: 16 kB / 0.5873 GB, free: 1.652 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.152, allocations: 4 kB / 0.5873 GB, free: 1.648 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001863/0.1521, allocations: 116.3 kB / 0.5874 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.1524, allocations: 0.6692 MB / 0.588 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.702e-05/0.1524, allocations: 19.38 kB / 0.588 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1524, allocations: 0 / 0.588 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of Templates: time 0.001534/0.1539, allocations: 449.5 kB / 0.5885 GB, free: 360 kB / 494.1 MB 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)