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.00148/0.00148, allocations: 79.11 kB / 19.76 MB, free: 2.035 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.001562/0.001562, allocations: 157.1 kB / 23.01 MB, free: 4.941 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.338/1.338, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.1 MB " [Timeout remaining time 179] 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.002373/0.002373, allocations: 236.4 kB / 260 MB, free: 440 kB / 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 0.884/0.884, allocations: 138.5 MB / 455 MB, free: 15.1 MB / 430.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.00297/0.00297, allocations: 103.8 kB / 0.6474 GB, free: 7.57 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3694, allocations: 95.34 MB / 0.7405 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002271/0.3717, allocations: 1.544 MB / 0.742 GB, free: 16.39 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0003031/0.372, allocations: 122.2 kB / 0.7421 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.446e-05/0.372, allocations: 1.375 kB / 0.7421 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 2.239e-05/0.3721, allocations: 4.656 kB / 0.7421 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 3.744e-05/0.3721, allocations: 6 kB / 0.7421 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.3723, allocations: 22.94 kB / 0.7421 GB, free: 16.29 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 6.316e-05/0.3724, allocations: 29.27 kB / 0.7421 GB, free: 16.27 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 8.818e-05/0.3724, allocations: 12.31 kB / 0.7422 GB, free: 16.27 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.237e-05/0.3725, allocations: 10.91 kB / 0.7422 GB, free: 16.26 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 4.413e-05/0.3725, allocations: 15.38 kB / 0.7422 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.3725, allocations: 3.375 kB / 0.7422 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 5.119e-05/0.3726, allocations: 13.02 kB / 0.7422 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 1.385e-05/0.3726, allocations: 7.328 kB / 0.7422 GB, free: 16.25 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.092e-05/0.3726, allocations: 19.98 kB / 0.7422 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.3727, allocations: 34.58 kB / 0.7423 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.3727, allocations: 0 / 0.7423 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3727, allocations: 1.344 kB / 0.7423 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.3727, allocations: 0 / 0.7423 GB, free: 16.21 MB / 0.5919 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.0003408/0.3731, allocations: 268.8 kB / 0.7425 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/0.3731, allocations: 11.19 kB / 0.7425 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.706e-05/0.3731, allocations: 6.266 kB / 0.7425 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.306e-05/0.3732, allocations: 106.2 kB / 0.7426 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.3732, allocations: 1.344 kB / 0.7426 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.3732, allocations: 7.438 kB / 0.7426 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.3734, allocations: 58.95 kB / 0.7427 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.3734, allocations: 4.125 kB / 0.7427 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.3734, allocations: 7.875 kB / 0.7427 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.3734, allocations: 1.375 kB / 0.7427 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001809/0.3736, allocations: 46.38 kB / 0.7427 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002479/0.3738, allocations: 209.8 kB / 0.7429 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003088/0.3742, allocations: 60.84 kB / 0.743 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.34e-05/0.3742, allocations: 33.45 kB / 0.743 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.204e-05/0.3743, allocations: 3.844 kB / 0.743 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.174e-05/0.3743, allocations: 37.78 kB / 0.7431 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3743, allocations: 0 / 0.7431 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of matching and sorting (n=3): time 0.0003566/0.3747, allocations: 88.2 kB / 0.7432 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.706e-05/0.3747, allocations: 53.14 kB / 0.7432 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.662e-05/0.3748, allocations: 105 kB / 0.7433 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.853e-06/0.3748, allocations: 26.92 kB / 0.7433 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 2.044e-05/0.3748, allocations: 82.03 kB / 0.7434 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 1.274e-05/0.3748, allocations: 13.58 kB / 0.7434 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.3748, allocations: 14.56 kB / 0.7434 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.359e-05/0.3749, allocations: 322.2 kB / 0.7438 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.967e-05/0.3749, allocations: 15.59 kB / 0.7438 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.16e-05/0.375, allocations: 21.38 kB / 0.7438 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.3752, allocations: 48.47 kB / 0.7438 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.3752, allocations: 1.219 kB / 0.7438 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001994/0.3754, allocations: 77.7 kB / 0.7439 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.3754, allocations: 4.812 kB / 0.7439 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3754, allocations: 5.406 kB / 0.7439 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.3754, allocations: 0 / 0.7439 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.866e-05/0.3755, allocations: 15.38 kB / 0.7439 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.688e-06/0.3755, allocations: 4.641 kB / 0.7439 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.683e-05/0.3756, allocations: 11 kB / 0.7439 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.3756, allocations: 1.25 kB / 0.7439 GB, free: 14.69 MB / 0.5919 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 3.973e-05/0.3756, allocations: 108.2 kB / 0.7441 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.3756, allocations: 5.922 kB / 0.7441 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.3759, allocations: 86.23 kB / 0.7441 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3759, allocations: 1.156 kB / 0.7441 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3759, allocations: 0.6094 kB / 0.7441 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3759, allocations: 9.688 kB / 0.7441 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.959e-05/0.376, allocations: 106.4 kB / 0.7443 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.376, allocations: 0.9062 kB / 0.7443 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.638e-05/0.376, allocations: 15.27 kB / 0.7443 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.376, allocations: 0 / 0.7443 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.376, allocations: 2.016 kB / 0.7443 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.376, allocations: 3.938 kB / 0.7443 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3761, allocations: 0.8438 kB / 0.7443 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002167/0.3763, allocations: 169.9 kB / 0.7444 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-06/0.3763, allocations: 13.52 kB / 0.7444 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.3763, allocations: 5.859 kB / 0.7445 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.524e-05/0.3764, allocations: 6.016 kB / 0.7445 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.774e-05/0.3764, allocations: 8.844 kB / 0.7445 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.3764, allocations: 3.047 kB / 0.7445 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 1.9e-05/0.3764, allocations: 83.75 kB / 0.7446 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6e-08/0.3764, allocations: 0 / 0.7446 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000222/0.3767, allocations: 6.656 kB / 0.7446 GB, free: 14.14 MB / 0.5919 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 9.773e-05/0.3768, allocations: 102.4 kB / 0.7447 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0002287/0.377, allocations: 48.72 kB / 0.7447 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.377, allocations: 1.406 kB / 0.7447 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 9.626e-05/0.3771, allocations: 20.45 kB / 0.7447 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.3773, allocations: 5.875 kB / 0.7447 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002288/0.3776, allocations: 118.6 kB / 0.7448 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.3e-05/0.3776, allocations: 61.11 kB / 0.7449 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 2.608e-05/0.3776, allocations: 8.703 kB / 0.7449 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.448e-05/0.3776, allocations: 15.45 kB / 0.7449 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of SimCode: time 3.41e-07/0.3776, allocations: 0 / 0.7449 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of Templates: time 0.002953/0.3806, allocations: 0.7464 MB / 0.7457 GB, free: 13.73 MB / 0.5919 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 -s ida -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.366432463051751] Failed to read output from testmodel.py, exit status != 0: 0.38780475803650916 0.398042455 0.022979512 Calling exit ...