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.001243/0.001243, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001456/0.001456, allocations: 218.8 kB / 23.04 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.8635/0.8635, allocations: 134 MB / 447.2 MB, free: 10.24 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="cs",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.002007/0.002007, allocations: 63.28 kB / 0.6193 GB, free: 7.23 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1816, allocations: 85.9 MB / 0.7032 GB, free: 1.402 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002913/0.1845, allocations: 1.55 MB / 0.7047 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0004195/0.1849, allocations: 124.5 kB / 0.7048 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.518e-05/0.1849, allocations: 0 / 0.7048 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.626e-05/0.1849, allocations: 0 / 0.7048 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.064e-05/0.185, allocations: 7.938 kB / 0.7048 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002414/0.1852, allocations: 23.91 kB / 0.7049 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.156e-05/0.1853, allocations: 27.98 kB / 0.7049 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.1854, allocations: 11.98 kB / 0.7049 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.73e-05/0.1855, allocations: 19.92 kB / 0.7049 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.619e-05/0.1855, allocations: 11.94 kB / 0.7049 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.1855, allocations: 4 kB / 0.7049 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.578e-05/0.1856, allocations: 15.98 kB / 0.705 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.199e-05/0.1856, allocations: 4 kB / 0.705 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.142e-05/0.1856, allocations: 15.92 kB / 0.705 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.1858, allocations: 40.05 kB / 0.705 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1858, allocations: 0 / 0.705 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.423e-06/0.1858, allocations: 0 / 0.705 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.1858, allocations: 0 / 0.705 GB, free: 15.54 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.0004527/0.1862, allocations: 276.8 kB / 0.7053 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1863, allocations: 12.03 kB / 0.7053 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.441e-05/0.1863, allocations: 4.125 kB / 0.7053 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.057e-05/0.1863, allocations: 34.75 kB / 0.7053 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.94e-05/0.1864, allocations: 8.891 kB / 0.7053 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.1865, allocations: 102.5 kB / 0.7054 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.1865, allocations: 4.375 kB / 0.7054 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-06/0.1865, allocations: 384 / 0.7054 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.1867, allocations: 69.97 kB / 0.7055 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1867, allocations: 3.938 kB / 0.7055 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.1867, allocations: 0 / 0.7055 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.1867, allocations: 0 / 0.7055 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.1869, allocations: 43.95 kB / 0.7056 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003987/0.1873, allocations: 228 kB / 0.7058 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.1876, allocations: 62.59 kB / 0.7058 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.1877, allocations: 32.7 kB / 0.7059 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 8.253e-05/0.1878, allocations: 7.984 kB / 0.7059 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.1878, allocations: 30.56 kB / 0.7059 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.1878, allocations: 4 kB / 0.7059 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004474/0.1883, allocations: 93.59 kB / 0.706 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.1883, allocations: 59.39 kB / 0.706 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.56e-05/0.1884, allocations: 93.86 kB / 0.7061 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.1884, allocations: 25.7 kB / 0.7062 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 7.687e-05/0.1885, allocations: 88.12 kB / 0.7062 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.1885, allocations: 11.94 kB / 0.7063 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.1886, allocations: 17.72 kB / 0.7063 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1887, allocations: 318.8 kB / 0.7066 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.643e-05/0.1888, allocations: 27.91 kB / 0.7066 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.826e-05/0.1889, allocations: 11.98 kB / 0.7066 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.1891, allocations: 48.81 kB / 0.7067 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1891, allocations: 0 / 0.7067 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002296/0.1893, allocations: 73.66 kB / 0.7067 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.1893, allocations: 8 kB / 0.7067 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1893, allocations: 0 / 0.7067 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.1893, allocations: 0 / 0.7067 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.458e-05/0.1894, allocations: 11.98 kB / 0.7068 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1894, allocations: 3.938 kB / 0.7068 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.092e-05/0.1895, allocations: 15.88 kB / 0.7068 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.1895, allocations: 0 / 0.7068 GB, free: 13.55 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.0001016/0.1896, allocations: 121.8 kB / 0.7069 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.371e-05/0.1896, allocations: 0 / 0.7069 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002722/0.1899, allocations: 77.33 kB / 0.707 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.1899, allocations: 8 kB / 0.707 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1899, allocations: 0 / 0.707 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1899, allocations: 3.938 kB / 0.707 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.1901, allocations: 140.7 kB / 0.7071 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1901, allocations: 4 kB / 0.7071 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.336e-05/0.1902, allocations: 7.984 kB / 0.7071 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1902, allocations: 4 kB / 0.7071 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.1902, allocations: 4.5 kB / 0.7071 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1902, allocations: 3.938 kB / 0.7071 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.1902, allocations: 0 / 0.7071 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.1905, allocations: 179.4 kB / 0.7073 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 9.277e-06/0.1905, allocations: 7.953 kB / 0.7073 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.1905, allocations: 0 / 0.7073 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.142e-05/0.1906, allocations: 7.984 kB / 0.7073 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.685e-05/0.1907, allocations: 11.98 kB / 0.7073 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.1907, allocations: 0 / 0.7073 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 6.665e-05/0.1907, allocations: 79.28 kB / 0.7074 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.1907, allocations: 0 / 0.7074 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002369/0.191, allocations: 12 kB / 0.7074 GB, free: 12.81 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.0007583/0.1917, allocations: 0.7045 MB / 0.7081 GB, free: 12.08 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0002675/0.192, allocations: 43.95 kB / 0.7081 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.192, allocations: 4 kB / 0.7081 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.1921, allocations: 27.97 kB / 0.7082 GB, free: 12 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000386/0.1925, allocations: 3.938 kB / 0.7082 GB, free: 12 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006418/0.1931, allocations: 143.2 kB / 0.7083 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.1935, allocations: 0.6805 MB / 0.709 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 3.595e-05/0.1936, allocations: 7.984 kB / 0.709 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.955e-05/0.1936, allocations: 11.44 kB / 0.709 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of SimCode: time 3.11e-07/0.1936, allocations: 0 / 0.709 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02267/0.2163, allocations: 1.728 MB / 0.7107 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.2, allocations: 11.17 kB / 0.7107 GB, free: 9.496 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.90067750797607] Failed to read output from testmodel.py, exit status != 0: 11.35971166798845 11.389301544 11.198494854 Calling exit ...