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.000933/0.000933, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.0009845/0.0009845, allocations: 173 kB / 23.36 MB, free: 1.129 MB / 18.57 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.002/1.002, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 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.001745/0.001745, allocations: 237.9 kB / 260.5 MB, free: 12.69 MB / 250.7 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.7241/0.7241, allocations: 138.4 MB / 402.2 MB, free: 68 kB / 362.7 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: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 462.4 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.173e-05/1.301e-05, allocations: 4.297 kB / 462.4 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002597/0.00261, allocations: 1.634 MB / 464 MB, free: 15.76 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003349/0.002945, allocations: 121.9 kB / 464.1 MB, free: 15.68 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.373e-05/0.002979, allocations: 1.5 kB / 464.1 MB, free: 15.68 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 2.582e-05/0.003005, allocations: 0.7031 kB / 464.1 MB, free: 15.68 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 4.673e-05/0.003051, allocations: 6.641 kB / 464.1 MB, free: 15.68 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.003265, allocations: 23.92 kB / 464.1 MB, free: 15.67 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 7.311e-05/0.003338, allocations: 32.7 kB / 464.2 MB, free: 15.66 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.255e-05/0.003411, allocations: 9.625 kB / 464.2 MB, free: 15.65 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.024e-05/0.003471, allocations: 23.59 kB / 464.2 MB, free: 15.64 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.789e-05/0.003519, allocations: 9.594 kB / 464.2 MB, free: 15.64 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.003535, allocations: 2.719 kB / 464.2 MB, free: 15.64 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.284e-05/0.003617, allocations: 15.88 kB / 464.2 MB, free: 15.64 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 1.483e-05/0.003632, allocations: 8.922 kB / 464.2 MB, free: 15.63 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 2.073e-05/0.003653, allocations: 13.7 kB / 464.3 MB, free: 15.62 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001027/0.003756, allocations: 25.78 kB / 464.3 MB, free: 15.62 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.003758, allocations: 0.9688 kB / 464.3 MB, free: 15.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.003758, allocations: 0.625 kB / 464.3 MB, free: 15.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.976e-06/0.003761, allocations: 0 / 464.3 MB, free: 15.62 MB / 426.7 MB 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.0004938/0.004255, allocations: 242.6 kB / 464.5 MB, free: 15.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.004292, allocations: 10.91 kB / 464.5 MB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.695e-05/0.004319, allocations: 5.438 kB / 464.5 MB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.122e-05/0.0044, allocations: 113.6 kB / 464.6 MB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.004415, allocations: 1.406 kB / 464.6 MB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.496e-06/0.004423, allocations: 3.312 kB / 464.6 MB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.004545, allocations: 64.62 kB / 464.7 MB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.004553, allocations: 3.203 kB / 464.7 MB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.004562, allocations: 1.469 kB / 464.7 MB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.004568, allocations: 1.594 kB / 464.7 MB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.303e-05/0.004601, allocations: 12.09 kB / 464.7 MB, free: 15.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002392/0.00484, allocations: 156.8 kB / 464.9 MB, free: 15.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.004999, allocations: 35.92 kB / 464.9 MB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.274e-05/0.005022, allocations: 13.36 kB / 464.9 MB, free: 15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.33e-05/0.005086, allocations: 14.75 kB / 464.9 MB, free: 15 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.005108, allocations: 31.66 kB / 465 MB, free: 14.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.005109, allocations: 0 / 465 MB, free: 14.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001233/0.005233, allocations: 45.8 kB / 465 MB, free: 14.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.005261, allocations: 51.41 kB / 465.1 MB, free: 14.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.015e-05/0.005321, allocations: 111.8 kB / 465.2 MB, free: 14.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.958e-06/0.005331, allocations: 27.58 kB / 465.2 MB, free: 14.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.907e-05/0.00537, allocations: 86.33 kB / 465.3 MB, free: 14.63 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.005389, allocations: 14.33 kB / 465.3 MB, free: 14.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.005421, allocations: 15.97 kB / 465.3 MB, free: 14.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.384e-05/0.005505, allocations: 317.6 kB / 465.6 MB, free: 14.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.19e-05/0.005517, allocations: 4.156 kB / 465.6 MB, free: 14.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.221e-05/0.005529, allocations: 8.109 kB / 465.6 MB, free: 14.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.166e-05/0.005561, allocations: 15.3 kB / 465.7 MB, free: 14.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.005563, allocations: 0.75 kB / 465.7 MB, free: 14.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.806e-05/0.005621, allocations: 40.06 kB / 465.7 MB, free: 14.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.005632, allocations: 5 kB / 465.7 MB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.005637, allocations: 1.641 kB / 465.7 MB, free: 14.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.005648, allocations: 9.375 kB / 465.7 MB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.27e-05/0.005701, allocations: 7.672 kB / 465.7 MB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.114e-06/0.005703, allocations: 1.062 kB / 465.7 MB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.63e-05/0.005729, allocations: 5.375 kB / 465.7 MB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/0.005734, allocations: 1.312 kB / 465.7 MB, free: 14.24 MB / 426.7 MB 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 5.651e-05/0.005791, allocations: 113.7 kB / 465.8 MB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.109e-05/0.005812, allocations: 3.656 kB / 465.8 MB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.495e-05/0.005897, allocations: 47.38 kB / 465.9 MB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.0059, allocations: 6.781 kB / 465.9 MB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.005902, allocations: 0.7031 kB / 465.9 MB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.005906, allocations: 1.219 kB / 465.9 MB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001186/0.006024, allocations: 73.52 kB / 466 MB, free: 14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.006027, allocations: 3.875 kB / 466 MB, free: 14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.031e-05/0.006067, allocations: 14.05 kB / 466 MB, free: 14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.006069, allocations: 1.312 kB / 466 MB, free: 14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-06/0.006074, allocations: 1.734 kB / 466 MB, free: 14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.006076, allocations: 1.984 kB / 466 MB, free: 14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.006076, allocations: 1.5 kB / 466 MB, free: 14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9e-05/0.006166, allocations: 136.4 kB / 466.1 MB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-06/0.006172, allocations: 2.625 kB / 466.1 MB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.002e-05/0.006182, allocations: 1.547 kB / 466.1 MB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.576e-05/0.006238, allocations: 3.391 kB / 466.1 MB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.006278, allocations: 11.12 kB / 466.1 MB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.006283, allocations: 5.094 kB / 466.2 MB, free: 13.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 1.483e-05/0.006298, allocations: 12.59 kB / 466.2 MB, free: 13.85 MB / 426.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006298, allocations: 0 / 466.2 MB, free: 13.85 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002059/0.006504, allocations: 7.719 kB / 466.2 MB, free: 13.85 MB / 426.7 MB 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.0001057/0.006609, allocations: 92.88 kB / 466.3 MB, free: 13.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 6.643e-05/0.006676, allocations: 17.28 kB / 466.3 MB, free: 13.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.006678, allocations: 0 / 466.3 MB, free: 13.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 2.729e-05/0.006706, allocations: 14.3 kB / 466.3 MB, free: 13.76 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001671/0.006873, allocations: 5.875 kB / 466.3 MB, free: 13.76 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002368/0.007109, allocations: 115.8 kB / 466.4 MB, free: 13.64 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.87e-05/0.007148, allocations: 60.39 kB / 466.5 MB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.739e-05/0.007176, allocations: 7.688 kB / 466.5 MB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.017e-05/0.007226, allocations: 54.14 kB / 466.5 MB, free: 13.52 MB / 426.7 MB Notification: Performance of SimCode: time 5.31e-07/0.007226, allocations: 1.062 kB / 466.5 MB, free: 13.52 MB / 426.7 MB Notification: Performance of Templates: time 0.002779/0.01001, allocations: 0.7757 MB / 467.3 MB, free: 13.37 MB / 426.7 MB " [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=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.4283836940303445]