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.001385/0.001385, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001465/0.001465, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.505/1.505, allocations: 230.6 MB / 256 MB, free: 7.781 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.002675/0.002675, allocations: 294.3 kB / 312.7 MB, free: 2.582 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.286/1.286, allocations: 180.6 MB / 0.5369 GB, free: 14.46 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.003/0.003, allocations: 109.1 kB / 0.74 GB, free: 27.98 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1805, allocations: 95.38 MB / 0.8331 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.003089/0.1836, allocations: 1.535 MB / 0.8346 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003827/0.184, allocations: 116.5 kB / 0.8347 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.058e-05/0.184, allocations: 0 / 0.8347 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 3.179e-05/0.184, allocations: 3.938 kB / 0.8348 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.681e-05/0.1841, allocations: 7.938 kB / 0.8348 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.1843, allocations: 31.91 kB / 0.8348 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.246e-05/0.1844, allocations: 31.86 kB / 0.8348 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.983e-05/0.1845, allocations: 11.98 kB / 0.8348 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.248e-05/0.1845, allocations: 11.98 kB / 0.8348 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.806e-05/0.1846, allocations: 11.94 kB / 0.8349 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.1846, allocations: 4 kB / 0.8349 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.051e-05/0.1847, allocations: 11.98 kB / 0.8349 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.368e-05/0.1847, allocations: 4 kB / 0.8349 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.1847, allocations: 19.91 kB / 0.8349 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001224/0.1848, allocations: 31.84 kB / 0.8349 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1848, allocations: 4 kB / 0.8349 GB, free: 5.953 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.744e-06/0.1848, allocations: 3.938 kB / 0.8349 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.98e-06/0.1849, allocations: 0 / 0.8349 GB, free: 5.949 MB / 0.5762 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.0004652/0.1853, allocations: 270.3 kB / 0.8352 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.1854, allocations: 13.94 kB / 0.8352 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.677e-05/0.1854, allocations: 8.891 kB / 0.8352 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001109/0.1855, allocations: 106.5 kB / 0.8353 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.469e-05/0.1855, allocations: 4.375 kB / 0.8353 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.1855, allocations: 384 / 0.8353 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001909/0.1857, allocations: 66.2 kB / 0.8354 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.1857, allocations: 192 / 0.8354 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.1858, allocations: 7.938 kB / 0.8354 GB, free: 5.422 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1858, allocations: 4 kB / 0.8354 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.186, allocations: 39.89 kB / 0.8354 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000354/0.1863, allocations: 208.6 kB / 0.8356 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000317/0.1866, allocations: 58.53 kB / 0.8357 GB, free: 5.078 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.1867, allocations: 34.52 kB / 0.8357 GB, free: 5.043 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.244e-05/0.1868, allocations: 4 kB / 0.8357 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.1868, allocations: 34.5 kB / 0.8358 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1868, allocations: 0 / 0.8358 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.000387/0.1872, allocations: 93.56 kB / 0.8358 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.1873, allocations: 51.41 kB / 0.8359 GB, free: 4.836 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.609e-05/0.1874, allocations: 105.8 kB / 0.836 GB, free: 4.723 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.653e-05/0.1874, allocations: 29.7 kB / 0.836 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.07e-05/0.1874, allocations: 84.14 kB / 0.8361 GB, free: 4.602 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.1874, allocations: 7.953 kB / 0.8361 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/0.1875, allocations: 17.7 kB / 0.8361 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1876, allocations: 314.8 kB / 0.8364 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.121e-05/0.1877, allocations: 15.98 kB / 0.8364 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.1878, allocations: 19.97 kB / 0.8365 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.188, allocations: 52.77 kB / 0.8365 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.188, allocations: 0 / 0.8365 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002458/0.1883, allocations: 85.47 kB / 0.8366 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.1883, allocations: 8 kB / 0.8366 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.1883, allocations: 0 / 0.8366 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.1883, allocations: 0 / 0.8366 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.179e-05/0.1884, allocations: 11.98 kB / 0.8366 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1884, allocations: 0 / 0.8366 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.863e-05/0.1884, allocations: 7.984 kB / 0.8366 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.1885, allocations: 4 kB / 0.8366 GB, free: 4.043 MB / 0.5762 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.919e-05/0.1886, allocations: 118.4 kB / 0.8367 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.1886, allocations: 3.938 kB / 0.8367 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.1889, allocations: 85.78 kB / 0.8368 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1889, allocations: 48 / 0.8368 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1889, allocations: 3.984 kB / 0.8368 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1889, allocations: 0 / 0.8368 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001495/0.189, allocations: 105.3 kB / 0.8369 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.189, allocations: 8 kB / 0.8369 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.463e-05/0.1891, allocations: 11.92 kB / 0.8369 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.1891, allocations: 4 kB / 0.8369 GB, free: 3.656 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.1891, allocations: 4 kB / 0.8369 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1891, allocations: 0 / 0.8369 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1891, allocations: 3.938 kB / 0.837 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000286/0.1894, allocations: 171.4 kB / 0.8371 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.407e-05/0.1894, allocations: 15.89 kB / 0.8371 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.1894, allocations: 8 kB / 0.8371 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.63e-05/0.1895, allocations: 7.984 kB / 0.8371 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/0.1896, allocations: 0 / 0.8371 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.1896, allocations: 0 / 0.8371 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.686e-05/0.1896, allocations: 87.27 kB / 0.8372 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.1896, allocations: 0 / 0.8372 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000232/0.1899, allocations: 8 kB / 0.8372 GB, free: 3.34 MB / 0.5762 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.0001473/0.19, allocations: 95.25 kB / 0.8373 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002423/0.1902, allocations: 51.95 kB / 0.8374 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1902, allocations: 0 / 0.8374 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.1903, allocations: 27.91 kB / 0.8374 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.1906, allocations: 5.375 kB / 0.8374 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003219/0.1909, allocations: 117.5 kB / 0.8375 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.555e-05/0.191, allocations: 63.34 kB / 0.8376 GB, free: 2.93 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 3.227e-05/0.191, allocations: 8 kB / 0.8376 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.207e-05/0.1911, allocations: 15.42 kB / 0.8376 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of SimCode: time 3.9e-07/0.1911, allocations: 0 / 0.8376 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of Templates: time 0.003536/0.1946, allocations: 0.757 MB / 0.8383 GB, free: 2.16 MB / 0.5762 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: 6.2409458961337805] Failed to read output from testmodel.py, exit status != 0: 0.20246153511106968 0.219515443 0.031405606 Calling exit ...