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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001955/0.001955, allocations: 102.9 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002287/0.002287, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 252.8 MB, free: 9.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002468/0.002468, allocations: 285.3 kB / 309.1 MB, free: 3.996 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.24/1.24, allocations: 180.9 MB / 0.5333 GB, free: 13.79 MB / 382.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002815/0.002815, allocations: 104.7 kB / 0.7343 GB, free: 28.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1838, allocations: 95.34 MB / 0.8274 GB, free: 9.867 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001783/0.1856, allocations: 0.5937 MB / 0.828 GB, free: 9.273 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002625/0.1858, allocations: 55.83 kB / 0.828 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.956e-05/0.1859, allocations: 0 / 0.828 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 3.262e-05/0.1859, allocations: 7.938 kB / 0.828 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 6.221e-06/0.1859, allocations: 0 / 0.828 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002701/0.1862, allocations: 11.98 kB / 0.828 GB, free: 9.199 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 9.09e-05/0.1863, allocations: 31.92 kB / 0.8281 GB, free: 9.168 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.119e-05/0.1863, allocations: 11.98 kB / 0.8281 GB, free: 9.156 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.821e-05/0.1863, allocations: 7.984 kB / 0.8281 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 2.727e-05/0.1863, allocations: 8 kB / 0.8281 GB, free: 9.141 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.1864, allocations: 4 kB / 0.8281 GB, free: 9.137 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 8.525e-05/0.1864, allocations: 19.97 kB / 0.8281 GB, free: 9.117 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.065e-05/0.1865, allocations: 15.92 kB / 0.8281 GB, free: 9.102 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.218e-05/0.1865, allocations: 11.88 kB / 0.8282 GB, free: 9.09 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 9.613e-05/0.1866, allocations: 36.11 kB / 0.8282 GB, free: 9.055 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1866, allocations: 4 kB / 0.8282 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1866, allocations: 0 / 0.8282 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.1866, allocations: 0 / 0.8282 GB, free: 9.051 MB / 0.5762 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.0003672/0.187, allocations: 343.4 kB / 0.8285 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.187, allocations: 8.031 kB / 0.8285 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.37e-05/0.1871, allocations: 38.75 kB / 0.8286 GB, free: 8.609 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.694e-05/0.1871, allocations: 4.891 kB / 0.8286 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.1872, allocations: 164.4 kB / 0.8287 GB, free: 8.406 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1872, allocations: 384 / 0.8287 GB, free: 8.406 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.1872, allocations: 4.375 kB / 0.8287 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.1874, allocations: 74.09 kB / 0.8288 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1874, allocations: 3.938 kB / 0.8288 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.1874, allocations: 4 kB / 0.8288 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.1874, allocations: 4 kB / 0.8288 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.1875, allocations: 99.86 kB / 0.8289 GB, free: 8.215 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001983/0.1877, allocations: 177.5 kB / 0.8291 GB, free: 7.992 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001313/0.1879, allocations: 70.88 kB / 0.8291 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.792e-05/0.1879, allocations: 28.84 kB / 0.8292 GB, free: 7.883 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003702/0.1883, allocations: 401.5 kB / 0.8296 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.1883, allocations: 42.5 kB / 0.8296 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.1883, allocations: 0 / 0.8296 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.000266/0.1886, allocations: 109.9 kB / 0.8297 GB, free: 7.234 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.1886, allocations: 51.41 kB / 0.8297 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.216e-05/0.1887, allocations: 109.7 kB / 0.8299 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.1887, allocations: 25.7 kB / 0.8299 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.933e-05/0.1888, allocations: 80.14 kB / 0.83 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.056e-05/0.1888, allocations: 19.86 kB / 0.83 GB, free: 6.922 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/0.1888, allocations: 37.7 kB / 0.83 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.189, allocations: 310.8 kB / 0.8303 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.286e-05/0.189, allocations: 19.98 kB / 0.8303 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.665e-05/0.1891, allocations: 19.98 kB / 0.8303 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.1892, allocations: 68.77 kB / 0.8304 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.1892, allocations: 0 / 0.8304 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001536/0.1893, allocations: 90.27 kB / 0.8305 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.1893, allocations: 7.938 kB / 0.8305 GB, free: 6.355 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1894, allocations: 3.984 kB / 0.8305 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.1894, allocations: 8 kB / 0.8305 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.974e-05/0.1895, allocations: 16 kB / 0.8305 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1895, allocations: 4 kB / 0.8305 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.115e-05/0.1895, allocations: 11.83 kB / 0.8305 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.1895, allocations: 7.984 kB / 0.8306 GB, free: 6.305 MB / 0.5762 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.0001353/0.1896, allocations: 121.2 kB / 0.8307 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.1897, allocations: 3.938 kB / 0.8307 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002301/0.1899, allocations: 137.5 kB / 0.8308 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1899, allocations: 8 kB / 0.8308 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1899, allocations: 0 / 0.8308 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1899, allocations: 0 / 0.8308 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.19, allocations: 165.7 kB / 0.831 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.19, allocations: 3.984 kB / 0.831 GB, free: 5.812 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.946e-05/0.1901, allocations: 23.94 kB / 0.831 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/0.1901, allocations: 7.922 kB / 0.831 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.886e-06/0.1901, allocations: 4 kB / 0.831 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1901, allocations: 3.984 kB / 0.831 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1901, allocations: 0 / 0.831 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001636/0.1903, allocations: 117.1 kB / 0.8311 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.456e-05/0.1903, allocations: 88.98 kB / 0.8312 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1904, allocations: 7.922 kB / 0.8312 GB, free: 5.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.638e-05/0.1904, allocations: 4 kB / 0.8312 GB, free: 5.523 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.126e-05/0.1904, allocations: 7.938 kB / 0.8312 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.1904, allocations: 11.92 kB / 0.8312 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.539e-05/0.1904, allocations: 75.28 kB / 0.8313 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1904, allocations: 4 kB / 0.8313 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000194/0.1906, allocations: 16 kB / 0.8313 GB, free: 5.41 MB / 0.5762 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.000534/0.1912, allocations: 0.6631 MB / 0.832 GB, free: 4.719 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001483/0.1913, allocations: 63.84 kB / 0.832 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1913, allocations: 4 kB / 0.832 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 5.853e-05/0.1914, allocations: 39.91 kB / 0.8321 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.1915, allocations: 6.25 kB / 0.8321 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003854/0.1919, allocations: 174.6 kB / 0.8323 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.1922, allocations: 0.6845 MB / 0.8329 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.982e-05/0.1923, allocations: 43.7 kB / 0.833 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.755e-05/0.1923, allocations: 23.44 kB / 0.833 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of SimCode: time 2.81e-07/0.1923, allocations: 0 / 0.833 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02987/0.2222, allocations: 1.586 MB / 0.8345 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.091/8.313, allocations: 14.05 kB / 0.8345 GB, free: 2.168 MB / 0.5762 GB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.550529776141047] Failed to read output from testmodel.py, exit status != 0: 8.377865446265787 8.393193323 8.2030699 Calling exit ...