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.001594/0.001594, allocations: 108.3 kB / 16.41 MB, free: 6.492 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.001779/0.001779, allocations: 183 kB / 17.34 MB, free: 5.766 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8269/0.8269, allocations: 132.2 MB / 423.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 61.77 kB / 0.582 GB, free: 23.72 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1476, allocations: 80.21 MB / 0.6604 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001741/0.1494, allocations: 0.5699 MB / 0.6609 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002576/0.1496, allocations: 62.33 kB / 0.661 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.567e-05/0.1497, allocations: 0 / 0.661 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.183e-05/0.1497, allocations: 0 / 0.661 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.1497, allocations: 0 / 0.661 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002197/0.1499, allocations: 11.92 kB / 0.661 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.246e-05/0.15, allocations: 8 kB / 0.661 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.203e-05/0.15, allocations: 3.938 kB / 0.661 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.611e-05/0.1501, allocations: 4 kB / 0.661 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.205e-05/0.1501, allocations: 3.984 kB / 0.661 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.277e-06/0.1501, allocations: 0 / 0.661 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.305e-05/0.1502, allocations: 8 kB / 0.661 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.197e-05/0.1502, allocations: 7.984 kB / 0.661 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.966e-05/0.1502, allocations: 0 / 0.661 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.177e-05/0.1503, allocations: 7.984 kB / 0.661 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.964e-06/0.1503, allocations: 7.938 kB / 0.6611 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.953e-06/0.1504, allocations: 0 / 0.6611 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.1504, allocations: 0 / 0.6611 GB, free: 9.555 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.0003263/0.1507, allocations: 319.6 kB / 0.6614 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.1507, allocations: 8.031 kB / 0.6614 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.1508, allocations: 0.9375 kB / 0.6614 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.1509, allocations: 160.4 kB / 0.6615 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.1509, allocations: 8.375 kB / 0.6615 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.1509, allocations: 384 / 0.6615 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001039/0.151, allocations: 34.27 kB / 0.6616 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.151, allocations: 192 / 0.6616 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.1511, allocations: 3.938 kB / 0.6616 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1511, allocations: 3.984 kB / 0.6616 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.337e-05/0.1511, allocations: 7.938 kB / 0.6616 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001466/0.1513, allocations: 141.7 kB / 0.6617 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.625e-05/0.1513, allocations: 30.59 kB / 0.6617 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.734e-05/0.1513, allocations: 9.266 kB / 0.6617 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001695/0.1515, allocations: 81.11 kB / 0.6618 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.1516, allocations: 30.56 kB / 0.6619 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.233e-06/0.1516, allocations: 0 / 0.6619 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001554/0.1517, allocations: 53.55 kB / 0.6619 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.1518, allocations: 51.53 kB / 0.662 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.741e-05/0.1518, allocations: 97.86 kB / 0.662 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.1518, allocations: 29.64 kB / 0.6621 GB, free: 8.289 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.221e-05/0.1519, allocations: 84.14 kB / 0.6622 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.1519, allocations: 3.906 kB / 0.6622 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.947e-05/0.1519, allocations: 13.72 kB / 0.6622 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.152, allocations: 314.8 kB / 0.6625 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.166e-05/0.1521, allocations: 0 / 0.6625 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.102e-05/0.1521, allocations: 8 kB / 0.6625 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.195e-05/0.1521, allocations: 16.92 kB / 0.6625 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1521, allocations: 3.938 kB / 0.6625 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.366e-05/0.1522, allocations: 41.69 kB / 0.6625 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1522, allocations: 4 kB / 0.6625 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1522, allocations: 7.938 kB / 0.6626 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.1523, allocations: 3.938 kB / 0.6626 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.719e-05/0.1523, allocations: 0 / 0.6626 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.1523, allocations: 7.984 kB / 0.6626 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.534e-05/0.1524, allocations: 3.969 kB / 0.6626 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-06/0.1524, allocations: 4 kB / 0.6626 GB, free: 7.754 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 7.024e-05/0.1524, allocations: 105.8 kB / 0.6627 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-06/0.1525, allocations: 0 / 0.6627 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.99e-05/0.1526, allocations: 56.69 kB / 0.6627 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1526, allocations: 0 / 0.6627 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.1526, allocations: 4 kB / 0.6627 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1526, allocations: 0 / 0.6627 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.1527, allocations: 149.7 kB / 0.6629 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1527, allocations: 4.031 kB / 0.6629 GB, free: 7.371 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.511e-05/0.1527, allocations: 4 kB / 0.6629 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1527, allocations: 0 / 0.6629 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-06/0.1528, allocations: 3.938 kB / 0.6629 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1528, allocations: 0 / 0.6629 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1528, allocations: 4 kB / 0.6629 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.158e-05/0.1529, allocations: 65.06 kB / 0.6629 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.072e-05/0.1529, allocations: 77.11 kB / 0.663 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.1529, allocations: 7.969 kB / 0.663 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.111e-05/0.1529, allocations: 0 / 0.663 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.254e-05/0.153, allocations: 7.984 kB / 0.663 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.153, allocations: 0 / 0.663 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.12e-05/0.153, allocations: 75.28 kB / 0.6631 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.153, allocations: 0 / 0.6631 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002034/0.1532, allocations: 4 kB / 0.6631 GB, free: 7.09 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.0001514/0.1534, allocations: 107.2 kB / 0.6632 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 8.118e-05/0.1535, allocations: 15.98 kB / 0.6632 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1535, allocations: 0 / 0.6632 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.393e-05/0.1535, allocations: 7.938 kB / 0.6632 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.1536, allocations: 3.938 kB / 0.6632 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001963/0.1538, allocations: 110.6 kB / 0.6633 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.1541, allocations: 0.6729 MB / 0.664 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.518e-05/0.1541, allocations: 11.44 kB / 0.664 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.1541, allocations: 4.125 kB / 0.664 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of Templates: time 0.001764/0.1559, allocations: 451.7 kB / 0.6645 GB, free: 5.648 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)