Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.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.FallingFactorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_FallingFactorial",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.009032/0.009032, allocations: 105 kB / 15.74 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.002342/0.002341, allocations: 201.7 kB / 16.68 MB, free: 6.375 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7772/0.7772, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 61.69 kB / 0.5809 GB, free: 1.105 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1782, allocations: 80.2 MB / 0.6592 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001848/0.1801, allocations: 0.5758 MB / 0.6598 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003009/0.1805, allocations: 59.78 kB / 0.6599 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.14e-05/0.1805, allocations: 4 kB / 0.6599 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.055e-05/0.1806, allocations: 0 / 0.6599 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.524e-06/0.1806, allocations: 0 / 0.6599 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.1809, allocations: 15.92 kB / 0.6599 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.191e-05/0.181, allocations: 31.97 kB / 0.6599 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.772e-05/0.1811, allocations: 0 / 0.6599 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.623e-05/0.1811, allocations: 15.92 kB / 0.6599 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.187e-05/0.1811, allocations: 11.98 kB / 0.6599 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.267e-05/0.1812, allocations: 0 / 0.6599 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.379e-05/0.1813, allocations: 15.98 kB / 0.6599 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.305e-05/0.1813, allocations: 15.98 kB / 0.66 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.934e-05/0.1814, allocations: 23.92 kB / 0.66 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.1815, allocations: 36.11 kB / 0.66 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1815, allocations: 0 / 0.66 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.954e-06/0.1815, allocations: 0 / 0.66 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.1815, allocations: 0 / 0.66 GB, free: 13.19 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000338/0.1818, allocations: 335.4 kB / 0.6603 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1819, allocations: 12.03 kB / 0.6603 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.954e-05/0.1819, allocations: 38.73 kB / 0.6604 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.182, allocations: 8.891 kB / 0.6604 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.566e-05/0.1821, allocations: 164.7 kB / 0.6605 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.1821, allocations: 8.375 kB / 0.6606 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.1821, allocations: 4.375 kB / 0.6606 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.1823, allocations: 66.22 kB / 0.6606 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1823, allocations: 7.922 kB / 0.6606 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.1823, allocations: 0 / 0.6606 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.1823, allocations: 0 / 0.6606 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.1824, allocations: 99.88 kB / 0.6607 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001641/0.1826, allocations: 169.7 kB / 0.6609 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001214/0.1827, allocations: 82.09 kB / 0.661 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.484e-05/0.1828, allocations: 33.17 kB / 0.661 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003392/0.1831, allocations: 409.4 kB / 0.6614 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.1832, allocations: 38.5 kB / 0.6614 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.1832, allocations: 0 / 0.6614 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0002485/0.1834, allocations: 117.5 kB / 0.6615 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.061e-05/0.1835, allocations: 51.41 kB / 0.6616 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.027e-05/0.1835, allocations: 101.9 kB / 0.6617 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.1835, allocations: 29.7 kB / 0.6617 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.62e-05/0.1836, allocations: 82.42 kB / 0.6618 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.15e-05/0.1836, allocations: 27.78 kB / 0.6618 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.472e-05/0.1837, allocations: 33.7 kB / 0.6618 GB, free: 11 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.742e-05/0.1838, allocations: 310.8 kB / 0.6621 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.36e-05/0.1838, allocations: 23.92 kB / 0.6622 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.364e-05/0.1838, allocations: 19.98 kB / 0.6622 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.516e-05/0.1839, allocations: 60.83 kB / 0.6622 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.184, allocations: 4 kB / 0.6622 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001375/0.1841, allocations: 97.5 kB / 0.6623 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1841, allocations: 7.938 kB / 0.6623 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1841, allocations: 3.984 kB / 0.6624 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.1842, allocations: 4 kB / 0.6624 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.1843, allocations: 15.98 kB / 0.6624 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.1843, allocations: 4 kB / 0.6624 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.466e-05/0.1843, allocations: 11.94 kB / 0.6624 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.1843, allocations: 4 kB / 0.6624 GB, free: 10.43 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.000143/0.1845, allocations: 121.8 kB / 0.6625 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/0.1845, allocations: 11.89 kB / 0.6625 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.1847, allocations: 120.3 kB / 0.6626 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.1847, allocations: 4 kB / 0.6626 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.1848, allocations: 0 / 0.6626 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1848, allocations: 0 / 0.6626 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/0.1849, allocations: 177.6 kB / 0.6628 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1849, allocations: 0 / 0.6628 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.177e-05/0.185, allocations: 23.92 kB / 0.6628 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.185, allocations: 7.938 kB / 0.6628 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.185, allocations: 8 kB / 0.6628 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.185, allocations: 0 / 0.6628 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.185, allocations: 0 / 0.6628 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000147/0.1852, allocations: 117 kB / 0.663 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.108e-05/0.1852, allocations: 92.94 kB / 0.663 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1852, allocations: 0 / 0.663 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.701e-05/0.1853, allocations: 4 kB / 0.663 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.1853, allocations: 11.98 kB / 0.6631 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.1853, allocations: 4 kB / 0.6631 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.674e-05/0.1853, allocations: 75.28 kB / 0.6631 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1853, allocations: 3.938 kB / 0.6631 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002045/0.1856, allocations: 16 kB / 0.6632 GB, free: 9.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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0004981/0.1861, allocations: 0.6739 MB / 0.6638 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000145/0.1862, allocations: 63.3 kB / 0.6639 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1862, allocations: 0 / 0.6639 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.24e-05/0.1863, allocations: 39.92 kB / 0.6639 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001359/0.1864, allocations: 6.344 kB / 0.6639 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003908/0.1868, allocations: 170.5 kB / 0.6641 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.1871, allocations: 0.6885 MB / 0.6648 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.469e-05/0.1872, allocations: 31.97 kB / 0.6648 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.921e-05/0.1872, allocations: 23.42 kB / 0.6648 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of SimCode: time 6.31e-07/0.1872, allocations: 0 / 0.6648 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01844/0.2056, allocations: 1.534 MB / 0.6663 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.3/7.506, allocations: 19.03 kB / 0.6663 GB, free: 6.32 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 IDEAS_IDEAS_Utilities_Math_Functions_Examples_FallingFactorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)