Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.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-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.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_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.00159/0.00159, allocations: 108 kB / 15.61 MB, free: 152 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.001716/0.001717, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.028/1.028, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 60.47 kB / 0.5054 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.1784, allocations: 80.93 MB / 0.5845 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003293/0.1817, allocations: 1.502 MB / 0.5859 GB, free: 2.945 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004075/0.1822, allocations: 122.1 kB / 0.5861 GB, free: 2.824 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.905e-05/0.1822, allocations: 0 / 0.5861 GB, free: 2.824 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.239e-05/0.1823, allocations: 3.938 kB / 0.5861 GB, free: 2.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.089e-05/0.1823, allocations: 0 / 0.5861 GB, free: 2.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002493/0.1826, allocations: 27.91 kB / 0.5861 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.692e-05/0.1827, allocations: 39.86 kB / 0.5861 GB, free: 2.754 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.1828, allocations: 11.92 kB / 0.5861 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.296e-05/0.1829, allocations: 11.98 kB / 0.5861 GB, free: 2.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.845e-05/0.1829, allocations: 15.92 kB / 0.5862 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.1829, allocations: 4 kB / 0.5862 GB, free: 2.711 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.899e-05/0.183, allocations: 12 kB / 0.5862 GB, free: 2.699 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.453e-05/0.183, allocations: 4 kB / 0.5862 GB, free: 2.695 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.291e-05/0.1831, allocations: 19.91 kB / 0.5862 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.1832, allocations: 27.91 kB / 0.5862 GB, free: 2.648 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1832, allocations: 4 kB / 0.5862 GB, free: 2.645 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1832, allocations: 0 / 0.5862 GB, free: 2.645 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1832, allocations: 0 / 0.5862 GB, free: 2.645 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005374/0.1838, allocations: 347.7 kB / 0.5866 GB, free: 2.254 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.1838, allocations: 8.031 kB / 0.5866 GB, free: 2.246 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.625e-05/0.1839, allocations: 34.75 kB / 0.5866 GB, free: 2.203 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.599e-05/0.1839, allocations: 0.9375 kB / 0.5866 GB, free: 2.203 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.1841, allocations: 172.2 kB / 0.5868 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.1841, allocations: 8.375 kB / 0.5868 GB, free: 1.988 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.1841, allocations: 4.312 kB / 0.5868 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000212/0.1843, allocations: 58.22 kB / 0.5868 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1843, allocations: 3.938 kB / 0.5868 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.1844, allocations: 4 kB / 0.5868 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1844, allocations: 0 / 0.5868 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.1846, allocations: 39.95 kB / 0.5869 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004454/0.185, allocations: 264.9 kB / 0.5871 GB, free: 1.566 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003541/0.1854, allocations: 62.47 kB / 0.5872 GB, free: 1.496 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.1855, allocations: 28.89 kB / 0.5872 GB, free: 1.465 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001234/0.1857, allocations: 85.09 kB / 0.5873 GB, free: 1.363 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.1857, allocations: 34.56 kB / 0.5873 GB, free: 1.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.303e-06/0.1857, allocations: 0 / 0.5873 GB, free: 1.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004104/0.1861, allocations: 93.62 kB / 0.5874 GB, free: 1.223 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.1862, allocations: 55.34 kB / 0.5875 GB, free: 1.156 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.902e-05/0.1862, allocations: 97.86 kB / 0.5876 GB, free: 1.051 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.1863, allocations: 29.7 kB / 0.5876 GB, free: 1.016 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.518e-05/0.1863, allocations: 92.03 kB / 0.5877 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.1864, allocations: 11.84 kB / 0.5877 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/0.1864, allocations: 13.72 kB / 0.5877 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.1865, allocations: 314.8 kB / 0.588 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-05/0.1866, allocations: 19.98 kB / 0.588 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.438e-05/0.1867, allocations: 19.98 kB / 0.588 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001771/0.1869, allocations: 52.75 kB / 0.5881 GB, free: 492 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1869, allocations: 0 / 0.5881 GB, free: 492 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002196/0.1871, allocations: 73.59 kB / 0.5882 GB, free: 412 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1872, allocations: 7.938 kB / 0.5882 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.1872, allocations: 3.984 kB / 0.5882 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1872, allocations: 0 / 0.5882 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.105e-05/0.1873, allocations: 8 kB / 0.5882 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.1873, allocations: 7.984 kB / 0.5882 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.233e-05/0.1874, allocations: 8 kB / 0.5882 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.1874, allocations: 4 kB / 0.5882 GB, free: 372 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (rea2Int.y,fac.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.984e-05/0.1875, allocations: 113.7 kB / 0.5883 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.1875, allocations: 7.984 kB / 0.5883 GB, free: 240 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002776/0.1878, allocations: 81.14 kB / 0.5884 GB, free: 152 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1878, allocations: 4 kB / 0.5884 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1878, allocations: 7.938 kB / 0.5884 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1878, allocations: 0 / 0.5884 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.188, allocations: 161.6 kB / 0.5886 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.188, allocations: 3.984 kB / 0.5886 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.563e-05/0.1881, allocations: 8 kB / 0.5886 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1881, allocations: 0 / 0.5886 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.1881, allocations: 3.984 kB / 0.5886 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1881, allocations: 0 / 0.5886 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1881, allocations: 0 / 0.5886 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002589/0.1884, allocations: 175.9 kB / 0.5887 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.66e-05/0.1884, allocations: 77.16 kB / 0.5888 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.832e-05/0.1884, allocations: 15.97 kB / 0.5888 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.526e-05/0.1885, allocations: 4 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.763e-05/0.1886, allocations: 3.984 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.1886, allocations: 4 kB / 0.5889 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.71e-05/0.1886, allocations: 83.28 kB / 0.5889 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1887, allocations: 3.938 kB / 0.5889 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002271/0.1889, allocations: 8 kB / 0.5889 GB, free: 15.51 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.y,rea2Int.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.0005424/0.1894, allocations: 0.7085 MB / 0.5896 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002405/0.1897, allocations: 47.95 kB / 0.5897 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1897, allocations: 3.938 kB / 0.5897 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.1898, allocations: 23.97 kB / 0.5897 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.1901, allocations: 10.19 kB / 0.5897 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004947/0.1906, allocations: 151 kB / 0.5899 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.1909, allocations: 0.6768 MB / 0.5905 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.521e-05/0.1909, allocations: 4 kB / 0.5905 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.221e-05/0.191, allocations: 19.31 kB / 0.5905 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.191, allocations: 4 kB / 0.5905 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.2103, allocations: 1.544 MB / 0.5921 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.317/7.528, allocations: 15.56 kB / 0.5921 GB, free: 12.29 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)