Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Utilities.Math.Functions.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001585/0.001585, allocations: 111.9 kB / 16.38 MB, free: 6.484 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.001155/0.001155, allocations: 190.2 kB / 17.31 MB, free: 5.785 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.291/1.291, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7699/0.7699, allocations: 132.2 MB / 423.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 67.42 kB / 0.582 GB, free: 23.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1402, allocations: 80.2 MB / 0.6603 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001497/0.1418, allocations: 0.5797 MB / 0.6609 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002476/0.142, allocations: 50.41 kB / 0.6609 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.674e-05/0.142, allocations: 0 / 0.6609 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.466e-05/0.1421, allocations: 3.938 kB / 0.6609 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.903e-06/0.1421, allocations: 3.938 kB / 0.6609 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.1423, allocations: 15.98 kB / 0.661 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.27e-05/0.1424, allocations: 0 / 0.661 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.399e-05/0.1424, allocations: 3.984 kB / 0.661 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.273e-05/0.1424, allocations: 4 kB / 0.661 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.008e-05/0.1424, allocations: 4 kB / 0.661 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.337e-06/0.1425, allocations: 4 kB / 0.661 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.849e-05/0.1425, allocations: 7.984 kB / 0.661 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.386e-06/0.1425, allocations: 0 / 0.661 GB, free: 9.73 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.894e-05/0.1426, allocations: 8 kB / 0.661 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 7.558e-05/0.1426, allocations: 11.92 kB / 0.661 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1427, allocations: 0 / 0.661 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.603e-06/0.1427, allocations: 0 / 0.661 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.698e-06/0.1427, allocations: 0 / 0.661 GB, free: 9.711 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.0002639/0.1429, allocations: 319.6 kB / 0.6613 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.143, allocations: 8.031 kB / 0.6613 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.634e-05/0.143, allocations: 4.938 kB / 0.6613 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.096e-05/0.1431, allocations: 168.3 kB / 0.6615 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.793e-06/0.1431, allocations: 384 / 0.6615 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.1431, allocations: 384 / 0.6615 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.399e-05/0.1432, allocations: 34.25 kB / 0.6615 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.1432, allocations: 192 / 0.6615 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.1432, allocations: 3.938 kB / 0.6615 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1433, allocations: 0 / 0.6615 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.778e-05/0.1433, allocations: 4 kB / 0.6615 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001324/0.1434, allocations: 153.7 kB / 0.6617 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.414e-05/0.1435, allocations: 30.55 kB / 0.6617 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.019e-05/0.1435, allocations: 5.203 kB / 0.6617 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001487/0.1437, allocations: 85.16 kB / 0.6618 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.1437, allocations: 30.56 kB / 0.6618 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.1437, allocations: 0 / 0.6618 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001259/0.1438, allocations: 45.64 kB / 0.6619 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.1439, allocations: 55.41 kB / 0.6619 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.683e-05/0.1439, allocations: 93.84 kB / 0.662 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.1439, allocations: 25.7 kB / 0.662 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.576e-05/0.1439, allocations: 80.14 kB / 0.6621 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.144, allocations: 11.78 kB / 0.6621 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/0.144, allocations: 17.72 kB / 0.6621 GB, free: 8.332 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.016e-05/0.1441, allocations: 310.8 kB / 0.6624 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.042e-05/0.1441, allocations: 8.062 kB / 0.6624 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.875e-06/0.1441, allocations: 4 kB / 0.6624 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.126e-05/0.1442, allocations: 20.84 kB / 0.6625 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1442, allocations: 0 / 0.6625 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.237e-05/0.1442, allocations: 37.7 kB / 0.6625 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.1442, allocations: 8 kB / 0.6625 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1442, allocations: 0 / 0.6625 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1443, allocations: 3.938 kB / 0.6625 GB, free: 7.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.411e-05/0.1443, allocations: 12.02 kB / 0.6625 GB, free: 7.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1443, allocations: 4 kB / 0.6625 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.402e-05/0.1444, allocations: 3.938 kB / 0.6625 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-06/0.1444, allocations: 0 / 0.6625 GB, free: 7.91 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 6.356e-05/0.1444, allocations: 109.8 kB / 0.6626 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.612e-06/0.1444, allocations: 4 kB / 0.6626 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.211e-05/0.1445, allocations: 48.73 kB / 0.6627 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1445, allocations: 4 kB / 0.6627 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.1445, allocations: 0 / 0.6627 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1446, allocations: 4.031 kB / 0.6627 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.03e-05/0.1446, allocations: 141.7 kB / 0.6628 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1446, allocations: 0 / 0.6628 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.296e-05/0.1447, allocations: 7.984 kB / 0.6628 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.1447, allocations: 0 / 0.6628 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.1447, allocations: 3.938 kB / 0.6628 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1447, allocations: 7.938 kB / 0.6628 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1447, allocations: 0 / 0.6628 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.58e-05/0.1448, allocations: 65.12 kB / 0.6629 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.358e-05/0.1448, allocations: 77.11 kB / 0.663 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.032e-05/0.1448, allocations: 3.938 kB / 0.663 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.163e-05/0.1448, allocations: 4 kB / 0.663 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/0.1449, allocations: 4 kB / 0.663 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-06/0.1449, allocations: 0 / 0.663 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.176e-05/0.1449, allocations: 75.28 kB / 0.6631 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.1449, allocations: 0 / 0.6631 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001782/0.1451, allocations: 4 kB / 0.6631 GB, free: 7.25 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.0001398/0.1452, allocations: 111.2 kB / 0.6632 GB, free: 7.129 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.544e-05/0.1453, allocations: 11.94 kB / 0.6632 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1453, allocations: 0 / 0.6632 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.268e-05/0.1453, allocations: 8 kB / 0.6632 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001207/0.1455, allocations: 3.938 kB / 0.6632 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001797/0.1457, allocations: 114.6 kB / 0.6633 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001879/0.1459, allocations: 0.673 MB / 0.664 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.373e-05/0.1459, allocations: 11.44 kB / 0.664 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1459, allocations: 0 / 0.664 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of Templates: time 0.001526/0.1474, allocations: 451.7 kB / 0.6644 GB, free: 5.809 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)