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: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005835/0.005835, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001088/0.001088, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8307/0.8307, allocations: 132.2 MB / 422.7 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 73.95 kB / 0.5809 GB, free: 23.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.176, allocations: 80.21 MB / 0.6592 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001959/0.178, allocations: 0.5726 MB / 0.6598 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002968/0.1783, allocations: 50.41 kB / 0.6598 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.038e-05/0.1783, allocations: 0 / 0.6598 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.963e-05/0.1784, allocations: 0 / 0.6598 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.224e-06/0.1784, allocations: 0 / 0.6598 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.1787, allocations: 19.91 kB / 0.6599 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.319e-05/0.1787, allocations: 4 kB / 0.6599 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.793e-05/0.1788, allocations: 4 kB / 0.6599 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.575e-05/0.1788, allocations: 3.938 kB / 0.6599 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.148e-05/0.1788, allocations: 4 kB / 0.6599 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.237e-06/0.1788, allocations: 0 / 0.6599 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.398e-05/0.1789, allocations: 11.98 kB / 0.6599 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.438e-06/0.1789, allocations: 0 / 0.6599 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.002e-05/0.179, allocations: 3.984 kB / 0.6599 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.967e-05/0.1791, allocations: 8 kB / 0.6599 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1791, allocations: 0 / 0.6599 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1791, allocations: 0 / 0.6599 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.1791, allocations: 4 kB / 0.6599 GB, free: 10.05 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.0003311/0.1794, allocations: 327.7 kB / 0.6602 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.1795, allocations: 8.031 kB / 0.6602 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.235e-05/0.1795, allocations: 30.75 kB / 0.6603 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.481e-05/0.1795, allocations: 0.9375 kB / 0.6603 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.882e-05/0.1796, allocations: 164.4 kB / 0.6604 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.1796, allocations: 384 / 0.6604 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.053e-05/0.1797, allocations: 4.375 kB / 0.6604 GB, free: 9.426 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.773e-05/0.1798, allocations: 38.19 kB / 0.6604 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1798, allocations: 7.938 kB / 0.6605 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.1798, allocations: 0 / 0.6605 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1798, allocations: 0 / 0.6605 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.587e-05/0.1798, allocations: 11.98 kB / 0.6605 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001433/0.18, allocations: 141.7 kB / 0.6606 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.037e-05/0.1801, allocations: 22.95 kB / 0.6606 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.074e-05/0.1801, allocations: 8.922 kB / 0.6606 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000182/0.1803, allocations: 96.97 kB / 0.6607 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.1803, allocations: 30.56 kB / 0.6608 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.1803, allocations: 0 / 0.6608 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001506/0.1805, allocations: 45.62 kB / 0.6608 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.1805, allocations: 51.41 kB / 0.6608 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.244e-05/0.1806, allocations: 89.86 kB / 0.6609 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.1806, allocations: 29.7 kB / 0.661 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.495e-05/0.1806, allocations: 80.14 kB / 0.661 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.1806, allocations: 8.078 kB / 0.661 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.1807, allocations: 17.72 kB / 0.6611 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.1808, allocations: 314.8 kB / 0.6614 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.407e-05/0.1808, allocations: 0 / 0.6614 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.359e-05/0.1808, allocations: 11.92 kB / 0.6614 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.265e-05/0.1809, allocations: 12.86 kB / 0.6614 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1809, allocations: 0 / 0.6614 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.16e-05/0.1809, allocations: 37.77 kB / 0.6614 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.181, allocations: 4 kB / 0.6614 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.181, allocations: 3.938 kB / 0.6614 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.181, allocations: 4 kB / 0.6614 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.766e-05/0.181, allocations: 7.922 kB / 0.6614 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1811, allocations: 0 / 0.6614 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.478e-05/0.1811, allocations: 8 kB / 0.6614 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-06/0.1811, allocations: 0 / 0.6614 GB, free: 8.207 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.307e-05/0.1812, allocations: 110.7 kB / 0.6616 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-06/0.1812, allocations: 4.031 kB / 0.6616 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.006e-05/0.1813, allocations: 48.75 kB / 0.6616 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1813, allocations: 0 / 0.6616 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1813, allocations: 0 / 0.6616 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1813, allocations: 4 kB / 0.6616 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.718e-05/0.1814, allocations: 145.7 kB / 0.6617 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1814, allocations: 0 / 0.6617 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.426e-05/0.1814, allocations: 8 kB / 0.6618 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1814, allocations: 0 / 0.6618 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.1815, allocations: 3.938 kB / 0.6618 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1815, allocations: 4.031 kB / 0.6618 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1815, allocations: 0 / 0.6618 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.418e-05/0.1816, allocations: 69.06 kB / 0.6618 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.1816, allocations: 77.11 kB / 0.6619 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.1816, allocations: 7.938 kB / 0.6619 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.003e-05/0.1816, allocations: 0 / 0.6619 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.754e-05/0.1817, allocations: 4 kB / 0.6619 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.1817, allocations: 4.031 kB / 0.6619 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.749e-05/0.1817, allocations: 79.22 kB / 0.662 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1817, allocations: 0 / 0.662 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00018/0.1819, allocations: 7.984 kB / 0.662 GB, free: 7.535 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.0004006/0.1823, allocations: 0.6123 MB / 0.6626 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.74e-05/0.1824, allocations: 12 kB / 0.6626 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1824, allocations: 0 / 0.6626 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.564e-05/0.1824, allocations: 4 kB / 0.6626 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.1826, allocations: 0 / 0.6626 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002995/0.1829, allocations: 122.5 kB / 0.6627 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002276/0.1831, allocations: 0.669 MB / 0.6634 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.709e-05/0.1831, allocations: 7.984 kB / 0.6634 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.912e-05/0.1831, allocations: 11.5 kB / 0.6634 GB, free: 6 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1832, allocations: 4 kB / 0.6634 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01707/0.2002, allocations: 1.054 MB / 0.6644 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.298/7.499, allocations: 0 / 0.6644 GB, free: 5.031 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)