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.00106/0.00106, allocations: 73.88 kB / 20.66 MB, free: 3.844 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.001132/0.001132, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.018/1.018, allocations: 177.2 MB / 204.5 MB, free: 5.5 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.001744/0.001744, allocations: 251.6 kB / 261.3 MB, free: 12.66 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.7386/0.7386, allocations: 138.4 MB / 456.3 MB, free: 30.02 MB / 410.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.874e-06/1.874e-06, allocations: 0 / 0.5564 GB, free: 15.88 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.566e-05/2.753e-05, allocations: 2.312 kB / 0.5564 GB, free: 15.87 MB / 490.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002481/0.002508, allocations: 1.578 MB / 0.5579 GB, free: 14.28 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003022/0.00281, allocations: 120.4 kB / 0.558 GB, free: 14.16 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.629e-05/0.002847, allocations: 0 / 0.558 GB, free: 14.16 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.463e-05/0.002871, allocations: 0 / 0.558 GB, free: 14.16 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 4.551e-05/0.002917, allocations: 3.938 kB / 0.558 GB, free: 14.15 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.003147, allocations: 27.91 kB / 0.558 GB, free: 14.12 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 6.38e-05/0.00321, allocations: 27.92 kB / 0.5581 GB, free: 14.1 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.51e-05/0.003296, allocations: 11.98 kB / 0.5581 GB, free: 14.09 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.984e-05/0.003345, allocations: 15.97 kB / 0.5581 GB, free: 14.07 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.166e-05/0.003387, allocations: 15.98 kB / 0.5581 GB, free: 14.05 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.003401, allocations: 4 kB / 0.5581 GB, free: 14.05 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.729e-05/0.003459, allocations: 8 kB / 0.5581 GB, free: 14.04 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.605e-05/0.003475, allocations: 11.92 kB / 0.5581 GB, free: 14.03 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.863e-05/0.003493, allocations: 11.98 kB / 0.5581 GB, free: 14.02 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 9.939e-05/0.003593, allocations: 31.84 kB / 0.5582 GB, free: 13.99 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.003595, allocations: 0 / 0.5582 GB, free: 13.99 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.003596, allocations: 0 / 0.5582 GB, free: 13.99 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.0036, allocations: 0 / 0.5582 GB, free: 13.99 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.0003367/0.003936, allocations: 372.5 kB / 0.5585 GB, free: 13.59 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.003971, allocations: 13.92 kB / 0.5585 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.277e-05/0.004003, allocations: 8.938 kB / 0.5586 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.558e-05/0.004079, allocations: 104.6 kB / 0.5587 GB, free: 13.44 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.004097, allocations: 8.375 kB / 0.5587 GB, free: 13.43 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.963e-06/0.004104, allocations: 384 / 0.5587 GB, free: 13.43 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/0.004223, allocations: 62.94 kB / 0.5587 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.00423, allocations: 192 / 0.5587 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-06/0.004238, allocations: 384 / 0.5587 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.004243, allocations: 4.312 kB / 0.5587 GB, free: 13.36 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.976e-05/0.004272, allocations: 11.94 kB / 0.5587 GB, free: 13.34 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002514/0.004524, allocations: 252.4 kB / 0.559 GB, free: 13.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.00468, allocations: 47.09 kB / 0.559 GB, free: 13.01 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.738e-05/0.004698, allocations: 7.688 kB / 0.559 GB, free: 13 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.712e-05/0.004755, allocations: 7.938 kB / 0.559 GB, free: 12.99 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.004777, allocations: 37.39 kB / 0.5591 GB, free: 12.95 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.004778, allocations: 0 / 0.5591 GB, free: 12.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001421/0.00492, allocations: 49.62 kB / 0.5591 GB, free: 12.89 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.004951, allocations: 55.39 kB / 0.5592 GB, free: 12.82 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.777e-05/0.005019, allocations: 157.9 kB / 0.5593 GB, free: 12.65 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.005031, allocations: 29.7 kB / 0.5594 GB, free: 12.62 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.298e-05/0.005074, allocations: 134.8 kB / 0.5595 GB, free: 12.48 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.005091, allocations: 15.88 kB / 0.5595 GB, free: 12.46 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.005126, allocations: 19.38 kB / 0.5595 GB, free: 12.44 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.005253, allocations: 0.4884 MB / 0.56 GB, free: 11.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.814e-05/0.005271, allocations: 7.922 kB / 0.56 GB, free: 11.93 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.399e-05/0.005285, allocations: 4 kB / 0.56 GB, free: 11.93 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.411e-05/0.00532, allocations: 12.16 kB / 0.56 GB, free: 11.91 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005321, allocations: 0 / 0.56 GB, free: 11.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.484e-05/0.005396, allocations: 49.67 kB / 0.5601 GB, free: 11.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.005409, allocations: 10.81 kB / 0.5601 GB, free: 11.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.005414, allocations: 4 kB / 0.5601 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.387e-06/0.005423, allocations: 3.938 kB / 0.5601 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.355e-05/0.005477, allocations: 7.984 kB / 0.5601 GB, free: 11.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.00548, allocations: 7.938 kB / 0.5601 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.361e-05/0.005504, allocations: 3.938 kB / 0.5601 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.369e-06/0.005508, allocations: 0 / 0.5601 GB, free: 11.82 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.888e-05/0.005577, allocations: 160.6 kB / 0.5603 GB, free: 11.65 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.005599, allocations: 0 / 0.5603 GB, free: 11.65 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.877e-05/0.005688, allocations: 53.36 kB / 0.5603 GB, free: 11.59 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.005692, allocations: 7.938 kB / 0.5603 GB, free: 11.59 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.005693, allocations: 0 / 0.5603 GB, free: 11.59 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.005696, allocations: 0 / 0.5603 GB, free: 11.59 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.005819, allocations: 101.2 kB / 0.5604 GB, free: 11.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.00582, allocations: 4 kB / 0.5604 GB, free: 11.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.677e-05/0.005857, allocations: 4 kB / 0.5604 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.00586, allocations: 3.984 kB / 0.5604 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-06/0.005864, allocations: 0 / 0.5604 GB, free: 11.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.005868, allocations: 11.98 kB / 0.5604 GB, free: 11.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.005869, allocations: 0 / 0.5604 GB, free: 11.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001103/0.005979, allocations: 199.8 kB / 0.5606 GB, free: 11.22 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.67e-06/0.005985, allocations: 4 kB / 0.5606 GB, free: 11.22 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.03e-05/0.005995, allocations: 4 kB / 0.5606 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.898e-05/0.006044, allocations: 0 / 0.5606 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.873e-05/0.006083, allocations: 15.92 kB / 0.5606 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-06/0.006087, allocations: 0 / 0.5606 GB, free: 11.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.935e-05/0.006126, allocations: 127.2 kB / 0.5608 GB, free: 11.07 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006126, allocations: 0 / 0.5608 GB, free: 11.07 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002187/0.006345, allocations: 8 kB / 0.5608 GB, free: 11.07 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.00011/0.006455, allocations: 95.25 kB / 0.5609 GB, free: 10.96 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 7.398e-05/0.006529, allocations: 31.61 kB / 0.5609 GB, free: 10.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.00653, allocations: 0 / 0.5609 GB, free: 10.93 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.723e-05/0.006557, allocations: 19.67 kB / 0.5609 GB, free: 10.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.006774, allocations: 5.375 kB / 0.5609 GB, free: 10.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002249/0.006999, allocations: 124.9 kB / 0.561 GB, free: 10.76 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.544e-05/0.007035, allocations: 55.36 kB / 0.5611 GB, free: 10.68 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.758e-05/0.007062, allocations: 15.92 kB / 0.5611 GB, free: 10.67 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.89e-05/0.007111, allocations: 70.2 kB / 0.5612 GB, free: 10.6 MB / 490.7 MB Notification: Performance of SimCode: time 6.21e-07/0.007112, allocations: 0 / 0.5612 GB, free: 10.6 MB / 490.7 MB Notification: Performance of Templates: time 0.002662/0.009774, allocations: 0.846 MB / 0.562 GB, free: 9.758 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.596420966088772]