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.001309/0.001309, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001562/0.001562, allocations: 216.2 kB / 22.26 MB, free: 5.082 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.587/1.587, allocations: 230.6 MB / 256 MB, free: 8.039 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.8382/0.8382, allocations: 134 MB / 446.4 MB, free: 10.27 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.002/0.002, allocations: 70.25 kB / 0.6186 GB, free: 7.238 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1823, allocations: 85.9 MB / 0.7024 GB, free: 1.418 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002676/0.185, allocations: 1.544 MB / 0.7039 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000335/0.1853, allocations: 124.5 kB / 0.7041 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.045e-05/0.1853, allocations: 0 / 0.7041 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.006e-05/0.1854, allocations: 7.922 kB / 0.7041 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.687e-05/0.1854, allocations: 3.938 kB / 0.7041 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.1856, allocations: 23.97 kB / 0.7041 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.056e-05/0.1857, allocations: 31.92 kB / 0.7041 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.514e-05/0.1858, allocations: 7.984 kB / 0.7041 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.724e-05/0.1858, allocations: 19.94 kB / 0.7042 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.188e-05/0.1859, allocations: 19.91 kB / 0.7042 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.1859, allocations: 4 kB / 0.7042 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.714e-05/0.1859, allocations: 11.98 kB / 0.7042 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.706e-05/0.186, allocations: 8 kB / 0.7042 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.31e-05/0.186, allocations: 7.938 kB / 0.7042 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.1861, allocations: 44.09 kB / 0.7042 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1861, allocations: 0 / 0.7042 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1861, allocations: 3.938 kB / 0.7043 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.1861, allocations: 3.938 kB / 0.7043 GB, free: 15.55 MB / 0.5294 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.0004368/0.1865, allocations: 270.3 kB / 0.7045 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.1866, allocations: 8.031 kB / 0.7045 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.52e-05/0.1866, allocations: 34.75 kB / 0.7046 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.355e-05/0.1866, allocations: 8.891 kB / 0.7046 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.715e-05/0.1867, allocations: 106.5 kB / 0.7047 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.1867, allocations: 4.375 kB / 0.7047 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.1867, allocations: 384 / 0.7047 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.1869, allocations: 62.23 kB / 0.7047 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1869, allocations: 7.938 kB / 0.7047 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.845e-06/0.187, allocations: 0 / 0.7047 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.187, allocations: 0 / 0.7047 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.1871, allocations: 47.89 kB / 0.7048 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003561/0.1875, allocations: 235.9 kB / 0.705 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.1878, allocations: 58.55 kB / 0.7051 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.87e-05/0.1879, allocations: 28.89 kB / 0.7051 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 7.815e-05/0.188, allocations: 4 kB / 0.7051 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.188, allocations: 34.5 kB / 0.7051 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.188, allocations: 0 / 0.7051 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004125/0.1884, allocations: 97.58 kB / 0.7052 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.1885, allocations: 51.41 kB / 0.7053 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.195e-05/0.1886, allocations: 106 kB / 0.7054 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.1886, allocations: 25.7 kB / 0.7054 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.754e-05/0.1886, allocations: 88.14 kB / 0.7055 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.1887, allocations: 3.953 kB / 0.7055 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.791e-05/0.1887, allocations: 17.72 kB / 0.7055 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.1888, allocations: 318.8 kB / 0.7058 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.499e-05/0.1889, allocations: 19.98 kB / 0.7058 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.963e-05/0.189, allocations: 19.97 kB / 0.7058 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.1892, allocations: 48.7 kB / 0.7059 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1892, allocations: 0 / 0.7059 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002182/0.1894, allocations: 81.64 kB / 0.706 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.1894, allocations: 4 kB / 0.706 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1894, allocations: 0 / 0.706 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1894, allocations: 0 / 0.706 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.492e-05/0.1895, allocations: 11.98 kB / 0.706 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1895, allocations: 0 / 0.706 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.038e-05/0.1896, allocations: 11.89 kB / 0.706 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.1896, allocations: 0 / 0.706 GB, free: 13.57 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 0.0001007/0.1897, allocations: 121.8 kB / 0.7061 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/0.1897, allocations: 7.938 kB / 0.7061 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002657/0.19, allocations: 81.33 kB / 0.7062 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.19, allocations: 3.938 kB / 0.7062 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.19, allocations: 0 / 0.7062 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.19, allocations: 0 / 0.7062 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.1902, allocations: 136.7 kB / 0.7063 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1902, allocations: 0 / 0.7063 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.45e-05/0.1903, allocations: 19.92 kB / 0.7063 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1903, allocations: 4 kB / 0.7064 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.1903, allocations: 0 / 0.7064 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.1903, allocations: 3.984 kB / 0.7064 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1903, allocations: 4 kB / 0.7064 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.1905, allocations: 175.4 kB / 0.7065 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 1.299e-05/0.1906, allocations: 11.94 kB / 0.7065 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.1906, allocations: 4 kB / 0.7065 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.446e-05/0.1907, allocations: 4 kB / 0.7065 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.363e-05/0.1907, allocations: 7.984 kB / 0.7066 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-06/0.1907, allocations: 4 kB / 0.7066 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 3.878e-05/0.1908, allocations: 75.7 kB / 0.7066 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6e-08/0.1908, allocations: 0 / 0.7066 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002221/0.191, allocations: 11.98 kB / 0.7066 GB, free: 12.83 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.0006331/0.1916, allocations: 0.7125 MB / 0.7073 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0002691/0.1919, allocations: 47.95 kB / 0.7074 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1919, allocations: 0 / 0.7074 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.192, allocations: 23.98 kB / 0.7074 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.1923, allocations: 4 kB / 0.7074 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004706/0.1928, allocations: 147.2 kB / 0.7075 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.1931, allocations: 0.6844 MB / 0.7082 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 2.554e-05/0.1931, allocations: 0 / 0.7082 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.888e-05/0.1931, allocations: 11.44 kB / 0.7082 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of SimCode: time 3.81e-07/0.1931, allocations: 4 kB / 0.7082 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02828/0.2214, allocations: 1.706 MB / 0.7099 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/10.96, allocations: 0 / 0.7099 GB, free: 9.531 MB / 0.5294 GB " [Timeout remaining time 649] (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: 14.863846965003177] Failed to read output from testmodel.py, exit status != 0: 11.064359089999925 11.081352706 10.892123937 Calling exit ...