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.001692/0.001692, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.002141/0.002141, allocations: 219.1 kB / 23.03 MB, free: 4.922 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.8493/0.8493, allocations: 134 MB / 447.2 MB, free: 9.965 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.001932/0.001932, allocations: 70.66 kB / 0.6192 GB, free: 6.887 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.1808, allocations: 85.92 MB / 0.7031 GB, free: 1.059 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003086/0.1838, allocations: 1.525 MB / 0.7046 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0004054/0.1843, allocations: 124.4 kB / 0.7048 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.832e-05/0.1843, allocations: 0 / 0.7048 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.187e-05/0.1843, allocations: 3.938 kB / 0.7048 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.685e-05/0.1844, allocations: 4 kB / 0.7048 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002644/0.1846, allocations: 23.91 kB / 0.7048 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.865e-05/0.1847, allocations: 31.92 kB / 0.7048 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.318e-05/0.1848, allocations: 8 kB / 0.7048 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.448e-05/0.1849, allocations: 19.91 kB / 0.7048 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.348e-05/0.1849, allocations: 19.98 kB / 0.7049 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.1849, allocations: 0 / 0.7049 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.244e-05/0.185, allocations: 12 kB / 0.7049 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.983e-05/0.185, allocations: 11.92 kB / 0.7049 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.185, allocations: 8 kB / 0.7049 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.1852, allocations: 36.11 kB / 0.7049 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.1852, allocations: 3.984 kB / 0.7049 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1852, allocations: 0 / 0.7049 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.1852, allocations: 7.938 kB / 0.7049 GB, free: 15.21 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.0004648/0.1857, allocations: 266.3 kB / 0.7052 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.1857, allocations: 12.03 kB / 0.7052 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.058e-05/0.1857, allocations: 192 / 0.7052 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.234e-05/0.1857, allocations: 34.75 kB / 0.7052 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.94e-05/0.1858, allocations: 4.891 kB / 0.7052 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.1859, allocations: 114.5 kB / 0.7054 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.1859, allocations: 384 / 0.7054 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/0.1859, allocations: 4.359 kB / 0.7054 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.1861, allocations: 65.91 kB / 0.7054 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1861, allocations: 0 / 0.7054 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.1861, allocations: 4 kB / 0.7054 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1861, allocations: 8 kB / 0.7054 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.1863, allocations: 35.95 kB / 0.7055 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003764/0.1867, allocations: 228 kB / 0.7057 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/0.187, allocations: 58.53 kB / 0.7057 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.933e-05/0.1871, allocations: 28.89 kB / 0.7058 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 8.625e-05/0.1872, allocations: 4 kB / 0.7058 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.1872, allocations: 34.56 kB / 0.7058 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.1872, allocations: 0 / 0.7058 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004429/0.1877, allocations: 101.5 kB / 0.7059 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.1877, allocations: 55.41 kB / 0.706 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.909e-05/0.1878, allocations: 97.86 kB / 0.706 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.1878, allocations: 25.7 kB / 0.7061 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.589e-05/0.1879, allocations: 84.12 kB / 0.7062 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.1879, allocations: 7.953 kB / 0.7062 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-05/0.1879, allocations: 21.72 kB / 0.7062 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1881, allocations: 314.8 kB / 0.7065 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.347e-05/0.1882, allocations: 23.97 kB / 0.7065 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.927e-05/0.1882, allocations: 15.98 kB / 0.7065 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.1884, allocations: 44.81 kB / 0.7066 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1884, allocations: 0 / 0.7066 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002281/0.1886, allocations: 85.53 kB / 0.7066 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.1887, allocations: 4 kB / 0.7066 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1887, allocations: 0 / 0.7066 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.1887, allocations: 3.984 kB / 0.7066 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.375e-05/0.1888, allocations: 12 kB / 0.7067 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.1888, allocations: 0 / 0.7067 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.241e-05/0.1888, allocations: 15.88 kB / 0.7067 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.1888, allocations: 0 / 0.7067 GB, free: 13.23 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.427e-05/0.1889, allocations: 117.8 kB / 0.7068 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.542e-05/0.189, allocations: 4.516 kB / 0.7068 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.1892, allocations: 89.25 kB / 0.7069 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1892, allocations: 3.984 kB / 0.7069 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1892, allocations: 0 / 0.7069 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-06/0.1893, allocations: 0 / 0.7069 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.1894, allocations: 140.7 kB / 0.707 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1894, allocations: 0 / 0.707 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.819e-05/0.1895, allocations: 11.98 kB / 0.707 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.1895, allocations: 4 kB / 0.707 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1895, allocations: 0 / 0.707 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1895, allocations: 3.938 kB / 0.707 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.1895, allocations: 3.984 kB / 0.707 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002738/0.1898, allocations: 171.5 kB / 0.7072 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 1.146e-05/0.1898, allocations: 11.94 kB / 0.7072 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.1898, allocations: 0 / 0.7072 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-05/0.1899, allocations: 4 kB / 0.7072 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.079e-05/0.19, allocations: 15.92 kB / 0.7072 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.19, allocations: 4 kB / 0.7072 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.404e-05/0.19, allocations: 83.27 kB / 0.7073 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.1e-08/0.19, allocations: 0 / 0.7073 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002373/0.1902, allocations: 12 kB / 0.7073 GB, free: 12.49 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.0006485/0.1909, allocations: 0.6968 MB / 0.708 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000246/0.1911, allocations: 47.89 kB / 0.7081 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1911, allocations: 4 kB / 0.7081 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 9.922e-05/0.1912, allocations: 27.92 kB / 0.7081 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.1915, allocations: 4 kB / 0.7081 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005189/0.1921, allocations: 143.2 kB / 0.7082 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.026e-05/0.1921, allocations: 63.2 kB / 0.7083 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 3.598e-05/0.1922, allocations: 8 kB / 0.7083 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.378e-05/0.1922, allocations: 11.44 kB / 0.7083 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of SimCode: time 2.6e-07/0.1922, allocations: 0 / 0.7083 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.2149, allocations: 1.779 MB / 0.71 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.39, allocations: 4.844 kB / 0.71 GB, free: 9.762 MB / 0.5294 GB " [Timeout remaining time 648] (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: 15.088187571964227] Failed to read output from testmodel.py, exit status != 0: 11.541209176997654 11.56225581 11.371942255 Calling exit ...