Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.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-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: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_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.001557/0.001557, allocations: 108 kB / 15.6 MB, free: 132 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.002004/0.002004, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.468/1.468, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.008/1.008, allocations: 135.1 MB / 425.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002377/0.002377, allocations: 67.55 kB / 0.5054 GB, free: 5.188 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1799, allocations: 80.93 MB / 0.5845 GB, free: 4.418 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.002857/0.1828, allocations: 1.521 MB / 0.586 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003786/0.1832, allocations: 130.1 kB / 0.5861 GB, free: 2.746 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.46e-05/0.1833, allocations: 0 / 0.5861 GB, free: 2.746 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.926e-05/0.1834, allocations: 3.938 kB / 0.5861 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.679e-05/0.1834, allocations: 3.938 kB / 0.5861 GB, free: 2.738 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.1837, allocations: 39.89 kB / 0.5861 GB, free: 2.699 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.399e-05/0.1838, allocations: 27.92 kB / 0.5862 GB, free: 2.672 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.506e-05/0.1839, allocations: 19.98 kB / 0.5862 GB, free: 2.652 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.349e-05/0.1839, allocations: 11.98 kB / 0.5862 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.238e-05/0.184, allocations: 27.91 kB / 0.5862 GB, free: 2.613 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.184, allocations: 3.938 kB / 0.5862 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.362e-05/0.1841, allocations: 23.92 kB / 0.5862 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.734e-05/0.1841, allocations: 4 kB / 0.5862 GB, free: 2.582 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.721e-05/0.1842, allocations: 11.94 kB / 0.5863 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.1843, allocations: 47.86 kB / 0.5863 GB, free: 2.523 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1843, allocations: 0 / 0.5863 GB, free: 2.523 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1843, allocations: 4 kB / 0.5863 GB, free: 2.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1843, allocations: 0 / 0.5863 GB, free: 2.52 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000458/0.1848, allocations: 355.6 kB / 0.5866 GB, free: 2.121 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1848, allocations: 8.031 kB / 0.5866 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.641e-05/0.1849, allocations: 34.73 kB / 0.5867 GB, free: 2.07 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/0.1849, allocations: 8.844 kB / 0.5867 GB, free: 2.062 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.185, allocations: 164.4 kB / 0.5868 GB, free: 1.863 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.1851, allocations: 4.375 kB / 0.5869 GB, free: 1.859 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.1851, allocations: 384 / 0.5869 GB, free: 1.859 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001971/0.1853, allocations: 70.22 kB / 0.5869 GB, free: 1.785 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1853, allocations: 7.875 kB / 0.5869 GB, free: 1.777 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.1853, allocations: 0 / 0.5869 GB, free: 1.777 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.1853, allocations: 3.938 kB / 0.5869 GB, free: 1.773 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.1855, allocations: 43.95 kB / 0.587 GB, free: 1.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003928/0.1859, allocations: 292.7 kB / 0.5873 GB, free: 1.395 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.1863, allocations: 62.47 kB / 0.5873 GB, free: 1.324 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.947e-05/0.1864, allocations: 24.91 kB / 0.5873 GB, free: 1.297 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002747/0.1867, allocations: 397.5 kB / 0.5877 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.1867, allocations: 34.56 kB / 0.5877 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.342e-06/0.1867, allocations: 4 kB / 0.5877 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003922/0.1871, allocations: 93.62 kB / 0.5878 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/0.1871, allocations: 51.41 kB / 0.5879 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.153e-05/0.1872, allocations: 105.8 kB / 0.588 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.1872, allocations: 37.64 kB / 0.588 GB, free: 464 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.489e-05/0.1873, allocations: 84.05 kB / 0.5881 GB, free: 376 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.1873, allocations: 7.906 kB / 0.5881 GB, free: 368 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.385e-05/0.1873, allocations: 17.72 kB / 0.5881 GB, free: 344 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.138e-05/0.1874, allocations: 326.8 kB / 0.5884 GB, free: 8 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.1876, allocations: 12.03 kB / 0.5885 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.061e-05/0.1877, allocations: 24.11 kB / 0.5885 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.1878, allocations: 52.91 kB / 0.5885 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1878, allocations: 0 / 0.5885 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002194/0.1881, allocations: 73.64 kB / 0.5886 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1881, allocations: 10.5 kB / 0.5886 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1881, allocations: 3.938 kB / 0.5886 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.1881, allocations: 0 / 0.5886 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.559e-05/0.1882, allocations: 15.92 kB / 0.5886 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.1882, allocations: 0 / 0.5886 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.002e-05/0.1883, allocations: 8 kB / 0.5886 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.1883, allocations: 3.984 kB / 0.5886 GB, free: 15.8 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 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.708e-05/0.1884, allocations: 113.8 kB / 0.5887 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.806e-05/0.1884, allocations: 3.906 kB / 0.5887 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002674/0.1887, allocations: 85.55 kB / 0.5888 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1887, allocations: 0 / 0.5888 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1887, allocations: 0 / 0.5888 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1887, allocations: 4 kB / 0.5888 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001998/0.1889, allocations: 169.6 kB / 0.589 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.189, allocations: 0 / 0.589 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.1891, allocations: 15.92 kB / 0.589 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.1891, allocations: 0 / 0.589 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.1891, allocations: 0 / 0.589 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1891, allocations: 4 kB / 0.589 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1891, allocations: 0 / 0.589 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000282/0.1894, allocations: 175.4 kB / 0.5892 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.418e-05/0.1895, allocations: 81.05 kB / 0.5893 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.1895, allocations: 0 / 0.5893 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.019e-05/0.1896, allocations: 11.98 kB / 0.5893 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.788e-05/0.1896, allocations: 11.98 kB / 0.5893 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.1897, allocations: 0 / 0.5893 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.731e-05/0.1897, allocations: 91.58 kB / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1897, allocations: 0 / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002395/0.19, allocations: 19.84 kB / 0.5894 GB, free: 14.93 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 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006005/0.1906, allocations: 0.7124 MB / 0.5901 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002563/0.1908, allocations: 60.12 kB / 0.5901 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1908, allocations: 0 / 0.5901 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.191, allocations: 31.91 kB / 0.5902 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.1913, allocations: 0 / 0.5902 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.1928, allocations: 1.295 MB / 0.5914 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.1931, allocations: 0.6807 MB / 0.5921 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.543e-05/0.1931, allocations: 4 kB / 0.5921 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.1932, allocations: 11.44 kB / 0.5921 GB, free: 12 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/0.1932, allocations: 0 / 0.5921 GB, free: 12 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01871/0.2119, allocations: 1.661 MB / 0.5937 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.272/7.483, allocations: 10.03 kB / 0.5937 GB, free: 10.41 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)