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.001628/0.001628, allocations: 115.1 kB / 19.7 MB, free: 2.203 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.002194/0.002194, allocations: 219.2 kB / 23 MB, free: 5.074 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.514/1.514, allocations: 230.6 MB / 256.8 MB, free: 8.102 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.982/0.982, allocations: 150 MB / 463.2 MB, free: 10.57 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.002004/0.002004, allocations: 67.08 kB / 0.6413 GB, free: 10.7 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1745, allocations: 89.17 MB / 0.7283 GB, free: 1.598 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.003246/0.1777, allocations: 1.544 MB / 0.7299 GB, free: 44 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0004312/0.1782, allocations: 139.5 kB / 0.73 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.005e-05/0.1782, allocations: 0 / 0.73 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.1782, allocations: 0 / 0.73 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.033e-05/0.1783, allocations: 7.938 kB / 0.73 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.1785, allocations: 23.92 kB / 0.73 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.031e-05/0.1786, allocations: 23.98 kB / 0.73 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.1787, allocations: 11.98 kB / 0.7301 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.26e-05/0.1788, allocations: 19.92 kB / 0.7301 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.466e-05/0.1788, allocations: 11.98 kB / 0.7301 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.1789, allocations: 4 kB / 0.7301 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.1789, allocations: 11.98 kB / 0.7301 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.576e-05/0.1789, allocations: 11.94 kB / 0.7301 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.09e-05/0.179, allocations: 7.938 kB / 0.7301 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.1791, allocations: 51.75 kB / 0.7302 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1791, allocations: 0 / 0.7302 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.044e-06/0.1791, allocations: 0 / 0.7302 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.1791, allocations: 0 / 0.7302 GB, free: 15.72 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.0005014/0.1796, allocations: 262.3 kB / 0.7304 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.1797, allocations: 8.031 kB / 0.7304 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.462e-05/0.1797, allocations: 30.75 kB / 0.7305 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.411e-05/0.1797, allocations: 4.938 kB / 0.7305 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001134/0.1799, allocations: 122.4 kB / 0.7306 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.1799, allocations: 8.312 kB / 0.7306 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-06/0.1799, allocations: 384 / 0.7306 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.1801, allocations: 58.23 kB / 0.7306 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.1801, allocations: 3.938 kB / 0.7306 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.1801, allocations: 3.984 kB / 0.7306 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.1801, allocations: 3.938 kB / 0.7306 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.1803, allocations: 39.95 kB / 0.7307 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.1807, allocations: 240 kB / 0.7309 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003275/0.181, allocations: 50.55 kB / 0.731 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.1811, allocations: 28.89 kB / 0.731 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.12e-05/0.1812, allocations: 7.938 kB / 0.731 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/0.1813, allocations: 38.56 kB / 0.731 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 9.91e-07/0.1813, allocations: 0 / 0.731 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003854/0.1816, allocations: 89.62 kB / 0.7311 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/0.1817, allocations: 51.41 kB / 0.7312 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.124e-05/0.1818, allocations: 105.8 kB / 0.7313 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.1818, allocations: 25.7 kB / 0.7313 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.644e-05/0.1819, allocations: 92.12 kB / 0.7314 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.1819, allocations: 7.953 kB / 0.7314 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.901e-05/0.1819, allocations: 17.66 kB / 0.7314 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000178/0.1821, allocations: 318.8 kB / 0.7317 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.1822, allocations: 19.92 kB / 0.7317 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.918e-05/0.1823, allocations: 23.97 kB / 0.7318 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.1825, allocations: 48.77 kB / 0.7318 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1825, allocations: 0 / 0.7318 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002323/0.1827, allocations: 77.64 kB / 0.7319 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.1827, allocations: 4 kB / 0.7319 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-06/0.1827, allocations: 0 / 0.7319 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1827, allocations: 0 / 0.7319 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.947e-05/0.1828, allocations: 15.98 kB / 0.7319 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.1828, allocations: 0 / 0.7319 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.581e-05/0.1829, allocations: 8 kB / 0.7319 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.1829, allocations: 3.938 kB / 0.7319 GB, free: 13.74 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 9.101e-05/0.183, allocations: 119.7 kB / 0.732 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.67e-05/0.183, allocations: 3.953 kB / 0.732 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002961/0.1833, allocations: 85.84 kB / 0.7321 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1833, allocations: 0 / 0.7321 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.1833, allocations: 4 kB / 0.7321 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1833, allocations: 48 / 0.7321 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.1835, allocations: 140.7 kB / 0.7322 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1835, allocations: 0 / 0.7322 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.042e-05/0.1836, allocations: 11.98 kB / 0.7323 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1836, allocations: 3.938 kB / 0.7323 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.1836, allocations: 0 / 0.7323 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1836, allocations: 0 / 0.7323 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.1836, allocations: 3.938 kB / 0.7323 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003522/0.184, allocations: 175.5 kB / 0.7324 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.362e-05/0.184, allocations: 11.92 kB / 0.7324 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.184, allocations: 0 / 0.7324 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.379e-05/0.1841, allocations: 4 kB / 0.7324 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.1841, allocations: 3.984 kB / 0.7324 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.1841, allocations: 8 kB / 0.7325 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.788e-05/0.1842, allocations: 79.27 kB / 0.7325 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1842, allocations: 4 kB / 0.7325 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002287/0.1844, allocations: 11.94 kB / 0.7325 GB, free: 13.01 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.0007902/0.1852, allocations: 0.7123 MB / 0.7332 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000238/0.1854, allocations: 47.95 kB / 0.7333 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1854, allocations: 0 / 0.7333 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.529e-05/0.1855, allocations: 19.98 kB / 0.7333 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.1859, allocations: 11.98 kB / 0.7333 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005391/0.1864, allocations: 143.1 kB / 0.7335 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.1867, allocations: 0.6846 MB / 0.7341 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.022e-05/0.1868, allocations: 4 kB / 0.7341 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.1868, allocations: 15.44 kB / 0.7341 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of SimCode: time 3.11e-07/0.1868, allocations: 0 / 0.7341 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.2155, allocations: 1.695 MB / 0.7358 GB, free: 9.715 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.08, allocations: 13.88 kB / 0.7358 GB, free: 9.711 MB / 0.5606 GB " [Timeout remaining time 649] (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: 14.997331474998646] Failed to read output from testmodel.py, exit status != 0: 11.185640675001196 11.202046896 11.019779933 Calling exit ...