Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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.001265/0.001265, allocations: 103 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.001344/0.001344, allocations: 208.9 kB / 19.42 MB, free: 3.641 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.529/1.529, 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/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8654/0.8654, allocations: 133.9 MB / 442.8 MB, free: 11.37 MB / 350.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.00197/0.00197, allocations: 62 kB / 0.6134 GB, free: 8.801 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1724, allocations: 85.85 MB / 0.6973 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002924/0.1754, allocations: 1.528 MB / 0.6988 GB, free: 1.484 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003831/0.1758, allocations: 128.5 kB / 0.6989 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.525e-05/0.1758, allocations: 4 kB / 0.6989 GB, free: 1.352 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 2.45e-05/0.1758, allocations: 3.938 kB / 0.6989 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.147e-05/0.1759, allocations: 3.938 kB / 0.6989 GB, free: 1.344 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.1761, allocations: 19.97 kB / 0.6989 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 8.177e-05/0.1762, allocations: 39.91 kB / 0.699 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 8.811e-05/0.1762, allocations: 0 / 0.699 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 4.712e-05/0.1763, allocations: 19.92 kB / 0.699 GB, free: 1.266 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 4.775e-05/0.1763, allocations: 15.92 kB / 0.699 GB, free: 1.25 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.1764, allocations: 4 kB / 0.699 GB, free: 1.246 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.02e-05/0.1764, allocations: 11.98 kB / 0.699 GB, free: 1.234 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.671e-05/0.1764, allocations: 8 kB / 0.699 GB, free: 1.227 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.565e-05/0.1765, allocations: 15.92 kB / 0.699 GB, free: 1.211 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001277/0.1766, allocations: 40.05 kB / 0.6991 GB, free: 1.172 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1766, allocations: 4 kB / 0.6991 GB, free: 1.168 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.613e-06/0.1766, allocations: 0 / 0.6991 GB, free: 1.168 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.1766, allocations: 0 / 0.6991 GB, free: 1.168 MB / 0.5137 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.0005092/0.1771, allocations: 347.4 kB / 0.6994 GB, free: 0.7773 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.1772, allocations: 9.109 kB / 0.6994 GB, free: 0.7695 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.45e-05/0.1772, allocations: 30.75 kB / 0.6994 GB, free: 0.7305 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.1772, allocations: 12.89 kB / 0.6994 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.1774, allocations: 160.4 kB / 0.6996 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.1774, allocations: 4.375 kB / 0.6996 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.1774, allocations: 4.375 kB / 0.6996 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002097/0.1776, allocations: 62.22 kB / 0.6997 GB, free: 460 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.1776, allocations: 3.938 kB / 0.6997 GB, free: 456 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.1776, allocations: 4 kB / 0.6997 GB, free: 452 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1776, allocations: 0 / 0.6997 GB, free: 452 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.1778, allocations: 47.88 kB / 0.6997 GB, free: 404 kB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003844/0.1782, allocations: 264.9 kB / 0.7 GB, free: 88 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/0.1786, allocations: 50.55 kB / 0.7 GB, free: 28 kB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.1787, allocations: 32.83 kB / 0.7001 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001268/0.1788, allocations: 89.05 kB / 0.7001 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.1789, allocations: 34.5 kB / 0.7002 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1789, allocations: 0 / 0.7002 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004151/0.1793, allocations: 97.58 kB / 0.7003 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.1793, allocations: 51.41 kB / 0.7003 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.259e-05/0.1794, allocations: 105.8 kB / 0.7004 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.1794, allocations: 29.7 kB / 0.7004 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.844e-05/0.1795, allocations: 80.14 kB / 0.7005 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.1795, allocations: 3.953 kB / 0.7005 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-05/0.1795, allocations: 17.72 kB / 0.7005 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1797, allocations: 318.8 kB / 0.7008 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.1798, allocations: 15.98 kB / 0.7009 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.063e-05/0.1799, allocations: 23.92 kB / 0.7009 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.18, allocations: 52.75 kB / 0.7009 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.18, allocations: 0 / 0.7009 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002233/0.1803, allocations: 69.66 kB / 0.701 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.1803, allocations: 7.984 kB / 0.701 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1803, allocations: 4 kB / 0.701 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1803, allocations: 0 / 0.701 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.589e-05/0.1804, allocations: 15.98 kB / 0.701 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.1804, allocations: 3.984 kB / 0.701 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.1805, allocations: 7.953 kB / 0.701 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.1805, allocations: 4 kB / 0.701 GB, free: 14.89 MB / 0.5294 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.676e-05/0.1806, allocations: 121.6 kB / 0.7012 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.555e-05/0.1806, allocations: 4 kB / 0.7012 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002828/0.1809, allocations: 81.14 kB / 0.7012 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.1809, allocations: 0.5625 kB / 0.7012 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1809, allocations: 0 / 0.7012 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1809, allocations: 4 kB / 0.7012 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001852/0.1811, allocations: 165.6 kB / 0.7014 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1811, allocations: 0 / 0.7014 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.133e-05/0.1811, allocations: 11.98 kB / 0.7014 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1811, allocations: 0 / 0.7014 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.1812, allocations: 0 / 0.7014 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.1812, allocations: 7.938 kB / 0.7014 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1812, allocations: 4 kB / 0.7014 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.1815, allocations: 175.4 kB / 0.7016 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 5.779e-05/0.1815, allocations: 89.05 kB / 0.7017 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.1815, allocations: 0 / 0.7017 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.678e-05/0.1816, allocations: 8 kB / 0.7017 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.374e-05/0.1817, allocations: 7.984 kB / 0.7017 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.1817, allocations: 3.938 kB / 0.7017 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.482e-05/0.1817, allocations: 87.28 kB / 0.7018 GB, free: 14.03 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6e-08/0.1817, allocations: 0 / 0.7018 GB, free: 14.03 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002262/0.1819, allocations: 8 kB / 0.7018 GB, free: 14.02 MB / 0.5294 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.0006826/0.1826, allocations: 0.7085 MB / 0.7025 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0002535/0.1829, allocations: 43.94 kB / 0.7025 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1829, allocations: 4 kB / 0.7025 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.183, allocations: 19.98 kB / 0.7025 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.1833, allocations: 5.203 kB / 0.7025 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004685/0.1837, allocations: 151.1 kB / 0.7027 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.1841, allocations: 0.6805 MB / 0.7034 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 2.891e-05/0.1841, allocations: 4 kB / 0.7034 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.84e-05/0.1841, allocations: 11.44 kB / 0.7034 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of SimCode: time 3.01e-07/0.1841, allocations: 0 / 0.7034 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.2081, allocations: 1.565 MB / 0.7049 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.887/8.095, allocations: 16.41 kB / 0.7049 GB, free: 10.81 MB / 0.5294 GB " [Timeout remaining time 652] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.819735562006827] Failed to read output from testmodel.py, exit status != 0: 8.161116816001595 8.177450615 7.998005317 Calling exit ...