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.001284/0.001284, allocations: 86.05 kB / 19.87 MB, free: 4.617 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.001635/0.001635, allocations: 170 kB / 23.27 MB, free: 1.219 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.003/1.003, allocations: 177.1 MB / 203.7 MB, free: 5.492 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.001872/0.001872, allocations: 237.7 kB / 260.5 MB, free: 12.64 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.7276/0.7276, allocations: 138.5 MB / 455.5 MB, free: 1.367 MB / 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.824e-06/1.824e-06, allocations: 0 / 0.5556 GB, free: 204 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.634e-05/2.816e-05, allocations: 6.25 kB / 0.5556 GB, free: 196 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002889/0.002917, allocations: 1.578 MB / 0.5572 GB, free: 14.6 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003507/0.003268, allocations: 120.5 kB / 0.5573 GB, free: 14.48 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.253e-05/0.00331, allocations: 4 kB / 0.5573 GB, free: 14.47 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.715e-05/0.003338, allocations: 3.938 kB / 0.5573 GB, free: 14.47 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 5.079e-05/0.003388, allocations: 7.922 kB / 0.5573 GB, free: 14.46 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002413/0.00363, allocations: 15.92 kB / 0.5573 GB, free: 14.45 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 6.773e-05/0.003697, allocations: 31.92 kB / 0.5573 GB, free: 14.41 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.584e-05/0.003783, allocations: 7.984 kB / 0.5573 GB, free: 14.41 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.497e-05/0.003868, allocations: 27.97 kB / 0.5574 GB, free: 14.38 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.394e-05/0.003912, allocations: 4 kB / 0.5574 GB, free: 14.38 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.003928, allocations: 4 kB / 0.5574 GB, free: 14.37 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.913e-05/0.003997, allocations: 15.92 kB / 0.5574 GB, free: 14.36 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.356e-05/0.00401, allocations: 11.94 kB / 0.5574 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.524e-05/0.004026, allocations: 11.97 kB / 0.5574 GB, free: 14.33 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.004126, allocations: 27.91 kB / 0.5574 GB, free: 14.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.004128, allocations: 0 / 0.5574 GB, free: 14.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.00413, allocations: 7.938 kB / 0.5574 GB, free: 14.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.357e-06/0.004133, allocations: 0 / 0.5574 GB, free: 14.3 MB / 490.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.0003087/0.004442, allocations: 368.6 kB / 0.5578 GB, free: 13.9 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.004478, allocations: 8.75 kB / 0.5578 GB, free: 13.89 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.004504, allocations: 4.938 kB / 0.5578 GB, free: 13.89 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.122e-05/0.004576, allocations: 116.6 kB / 0.5579 GB, free: 13.75 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.004591, allocations: 384 / 0.5579 GB, free: 13.75 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-06/0.004599, allocations: 4.375 kB / 0.5579 GB, free: 13.74 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.004707, allocations: 58.94 kB / 0.558 GB, free: 13.68 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.004713, allocations: 192 / 0.558 GB, free: 13.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.921e-06/0.004719, allocations: 384 / 0.558 GB, free: 13.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.004722, allocations: 384 / 0.558 GB, free: 13.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.356e-05/0.004746, allocations: 15.88 kB / 0.558 GB, free: 13.66 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002278/0.004974, allocations: 244.4 kB / 0.5582 GB, free: 13.39 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.005111, allocations: 47.09 kB / 0.5583 GB, free: 13.34 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.762e-05/0.005129, allocations: 15.75 kB / 0.5583 GB, free: 13.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.638e-05/0.005195, allocations: 7.984 kB / 0.5583 GB, free: 13.31 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.005214, allocations: 33.39 kB / 0.5583 GB, free: 13.27 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.005216, allocations: 0 / 0.5583 GB, free: 13.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001205/0.005336, allocations: 61.55 kB / 0.5584 GB, free: 13.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/0.005362, allocations: 55.39 kB / 0.5584 GB, free: 13.13 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.069e-05/0.005423, allocations: 161.9 kB / 0.5586 GB, free: 12.96 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.807e-06/0.005432, allocations: 29.7 kB / 0.5586 GB, free: 12.92 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.951e-05/0.005471, allocations: 130.9 kB / 0.5588 GB, free: 12.79 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.005487, allocations: 7.891 kB / 0.5588 GB, free: 12.78 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.677e-05/0.005513, allocations: 27.36 kB / 0.5588 GB, free: 12.75 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.005615, allocations: 496.1 kB / 0.5593 GB, free: 12.25 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.491e-05/0.00563, allocations: 4 kB / 0.5593 GB, free: 12.25 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.234e-05/0.005643, allocations: 7.984 kB / 0.5593 GB, free: 12.24 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.724e-05/0.00567, allocations: 19.62 kB / 0.5593 GB, free: 12.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.005671, allocations: 3.938 kB / 0.5593 GB, free: 12.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.108e-05/0.005732, allocations: 45.69 kB / 0.5593 GB, free: 12.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.005744, allocations: 8 kB / 0.5593 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.005749, allocations: 0 / 0.5593 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.238e-06/0.005758, allocations: 3.938 kB / 0.5593 GB, free: 12.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.573e-05/0.005804, allocations: 11.98 kB / 0.5594 GB, free: 12.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-06/0.005806, allocations: 0 / 0.5594 GB, free: 12.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.841e-05/0.005824, allocations: 4 kB / 0.5594 GB, free: 12.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-06/0.005828, allocations: 0 / 0.5594 GB, free: 12.13 MB / 490.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 6.396e-05/0.005892, allocations: 152.6 kB / 0.5595 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.363e-05/0.005905, allocations: 7.953 kB / 0.5595 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.136e-05/0.005987, allocations: 57.3 kB / 0.5596 GB, free: 11.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.676e-06/0.005991, allocations: 7.938 kB / 0.5596 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.005992, allocations: 0 / 0.5596 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.005994, allocations: 0 / 0.5596 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.721e-05/0.006082, allocations: 105.2 kB / 0.5597 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.006083, allocations: 0 / 0.5597 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.829e-05/0.006111, allocations: 8 kB / 0.5597 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.006113, allocations: 0 / 0.5597 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.006119, allocations: 3.984 kB / 0.5597 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.32e-07/0.00612, allocations: 0 / 0.5597 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.006121, allocations: 0 / 0.5597 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.18e-05/0.006213, allocations: 204.4 kB / 0.5599 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-06/0.006218, allocations: 0 / 0.5599 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.664e-06/0.006225, allocations: 0 / 0.5599 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.313e-05/0.006258, allocations: 4 kB / 0.5599 GB, free: 11.53 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.444e-05/0.006293, allocations: 11.92 kB / 0.5599 GB, free: 11.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.006297, allocations: 4 kB / 0.5599 GB, free: 11.52 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.118e-05/0.006328, allocations: 127.2 kB / 0.56 GB, free: 11.39 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006328, allocations: 0 / 0.56 GB, free: 11.39 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001442/0.006472, allocations: 8 kB / 0.56 GB, free: 11.38 MB / 490.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.0001043/0.006577, allocations: 103.2 kB / 0.5601 GB, free: 11.27 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 6.545e-05/0.006642, allocations: 19.67 kB / 0.5602 GB, free: 11.25 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.006643, allocations: 3.938 kB / 0.5602 GB, free: 11.25 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.918e-05/0.006663, allocations: 19.62 kB / 0.5602 GB, free: 11.22 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001616/0.006824, allocations: 11.98 kB / 0.5602 GB, free: 11.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002132/0.007037, allocations: 121.4 kB / 0.5603 GB, free: 11.07 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.338e-05/0.007071, allocations: 55.36 kB / 0.5604 GB, free: 10.99 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.091e-05/0.007092, allocations: 7.984 kB / 0.5604 GB, free: 10.98 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.699e-05/0.007139, allocations: 74.2 kB / 0.5604 GB, free: 10.91 MB / 490.7 MB Notification: Performance of SimCode: time 4.81e-07/0.007139, allocations: 0 / 0.5604 GB, free: 10.91 MB / 490.7 MB Notification: Performance of Templates: time 0.002248/0.009387, allocations: 0.8443 MB / 0.5613 GB, free: 10.07 MB / 490.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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6029426916502416]