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.001282/0.001282, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001403/0.001403, allocations: 216.1 kB / 22.99 MB, free: 4.945 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.404/1.404, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.002747/0.002747, allocations: 278.6 kB / 313.5 MB, free: 2.613 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.186/1.186, allocations: 180.6 MB / 0.5377 GB, free: 14.54 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.002873/0.002873, allocations: 103.7 kB / 0.7407 GB, free: 27.73 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1745, allocations: 95.38 MB / 0.8339 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002684/0.1771, allocations: 1.535 MB / 0.8354 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003732/0.1775, allocations: 112.6 kB / 0.8355 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.764e-05/0.1776, allocations: 0 / 0.8355 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 2.562e-05/0.1776, allocations: 7.938 kB / 0.8355 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.432e-05/0.1776, allocations: 7.922 kB / 0.8355 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002385/0.1779, allocations: 23.97 kB / 0.8355 GB, free: 6.078 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.783e-05/0.1779, allocations: 31.86 kB / 0.8355 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 9.997e-05/0.178, allocations: 8 kB / 0.8355 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.039e-05/0.1781, allocations: 11.98 kB / 0.8356 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.025e-05/0.1781, allocations: 15.92 kB / 0.8356 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.1781, allocations: 0 / 0.8356 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.586e-05/0.1782, allocations: 12 kB / 0.8356 GB, free: 6 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 2.319e-05/0.1782, allocations: 15.97 kB / 0.8356 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.428e-05/0.1783, allocations: 11.94 kB / 0.8356 GB, free: 5.973 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.1784, allocations: 35.83 kB / 0.8356 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1784, allocations: 0 / 0.8356 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.834e-06/0.1784, allocations: 7.875 kB / 0.8357 GB, free: 5.93 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.1784, allocations: 4 kB / 0.8357 GB, free: 5.926 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.0004589/0.1788, allocations: 266.3 kB / 0.8359 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1789, allocations: 9.344 kB / 0.8359 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.1789, allocations: 8.891 kB / 0.8359 GB, free: 5.617 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.179, allocations: 106.5 kB / 0.836 GB, free: 5.488 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.1791, allocations: 12.38 kB / 0.836 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.1791, allocations: 8.359 kB / 0.8361 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.1792, allocations: 58.22 kB / 0.8361 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.1793, allocations: 192 / 0.8361 GB, free: 5.406 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.1793, allocations: 3.938 kB / 0.8361 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1793, allocations: 0 / 0.8361 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.1795, allocations: 47.89 kB / 0.8362 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003428/0.1798, allocations: 204.6 kB / 0.8364 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003169/0.1801, allocations: 62.47 kB / 0.8364 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.1802, allocations: 30.52 kB / 0.8364 GB, free: 5.023 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.279e-05/0.1803, allocations: 7.984 kB / 0.8364 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.1803, allocations: 34.56 kB / 0.8365 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1803, allocations: 0 / 0.8365 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0003713/0.1807, allocations: 93.58 kB / 0.8366 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.1807, allocations: 51.41 kB / 0.8366 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.724e-05/0.1808, allocations: 101.8 kB / 0.8367 GB, free: 4.703 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.1808, allocations: 25.7 kB / 0.8367 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.133e-05/0.1809, allocations: 88.14 kB / 0.8368 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.1809, allocations: 3.953 kB / 0.8368 GB, free: 4.578 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.1809, allocations: 21.7 kB / 0.8369 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1811, allocations: 310.8 kB / 0.8371 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.789e-05/0.1812, allocations: 23.97 kB / 0.8372 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.586e-05/0.1812, allocations: 19.98 kB / 0.8372 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.1814, allocations: 48.75 kB / 0.8372 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1814, allocations: 0 / 0.8372 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002087/0.1816, allocations: 81.55 kB / 0.8373 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.1816, allocations: 4 kB / 0.8373 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.1816, allocations: 0 / 0.8373 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.1816, allocations: 0 / 0.8373 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.602e-05/0.1817, allocations: 15.98 kB / 0.8373 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.1817, allocations: 3.984 kB / 0.8373 GB, free: 4.035 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.66e-05/0.1818, allocations: 7.984 kB / 0.8373 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.664e-06/0.1818, allocations: 4 kB / 0.8373 GB, free: 4.023 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 7.929e-05/0.1819, allocations: 115 kB / 0.8375 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.578e-05/0.1819, allocations: 7.938 kB / 0.8375 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002583/0.1822, allocations: 85.25 kB / 0.8375 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1822, allocations: 3.938 kB / 0.8375 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1822, allocations: 4 kB / 0.8376 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1822, allocations: 0 / 0.8376 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001306/0.1823, allocations: 109.3 kB / 0.8377 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1823, allocations: 0 / 0.8377 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.254e-05/0.1824, allocations: 15.92 kB / 0.8377 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1824, allocations: 3.938 kB / 0.8377 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.1824, allocations: 0 / 0.8377 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.405e-05/0.1824, allocations: 4 kB / 0.8377 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1824, allocations: 0 / 0.8377 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.1827, allocations: 175.4 kB / 0.8378 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.431e-05/0.1827, allocations: 19.89 kB / 0.8379 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.165e-05/0.1827, allocations: 0 / 0.8379 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.061e-05/0.1828, allocations: 7.984 kB / 0.8379 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.994e-05/0.1828, allocations: 7.984 kB / 0.8379 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-06/0.1828, allocations: 0 / 0.8379 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 5.165e-05/0.1829, allocations: 83.28 kB / 0.838 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8.1e-08/0.1829, allocations: 0 / 0.838 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002128/0.1831, allocations: 8 kB / 0.838 GB, free: 3.316 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.0001329/0.1832, allocations: 99.25 kB / 0.8381 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002206/0.1834, allocations: 47.94 kB / 0.8381 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1834, allocations: 0 / 0.8381 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.1836, allocations: 27.92 kB / 0.8381 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.1839, allocations: 4.922 kB / 0.8381 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002995/0.1842, allocations: 147.2 kB / 0.8383 GB, free: 2.957 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.388e-05/0.1842, allocations: 63.36 kB / 0.8383 GB, free: 2.875 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.871e-05/0.1842, allocations: 11.42 kB / 0.8384 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of SimCode: time 3.1e-07/0.1842, allocations: 0 / 0.8384 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of Templates: time 0.002188/0.1864, allocations: 0.7383 MB / 0.8391 GB, free: 2.125 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: 7.919862594921142] Failed to read output from testmodel.py, exit status != 0: 0.1935763992369175 0.20817401600000002 0.026963774000000003 Calling exit ...