Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001815/0.001815, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.002562/0.002562, allocations: 214.9 kB / 22.99 MB, free: 4.977 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.548/1.548, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9866/0.9866, allocations: 149.9 MB / 463 MB, free: 10.3 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002115/0.002115, allocations: 67.52 kB / 0.6411 GB, free: 10.09 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.183, allocations: 89.17 MB / 0.7282 GB, free: 0.9883 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.003297/0.1863, allocations: 1.532 MB / 0.7297 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0004147/0.1867, allocations: 127.7 kB / 0.7298 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.3e-05/0.1867, allocations: 0 / 0.7298 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.031e-05/0.1868, allocations: 3.938 kB / 0.7298 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.481e-05/0.1868, allocations: 3.938 kB / 0.7298 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003003/0.1871, allocations: 23.95 kB / 0.7298 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.133e-05/0.1872, allocations: 31.92 kB / 0.7298 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.1873, allocations: 4 kB / 0.7298 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.464e-05/0.1874, allocations: 15.92 kB / 0.7299 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.416e-05/0.1874, allocations: 19.91 kB / 0.7299 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.1875, allocations: 4 kB / 0.7299 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.105e-05/0.1875, allocations: 12 kB / 0.7299 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.047e-05/0.1876, allocations: 7.984 kB / 0.7299 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.201e-05/0.1876, allocations: 7.938 kB / 0.7299 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001925/0.1878, allocations: 40.11 kB / 0.7299 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1878, allocations: 0 / 0.7299 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.744e-06/0.1878, allocations: 3.938 kB / 0.73 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.1878, allocations: 0 / 0.73 GB, free: 15.14 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005444/0.1883, allocations: 274.3 kB / 0.7302 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.1884, allocations: 12.03 kB / 0.7302 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.392e-05/0.1884, allocations: 30.75 kB / 0.7303 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.164e-05/0.1885, allocations: 8.875 kB / 0.7303 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.1886, allocations: 110.5 kB / 0.7304 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.1886, allocations: 384 / 0.7304 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.1886, allocations: 4.375 kB / 0.7304 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.1888, allocations: 62.22 kB / 0.7304 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.1888, allocations: 3.938 kB / 0.7304 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.1888, allocations: 0 / 0.7304 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.1889, allocations: 4 kB / 0.7304 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001985/0.1891, allocations: 47.94 kB / 0.7305 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004183/0.1895, allocations: 232 kB / 0.7307 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.1898, allocations: 54.53 kB / 0.7308 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.393e-05/0.1899, allocations: 20.91 kB / 0.7308 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.95e-05/0.19, allocations: 11.98 kB / 0.7308 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.19, allocations: 30.56 kB / 0.7308 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.19, allocations: 0 / 0.7308 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003887/0.1904, allocations: 101.6 kB / 0.7309 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.1905, allocations: 51.41 kB / 0.731 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.424e-05/0.1905, allocations: 101.8 kB / 0.7311 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.1906, allocations: 25.7 kB / 0.7311 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.002e-05/0.1906, allocations: 96.06 kB / 0.7312 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.839e-05/0.1906, allocations: 3.953 kB / 0.7312 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.1907, allocations: 13.72 kB / 0.7312 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1908, allocations: 314.8 kB / 0.7315 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.439e-05/0.1909, allocations: 23.97 kB / 0.7315 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.877e-05/0.191, allocations: 19.98 kB / 0.7315 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.1912, allocations: 48.75 kB / 0.7316 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1912, allocations: 3.938 kB / 0.7316 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002416/0.1914, allocations: 73.66 kB / 0.7317 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1914, allocations: 4 kB / 0.7317 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1914, allocations: 0 / 0.7317 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.1915, allocations: 4 kB / 0.7317 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.114e-05/0.1915, allocations: 11.98 kB / 0.7317 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1915, allocations: 0 / 0.7317 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.72e-05/0.1916, allocations: 7.984 kB / 0.7317 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.1916, allocations: 0 / 0.7317 GB, free: 13.17 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: 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 0.0001063/0.1917, allocations: 113.8 kB / 0.7318 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.931e-05/0.1917, allocations: 7.953 kB / 0.7318 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.192, allocations: 97.14 kB / 0.7319 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.192, allocations: 0.5625 kB / 0.7319 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.192, allocations: 0 / 0.7319 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.192, allocations: 3.984 kB / 0.7319 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.1922, allocations: 132.7 kB / 0.732 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1922, allocations: 0 / 0.732 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.268e-05/0.1923, allocations: 8 kB / 0.732 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1923, allocations: 0 / 0.732 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.1923, allocations: 3.984 kB / 0.732 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1923, allocations: 4 kB / 0.732 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1923, allocations: 0 / 0.732 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002825/0.1926, allocations: 187.4 kB / 0.7322 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.802e-06/0.1926, allocations: 0 / 0.7322 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.1926, allocations: 3.984 kB / 0.7322 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.033e-05/0.1927, allocations: 4 kB / 0.7322 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.377e-05/0.1927, allocations: 7.984 kB / 0.7322 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.1927, allocations: 7.938 kB / 0.7322 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.391e-05/0.1928, allocations: 79.28 kB / 0.7323 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6e-08/0.1928, allocations: 0 / 0.7323 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002254/0.193, allocations: 8 kB / 0.7323 GB, free: 12.44 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: 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.0006475/0.1937, allocations: 0.7085 MB / 0.733 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002317/0.1939, allocations: 47.88 kB / 0.7331 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1939, allocations: 4 kB / 0.7331 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.449e-05/0.194, allocations: 19.98 kB / 0.7331 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003012/0.1943, allocations: 14.03 kB / 0.7331 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005102/0.1948, allocations: 143.1 kB / 0.7332 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.711e-05/0.1949, allocations: 63.34 kB / 0.7333 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.234e-05/0.1949, allocations: 4 kB / 0.7333 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.15e-05/0.1949, allocations: 11.44 kB / 0.7333 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.1949, allocations: 0 / 0.7333 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02947/0.2244, allocations: 2.129 MB / 0.7354 GB, free: 9.34 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.54, allocations: 10.66 kB / 0.7354 GB, free: 9.332 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.510633326135576] Failed to read output from testmodel.py, exit status != 0: 11.64294011099264 11.659120409 11.468313991 Calling exit ...