Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001542/0.001542, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001788/0.001788, allocations: 215.9 kB / 23.01 MB, free: 4.609 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.393/1.393, allocations: 230.6 MB / 256.8 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002462/0.002462, allocations: 295.4 kB / 313.5 MB, free: 2.855 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.162/1.162, allocations: 180.6 MB / 0.5377 GB, free: 13.09 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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: translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002735/0.002735, allocations: 103 kB / 0.7408 GB, free: 27.98 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.1818, allocations: 95.39 MB / 0.834 GB, free: 8.164 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.003075/0.1849, allocations: 1.553 MB / 0.8355 GB, free: 6.602 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.0004362/0.1853, allocations: 132.4 kB / 0.8356 GB, free: 6.469 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.55e-05/0.1853, allocations: 0 / 0.8356 GB, free: 6.469 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 2.799e-05/0.1854, allocations: 0 / 0.8356 GB, free: 6.469 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 5.073e-05/0.1854, allocations: 3.938 kB / 0.8356 GB, free: 6.465 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002724/0.1857, allocations: 23.92 kB / 0.8356 GB, free: 6.441 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 9.014e-05/0.1858, allocations: 31.92 kB / 0.8357 GB, free: 6.41 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.1859, allocations: 11.92 kB / 0.8357 GB, free: 6.398 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 5.01e-05/0.1859, allocations: 15.92 kB / 0.8357 GB, free: 6.383 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 5.373e-05/0.186, allocations: 11.98 kB / 0.8357 GB, free: 6.371 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.186, allocations: 8 kB / 0.8357 GB, free: 6.363 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.1861, allocations: 15.98 kB / 0.8357 GB, free: 6.348 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 1.554e-05/0.1861, allocations: 11.94 kB / 0.8357 GB, free: 6.336 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 2.789e-05/0.1861, allocations: 11.92 kB / 0.8357 GB, free: 6.324 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.1863, allocations: 39.83 kB / 0.8358 GB, free: 6.285 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1863, allocations: 0 / 0.8358 GB, free: 6.285 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.503e-06/0.1863, allocations: 0 / 0.8358 GB, free: 6.285 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 5.2e-06/0.1863, allocations: 0 / 0.8358 GB, free: 6.285 MB / 0.5763 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.0004817/0.1867, allocations: 266.3 kB / 0.836 GB, free: 5.992 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.1868, allocations: 13.34 kB / 0.8361 GB, free: 5.98 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.1868, allocations: 8.891 kB / 0.8361 GB, free: 5.973 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.1869, allocations: 106.5 kB / 0.8362 GB, free: 5.844 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/0.187, allocations: 4.375 kB / 0.8362 GB, free: 5.84 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.187, allocations: 384 / 0.8362 GB, free: 5.84 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.1872, allocations: 62.17 kB / 0.8362 GB, free: 5.773 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.1872, allocations: 192 / 0.8362 GB, free: 5.773 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.1872, allocations: 3.938 kB / 0.8362 GB, free: 5.77 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1872, allocations: 0 / 0.8362 GB, free: 5.77 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.1874, allocations: 47.95 kB / 0.8363 GB, free: 5.723 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003875/0.1878, allocations: 232 kB / 0.8365 GB, free: 5.453 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.1881, allocations: 62.42 kB / 0.8366 GB, free: 5.383 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.535e-05/0.1882, allocations: 26.56 kB / 0.8366 GB, free: 5.355 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 8.179e-05/0.1883, allocations: 8 kB / 0.8366 GB, free: 5.348 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.1883, allocations: 38.56 kB / 0.8366 GB, free: 5.301 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1883, allocations: 0 / 0.8366 GB, free: 5.301 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3): time 0.0003656/0.1887, allocations: 89.62 kB / 0.8367 GB, free: 5.207 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.1887, allocations: 51.41 kB / 0.8368 GB, free: 5.145 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.044e-05/0.1888, allocations: 109.8 kB / 0.8369 GB, free: 5.027 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.1888, allocations: 25.7 kB / 0.8369 GB, free: 4.996 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 5.327e-05/0.1889, allocations: 88.14 kB / 0.837 GB, free: 4.906 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 1.775e-05/0.1889, allocations: 7.891 kB / 0.837 GB, free: 4.898 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.1889, allocations: 13.72 kB / 0.837 GB, free: 4.879 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1891, allocations: 318.8 kB / 0.8373 GB, free: 4.559 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.798e-05/0.1891, allocations: 19.98 kB / 0.8373 GB, free: 4.539 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.46e-05/0.1892, allocations: 19.97 kB / 0.8373 GB, free: 4.52 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.1894, allocations: 45.3 kB / 0.8374 GB, free: 4.473 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1894, allocations: 3.938 kB / 0.8374 GB, free: 4.469 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002563/0.1896, allocations: 85.58 kB / 0.8375 GB, free: 4.379 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1897, allocations: 4 kB / 0.8375 GB, free: 4.375 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.1897, allocations: 3.938 kB / 0.8375 GB, free: 4.371 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1897, allocations: 0 / 0.8375 GB, free: 4.371 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.809e-05/0.1898, allocations: 19.92 kB / 0.8375 GB, free: 4.352 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.1898, allocations: 0 / 0.8375 GB, free: 4.352 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.19e-05/0.1898, allocations: 4 kB / 0.8375 GB, free: 4.348 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.1898, allocations: 3.984 kB / 0.8375 GB, free: 4.344 MB / 0.5763 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.414e-05/0.1899, allocations: 122.4 kB / 0.8376 GB, free: 4.215 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.1899, allocations: 0 / 0.8376 GB, free: 4.215 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002614/0.1902, allocations: 85.33 kB / 0.8377 GB, free: 4.117 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1902, allocations: 0 / 0.8377 GB, free: 4.117 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1902, allocations: 0 / 0.8377 GB, free: 4.117 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1902, allocations: 0 / 0.8377 GB, free: 4.117 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001719/0.1904, allocations: 140.7 kB / 0.8378 GB, free: 3.938 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1904, allocations: 0 / 0.8378 GB, free: 3.938 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.865e-05/0.1905, allocations: 15.92 kB / 0.8378 GB, free: 3.922 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1905, allocations: 0 / 0.8378 GB, free: 3.922 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.138e-06/0.1905, allocations: 4 kB / 0.8379 GB, free: 3.918 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1905, allocations: 0 / 0.8379 GB, free: 3.918 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1905, allocations: 4 kB / 0.8379 GB, free: 3.914 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.1907, allocations: 167.5 kB / 0.838 GB, free: 3.734 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 1.22e-05/0.1908, allocations: 11.94 kB / 0.838 GB, free: 3.723 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.1908, allocations: 4 kB / 0.838 GB, free: 3.719 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.909e-05/0.1909, allocations: 4 kB / 0.838 GB, free: 3.715 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.1909, allocations: 7.984 kB / 0.838 GB, free: 3.707 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.1909, allocations: 4 kB / 0.838 GB, free: 3.703 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 4.432e-05/0.191, allocations: 83.27 kB / 0.8381 GB, free: 3.621 MB / 0.5763 GB Notification: Performance of sort global known variables: time 7e-08/0.191, allocations: 0 / 0.8381 GB, free: 3.621 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0002191/0.1912, allocations: 11.94 kB / 0.8381 GB, free: 3.609 MB / 0.5763 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.0001537/0.1913, allocations: 103.2 kB / 0.8382 GB, free: 3.496 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0002237/0.1916, allocations: 39.95 kB / 0.8383 GB, free: 3.457 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1916, allocations: 8 kB / 0.8383 GB, free: 3.449 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 8.867e-05/0.1916, allocations: 23.97 kB / 0.8383 GB, free: 3.426 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.1919, allocations: 7.938 kB / 0.8383 GB, free: 3.418 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003363/0.1923, allocations: 131.8 kB / 0.8384 GB, free: 3.258 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.1926, allocations: 0.6807 MB / 0.8391 GB, free: 2.551 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.96e-05/0.1927, allocations: 11.38 kB / 0.8391 GB, free: 2.539 MB / 0.5763 GB Notification: Performance of SimCode: time 4.51e-07/0.1927, allocations: 0 / 0.8391 GB, free: 2.539 MB / 0.5763 GB Notification: Performance of Templates: time 0.002357/0.195, allocations: 0.7443 MB / 0.8398 GB, free: 1.797 MB / 0.5763 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.911301746033132] Failed to read output from testmodel.py, exit status != 0: 0.2027944300789386 0.21858861399999996 0.029275651000000003 Calling exit ...