Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.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.001272/0.001272, allocations: 109.9 kB / 16.46 MB, free: 6.508 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.001475/0.001475, allocations: 216.2 kB / 19.43 MB, free: 3.648 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.397/1.397, allocations: 230.6 MB / 252.8 MB, free: 9.117 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.002456/0.002456, allocations: 281.2 kB / 309.1 MB, free: 4.004 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.289/1.289, allocations: 180.9 MB / 0.5333 GB, free: 13.77 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.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",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.002853/0.002853, allocations: 102.4 kB / 0.7343 GB, free: 28.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1802, allocations: 95.34 MB / 0.8274 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002889/0.1831, allocations: 1.533 MB / 0.8289 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003845/0.1834, allocations: 136.4 kB / 0.829 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.822e-05/0.1835, allocations: 0 / 0.829 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 3.21e-05/0.1835, allocations: 3.938 kB / 0.829 GB, free: 8.188 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.839e-05/0.1835, allocations: 0 / 0.829 GB, free: 8.188 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002356/0.1838, allocations: 27.91 kB / 0.829 GB, free: 8.16 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.123e-05/0.1839, allocations: 31.91 kB / 0.8291 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.228e-05/0.184, allocations: 4 kB / 0.8291 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.569e-05/0.184, allocations: 19.92 kB / 0.8291 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.275e-05/0.184, allocations: 11.98 kB / 0.8291 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.1841, allocations: 4 kB / 0.8291 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 5.474e-05/0.1841, allocations: 12 kB / 0.8291 GB, free: 8.078 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 2.321e-05/0.1841, allocations: 19.92 kB / 0.8291 GB, free: 8.059 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.477e-05/0.1842, allocations: 11.92 kB / 0.8291 GB, free: 8.047 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.1843, allocations: 32.12 kB / 0.8292 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1843, allocations: 4 kB / 0.8292 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.062e-06/0.1843, allocations: 0 / 0.8292 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.1843, allocations: 0 / 0.8292 GB, free: 8.012 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004947/0.1848, allocations: 343.4 kB / 0.8295 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.1848, allocations: 8.031 kB / 0.8295 GB, free: 7.617 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.405e-05/0.1849, allocations: 30.75 kB / 0.8295 GB, free: 7.578 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.842e-05/0.1849, allocations: 12.89 kB / 0.8295 GB, free: 7.566 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.185, allocations: 164.3 kB / 0.8297 GB, free: 7.367 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.185, allocations: 4.375 kB / 0.8297 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.185, allocations: 4.375 kB / 0.8297 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.1852, allocations: 58.22 kB / 0.8298 GB, free: 7.297 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.1852, allocations: 3.938 kB / 0.8298 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.1853, allocations: 0 / 0.8298 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.1853, allocations: 0 / 0.8298 GB, free: 7.293 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.1855, allocations: 43.95 kB / 0.8298 GB, free: 7.25 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000394/0.1859, allocations: 272.8 kB / 0.8301 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.1862, allocations: 54.48 kB / 0.8301 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.1863, allocations: 30.56 kB / 0.8302 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.1864, allocations: 85.11 kB / 0.8302 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.1864, allocations: 34.56 kB / 0.8303 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1864, allocations: 0 / 0.8303 GB, free: 6.695 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0003935/0.1868, allocations: 97.56 kB / 0.8304 GB, free: 6.594 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.1869, allocations: 51.41 kB / 0.8304 GB, free: 6.531 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.836e-05/0.1869, allocations: 109.8 kB / 0.8305 GB, free: 6.414 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.187, allocations: 25.7 kB / 0.8305 GB, free: 6.383 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.187, allocations: 88.02 kB / 0.8306 GB, free: 6.293 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.187, allocations: 3.953 kB / 0.8306 GB, free: 6.289 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.1871, allocations: 17.72 kB / 0.8306 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002034/0.1873, allocations: 318.8 kB / 0.8309 GB, free: 5.945 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.655e-05/0.1874, allocations: 15.98 kB / 0.831 GB, free: 5.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.717e-05/0.1875, allocations: 27.97 kB / 0.831 GB, free: 5.902 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.1876, allocations: 41.23 kB / 0.831 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1876, allocations: 0 / 0.831 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002338/0.1879, allocations: 89.52 kB / 0.8311 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.1879, allocations: 5.406 kB / 0.8311 GB, free: 5.762 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1879, allocations: 0 / 0.8311 GB, free: 5.762 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.1879, allocations: 4 kB / 0.8311 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.969e-05/0.188, allocations: 11.98 kB / 0.8311 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.188, allocations: 4 kB / 0.8311 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.435e-05/0.188, allocations: 4 kB / 0.8311 GB, free: 5.738 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.188, allocations: 0 / 0.8311 GB, free: 5.738 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: 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 8.503e-05/0.1881, allocations: 122.4 kB / 0.8313 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.592e-05/0.1881, allocations: 4 kB / 0.8313 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000269/0.1884, allocations: 85.08 kB / 0.8313 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1884, allocations: 0 / 0.8313 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1884, allocations: 0 / 0.8313 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.1884, allocations: 0 / 0.8313 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001993/0.1886, allocations: 169.6 kB / 0.8315 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1886, allocations: 0 / 0.8315 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.951e-05/0.1887, allocations: 11.98 kB / 0.8315 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1887, allocations: 0 / 0.8315 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.1887, allocations: 0 / 0.8315 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1887, allocations: 4 kB / 0.8315 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1887, allocations: 4 kB / 0.8315 GB, free: 5.281 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.189, allocations: 167.4 kB / 0.8317 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.249e-05/0.189, allocations: 85.09 kB / 0.8318 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.1891, allocations: 0 / 0.8318 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.423e-05/0.1891, allocations: 4 kB / 0.8318 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.1892, allocations: 15.92 kB / 0.8318 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-06/0.1892, allocations: 4 kB / 0.8318 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.153e-05/0.1892, allocations: 83.22 kB / 0.8319 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1892, allocations: 0 / 0.8319 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002198/0.1895, allocations: 8 kB / 0.8319 GB, free: 4.887 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: 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.0006447/0.1901, allocations: 0.7124 MB / 0.8326 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002788/0.1904, allocations: 48.22 kB / 0.8326 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1904, allocations: 3.938 kB / 0.8326 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.1905, allocations: 23.98 kB / 0.8326 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.1908, allocations: 192 / 0.8326 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004544/0.1912, allocations: 147.2 kB / 0.8328 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.1915, allocations: 0.6846 MB / 0.8335 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.521e-05/0.1915, allocations: 0 / 0.8335 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.956e-05/0.1916, allocations: 15.44 kB / 0.8335 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/0.1916, allocations: 0 / 0.8335 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.2163, allocations: 1.604 MB / 0.835 GB, free: 1.648 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.059/8.276, allocations: 15.36 kB / 0.835 GB, free: 1.641 MB / 0.5762 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.488453009165823] Failed to read output from testmodel.py, exit status != 0: 8.345223270356655 8.372260531 8.183164334 Calling exit ...