Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_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.004593/0.004593, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.001096/0.001096, allocations: 193.9 kB / 16.68 MB, free: 5.969 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: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002179/0.002179, allocations: 290.6 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.027/1.027, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 104.1 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1823, allocations: 86.97 MB / 0.7659 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001933/0.1843, allocations: 0.5826 MB / 0.7665 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003074/0.1846, allocations: 63.77 kB / 0.7666 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.384e-05/0.1847, allocations: 4 kB / 0.7666 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.619e-05/0.1847, allocations: 0 / 0.7666 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.903e-06/0.1848, allocations: 0 / 0.7666 GB, free: 8.258 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003161/0.1851, allocations: 15.92 kB / 0.7666 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.1852, allocations: 31.97 kB / 0.7666 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.401e-05/0.1853, allocations: 7.984 kB / 0.7666 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.344e-05/0.1853, allocations: 7.938 kB / 0.7666 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.363e-05/0.1853, allocations: 19.92 kB / 0.7667 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.1853, allocations: 0 / 0.7667 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.441e-05/0.1854, allocations: 19.97 kB / 0.7667 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.511e-05/0.1855, allocations: 12 kB / 0.7667 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.586e-05/0.1855, allocations: 11.94 kB / 0.7667 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.1857, allocations: 36.11 kB / 0.7667 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1857, allocations: 3.984 kB / 0.7667 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1857, allocations: 0 / 0.7667 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.1857, allocations: 0 / 0.7667 GB, free: 8.094 MB / 0.5606 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.0003605/0.1861, allocations: 343.3 kB / 0.7671 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.1861, allocations: 8.031 kB / 0.7671 GB, free: 7.699 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.065e-05/0.1862, allocations: 34.75 kB / 0.7671 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.052e-05/0.1862, allocations: 4.938 kB / 0.7671 GB, free: 7.652 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.1863, allocations: 172.4 kB / 0.7673 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.1864, allocations: 4.312 kB / 0.7673 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.1864, allocations: 4.375 kB / 0.7673 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.1865, allocations: 58.23 kB / 0.7673 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1866, allocations: 3.938 kB / 0.7673 GB, free: 7.371 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.1866, allocations: 4 kB / 0.7674 GB, free: 7.367 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.1866, allocations: 4 kB / 0.7674 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.1868, allocations: 103.9 kB / 0.7675 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002139/0.187, allocations: 173.6 kB / 0.7676 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.1871, allocations: 78.48 kB / 0.7677 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.996e-05/0.1872, allocations: 25.17 kB / 0.7677 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004375/0.1876, allocations: 413.4 kB / 0.7681 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.1877, allocations: 34.56 kB / 0.7681 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.1877, allocations: 0 / 0.7681 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0002916/0.188, allocations: 113.6 kB / 0.7683 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.188, allocations: 55.41 kB / 0.7683 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.684e-05/0.1881, allocations: 93.86 kB / 0.7684 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.1881, allocations: 29.7 kB / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.065e-05/0.1881, allocations: 88.08 kB / 0.7685 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.1882, allocations: 19.8 kB / 0.7685 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.088e-05/0.1882, allocations: 29.7 kB / 0.7686 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1884, allocations: 326.8 kB / 0.7689 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.934e-05/0.1884, allocations: 19.98 kB / 0.7689 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.639e-05/0.1884, allocations: 24.36 kB / 0.7689 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.944e-05/0.1885, allocations: 56.84 kB / 0.769 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1886, allocations: 3.938 kB / 0.769 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001458/0.1887, allocations: 101.5 kB / 0.7691 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1887, allocations: 7.938 kB / 0.7691 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.1887, allocations: 0 / 0.7691 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.1888, allocations: 0 / 0.7691 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.1889, allocations: 27.92 kB / 0.7691 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.1889, allocations: 0 / 0.7691 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.649e-05/0.1889, allocations: 7.938 kB / 0.7691 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.1889, allocations: 0 / 0.7691 GB, free: 5.344 MB / 0.5606 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.000182/0.1891, allocations: 133.4 kB / 0.7692 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.1892, allocations: 11.89 kB / 0.7692 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00022/0.1894, allocations: 117.5 kB / 0.7694 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1894, allocations: 0 / 0.7694 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1894, allocations: 0 / 0.7694 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.1894, allocations: 4 kB / 0.7694 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.1896, allocations: 177.6 kB / 0.7695 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.1896, allocations: 3.938 kB / 0.7695 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.232e-05/0.1897, allocations: 23.98 kB / 0.7696 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.1897, allocations: 3.938 kB / 0.7696 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.1897, allocations: 0 / 0.7696 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.1897, allocations: 4 kB / 0.7696 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1897, allocations: 0 / 0.7696 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001643/0.1899, allocations: 117 kB / 0.7697 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.235e-05/0.1899, allocations: 88.94 kB / 0.7698 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.1899, allocations: 8 kB / 0.7698 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.549e-05/0.19, allocations: 4 kB / 0.7698 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.19, allocations: 7.984 kB / 0.7698 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.19, allocations: 8 kB / 0.7698 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.476e-05/0.1901, allocations: 75.28 kB / 0.7699 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1901, allocations: 0 / 0.7699 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002086/0.1903, allocations: 12 kB / 0.7699 GB, free: 4.461 MB / 0.5606 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.0005565/0.1908, allocations: 0.6714 MB / 0.7705 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001623/0.191, allocations: 67.94 kB / 0.7706 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.191, allocations: 0 / 0.7706 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.299e-05/0.1911, allocations: 35.92 kB / 0.7706 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.1912, allocations: 8 kB / 0.7706 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004519/0.1917, allocations: 174.5 kB / 0.7708 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.192, allocations: 0.6885 MB / 0.7715 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.872e-05/0.1921, allocations: 39.86 kB / 0.7715 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.1921, allocations: 23.42 kB / 0.7715 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of SimCode: time 2.61e-07/0.1921, allocations: 0 / 0.7715 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.2096, allocations: 1.587 MB / 0.7731 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.399/7.609, allocations: 9 kB / 0.7731 GB, free: 1.215 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)