Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.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.001646/0.001646, allocations: 104.3 kB / 19.69 MB, free: 1.945 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.002079/0.002079, allocations: 216.4 kB / 23 MB, free: 4.969 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.525/1.525, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.9615/0.9615, allocations: 149.9 MB / 463 MB, free: 10.42 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.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_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.002452/0.002452, allocations: 63.34 kB / 0.6411 GB, free: 10.19 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.185, allocations: 89.18 MB / 0.7282 GB, free: 1.074 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001973/0.187, allocations: 0.5863 MB / 0.7288 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002956/0.1873, allocations: 39.88 kB / 0.7288 GB, free: 464 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.837e-05/0.1873, allocations: 0 / 0.7288 GB, free: 464 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.293e-05/0.1873, allocations: 0 / 0.7288 GB, free: 464 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.042e-06/0.1874, allocations: 3.938 kB / 0.7288 GB, free: 460 kB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002559/0.1876, allocations: 15.98 kB / 0.7288 GB, free: 444 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 4.585e-05/0.1877, allocations: 7.984 kB / 0.7288 GB, free: 436 kB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.279e-05/0.1877, allocations: 4 kB / 0.7288 GB, free: 432 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.788e-05/0.1877, allocations: 7.938 kB / 0.7288 GB, free: 424 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 2.102e-05/0.1877, allocations: 0 / 0.7288 GB, free: 424 kB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.408e-06/0.1877, allocations: 0 / 0.7288 GB, free: 424 kB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 7.913e-05/0.1878, allocations: 11.98 kB / 0.7289 GB, free: 412 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.426e-06/0.1878, allocations: 0 / 0.7289 GB, free: 412 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 1.597e-05/0.1879, allocations: 0 / 0.7289 GB, free: 412 kB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 8.965e-05/0.1879, allocations: 15.97 kB / 0.7289 GB, free: 396 kB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1879, allocations: 4 kB / 0.7289 GB, free: 392 kB / 0.545 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1879, allocations: 0 / 0.7289 GB, free: 392 kB / 0.545 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.188, allocations: 0 / 0.7289 GB, free: 392 kB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003181/0.1883, allocations: 238.7 kB / 0.7291 GB, free: 120 kB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.1883, allocations: 15.95 kB / 0.7291 GB, free: 104 kB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.891e-05/0.1884, allocations: 42.69 kB / 0.7292 GB, free: 52 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.097e-05/0.1884, allocations: 0.9375 kB / 0.7292 GB, free: 52 kB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.1885, allocations: 102.5 kB / 0.7293 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.1885, allocations: 384 / 0.7293 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-06/0.1885, allocations: 384 / 0.7293 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.622e-05/0.1886, allocations: 30.27 kB / 0.7293 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.1886, allocations: 3.938 kB / 0.7293 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-06/0.1886, allocations: 0 / 0.7293 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1886, allocations: 7.984 kB / 0.7293 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.169e-05/0.1886, allocations: 4 kB / 0.7293 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.1888, allocations: 120.8 kB / 0.7294 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.952e-05/0.1889, allocations: 26.55 kB / 0.7294 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.914e-05/0.1889, allocations: 16.91 kB / 0.7295 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001266/0.189, allocations: 4 kB / 0.7295 GB, free: 15.66 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/0.189, allocations: 30.56 kB / 0.7295 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.189, allocations: 0 / 0.7295 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001551/0.1892, allocations: 49.56 kB / 0.7295 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.1893, allocations: 59.34 kB / 0.7296 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.571e-05/0.1893, allocations: 93.98 kB / 0.7297 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.1893, allocations: 25.7 kB / 0.7297 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.613e-05/0.1894, allocations: 80.14 kB / 0.7298 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.1894, allocations: 3.953 kB / 0.7298 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-05/0.1894, allocations: 17.72 kB / 0.7298 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1896, allocations: 310.8 kB / 0.7301 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.815e-05/0.1896, allocations: 7.984 kB / 0.7301 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.434e-06/0.1896, allocations: 0 / 0.7301 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.67e-05/0.1897, allocations: 12.86 kB / 0.7301 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1897, allocations: 0 / 0.7301 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.397e-05/0.1897, allocations: 45.7 kB / 0.7302 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.1898, allocations: 6.188 kB / 0.7302 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1898, allocations: 7.922 kB / 0.7302 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.1898, allocations: 0 / 0.7302 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.252e-05/0.1898, allocations: 4 kB / 0.7302 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.1898, allocations: 0 / 0.7302 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.522e-05/0.1899, allocations: 4 kB / 0.7302 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-06/0.1899, allocations: 3.938 kB / 0.7302 GB, free: 14.84 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.785e-05/0.1899, allocations: 109.8 kB / 0.7303 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.963e-06/0.1899, allocations: 4.031 kB / 0.7303 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.1901, allocations: 48.78 kB / 0.7303 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1901, allocations: 0 / 0.7303 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1901, allocations: 0 / 0.7303 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.1901, allocations: 0 / 0.7303 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001058/0.1902, allocations: 120.8 kB / 0.7305 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1902, allocations: 0 / 0.7305 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.463e-05/0.1902, allocations: 7.938 kB / 0.7305 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1902, allocations: 0 / 0.7305 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.1902, allocations: 3.938 kB / 0.7305 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1902, allocations: 0 / 0.7305 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1902, allocations: 4.031 kB / 0.7305 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.432e-05/0.1903, allocations: 65.12 kB / 0.7305 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.147e-05/0.1903, allocations: 11.94 kB / 0.7306 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.1903, allocations: 3.938 kB / 0.7306 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.059e-05/0.1904, allocations: 0 / 0.7306 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.1904, allocations: 8 kB / 0.7306 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.1904, allocations: 0 / 0.7306 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.316e-05/0.1904, allocations: 75.28 kB / 0.7306 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.1904, allocations: 0 / 0.7306 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001892/0.1906, allocations: 7.984 kB / 0.7306 GB, free: 14.3 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004586/0.1911, allocations: 0.6123 MB / 0.7312 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.797e-05/0.1911, allocations: 8 kB / 0.7312 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1912, allocations: 4 kB / 0.7313 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.686e-05/0.1912, allocations: 7.938 kB / 0.7313 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000122/0.1913, allocations: 0 / 0.7313 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000328/0.1916, allocations: 110.6 kB / 0.7314 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.703e-05/0.1917, allocations: 55.36 kB / 0.7314 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.683e-05/0.1917, allocations: 12.14 kB / 0.7314 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.288e-05/0.1917, allocations: 11.38 kB / 0.7314 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of SimCode: time 4.1e-07/0.1917, allocations: 0 / 0.7314 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.2205, allocations: 1.562 MB / 0.733 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.67, allocations: 4 kB / 0.733 GB, free: 11.96 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.56188012426719] Failed to read output from testmodel.py, exit status != 0: 11.780353986192495 11.796065433 11.604810144 Calling exit ...