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.0009029/0.0009029, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.0009233/0.0009233, allocations: 169 kB / 23.02 MB, free: 1.547 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.043/1.043, allocations: 177.1 MB / 203.4 MB, free: 5.648 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.001713/0.001713, allocations: 234.3 kB / 260.2 MB, free: 12.84 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.7501/0.7501, allocations: 138.4 MB / 455.2 MB, free: 1.531 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.292e-06/1.292e-06, allocations: 0 / 0.5551 GB, free: 0.5 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.404e-05/2.533e-05, allocations: 2.312 kB / 0.5551 GB, free: 0.4961 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002119/0.002144, allocations: 1.57 MB / 0.5567 GB, free: 14.91 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003162/0.002461, allocations: 124.4 kB / 0.5568 GB, free: 14.79 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.263e-05/0.002493, allocations: 0 / 0.5568 GB, free: 14.79 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 2.919e-05/0.002522, allocations: 0 / 0.5568 GB, free: 14.79 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 4.756e-05/0.00257, allocations: 15.86 kB / 0.5568 GB, free: 14.77 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002649/0.002835, allocations: 23.97 kB / 0.5568 GB, free: 14.75 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 6.994e-05/0.002905, allocations: 31.86 kB / 0.5568 GB, free: 14.71 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.864e-05/0.002993, allocations: 4 kB / 0.5568 GB, free: 14.71 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.242e-05/0.003046, allocations: 19.97 kB / 0.5569 GB, free: 14.69 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.173e-05/0.003088, allocations: 11.98 kB / 0.5569 GB, free: 14.68 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.003104, allocations: 4 kB / 0.5569 GB, free: 14.68 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.599e-05/0.00317, allocations: 11.98 kB / 0.5569 GB, free: 14.66 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 1.424e-05/0.003184, allocations: 11.94 kB / 0.5569 GB, free: 14.65 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 1.861e-05/0.003203, allocations: 3.984 kB / 0.5569 GB, free: 14.65 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001217/0.003324, allocations: 43.89 kB / 0.5569 GB, free: 14.61 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.003328, allocations: 7.922 kB / 0.557 GB, free: 14.6 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.003329, allocations: 0 / 0.557 GB, free: 14.6 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.003333, allocations: 0 / 0.557 GB, free: 14.6 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.0003523/0.003686, allocations: 360.6 kB / 0.5573 GB, free: 14.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.003724, allocations: 12.75 kB / 0.5573 GB, free: 14.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.597e-05/0.00376, allocations: 0.9375 kB / 0.5573 GB, free: 14.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.439e-05/0.003844, allocations: 116.6 kB / 0.5574 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.003865, allocations: 4.375 kB / 0.5574 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.00388, allocations: 12.36 kB / 0.5574 GB, free: 14.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.004017, allocations: 58.89 kB / 0.5575 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.004026, allocations: 192 / 0.5575 GB, free: 13.97 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.004039, allocations: 8.375 kB / 0.5575 GB, free: 13.96 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.004047, allocations: 384 / 0.5575 GB, free: 13.96 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.541e-05/0.004083, allocations: 11.92 kB / 0.5575 GB, free: 13.95 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000308/0.004391, allocations: 251.8 kB / 0.5578 GB, free: 13.67 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001793/0.00457, allocations: 55.05 kB / 0.5578 GB, free: 13.61 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.675e-05/0.004597, allocations: 15.73 kB / 0.5578 GB, free: 13.59 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.952e-05/0.004676, allocations: 8 kB / 0.5578 GB, free: 13.58 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.004698, allocations: 37.39 kB / 0.5579 GB, free: 13.53 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.004699, allocations: 0 / 0.5579 GB, free: 13.53 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001535/0.004853, allocations: 53.62 kB / 0.5579 GB, free: 13.47 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/0.00488, allocations: 55.34 kB / 0.558 GB, free: 13.41 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.046e-05/0.004951, allocations: 166.1 kB / 0.5581 GB, free: 13.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.004961, allocations: 29.7 kB / 0.5582 GB, free: 13.19 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.365e-05/0.005005, allocations: 126.9 kB / 0.5583 GB, free: 13.06 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.00502, allocations: 7.891 kB / 0.5583 GB, free: 13.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/0.005054, allocations: 27.36 kB / 0.5583 GB, free: 13.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.00516, allocations: 496.1 kB / 0.5588 GB, free: 12.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.903e-05/0.005179, allocations: 4 kB / 0.5588 GB, free: 12.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.484e-05/0.005194, allocations: 8.172 kB / 0.5588 GB, free: 12.51 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.022e-05/0.005235, allocations: 23.77 kB / 0.5588 GB, free: 12.48 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.005236, allocations: 0 / 0.5588 GB, free: 12.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.826e-05/0.005305, allocations: 53.56 kB / 0.5589 GB, free: 12.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.005318, allocations: 7.938 kB / 0.5589 GB, free: 12.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.005323, allocations: 0 / 0.5589 GB, free: 12.42 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.005337, allocations: 0 / 0.5589 GB, free: 12.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.447e-05/0.005392, allocations: 11.98 kB / 0.5589 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.005397, allocations: 0 / 0.5589 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.023e-05/0.005418, allocations: 4 kB / 0.5589 GB, free: 12.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/0.005422, allocations: 4 kB / 0.5589 GB, free: 12.4 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.443e-05/0.005487, allocations: 160.6 kB / 0.559 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.715e-05/0.005504, allocations: 3.953 kB / 0.5591 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.005606, allocations: 57.3 kB / 0.5591 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.005607, allocations: 0 / 0.5591 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.005611, allocations: 0 / 0.5591 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.005613, allocations: 0 / 0.5591 GB, free: 12.16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.198e-05/0.005705, allocations: 116.6 kB / 0.5592 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.005708, allocations: 7.938 kB / 0.5592 GB, free: 12.01 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.325e-05/0.005741, allocations: 11.98 kB / 0.5592 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.005743, allocations: 0 / 0.5592 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.00575, allocations: 0 / 0.5592 GB, free: 12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.005753, allocations: 11.94 kB / 0.5592 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.005755, allocations: 0 / 0.5592 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.005855, allocations: 187.9 kB / 0.5594 GB, free: 11.78 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.505e-06/0.005863, allocations: 4 kB / 0.5594 GB, free: 11.78 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.147e-06/0.005872, allocations: 0 / 0.5594 GB, free: 11.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.509e-05/0.005907, allocations: 11.92 kB / 0.5594 GB, free: 11.77 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.355e-05/0.005951, allocations: 4 kB / 0.5594 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.005954, allocations: 3.984 kB / 0.5595 GB, free: 11.76 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.646e-05/0.005991, allocations: 131.2 kB / 0.5596 GB, free: 11.63 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.005991, allocations: 0 / 0.5596 GB, free: 11.63 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001525/0.006143, allocations: 8 kB / 0.5596 GB, free: 11.62 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.0001189/0.006262, allocations: 99.19 kB / 0.5597 GB, free: 11.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 8.634e-05/0.006349, allocations: 23.95 kB / 0.5597 GB, free: 11.49 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.00635, allocations: 0 / 0.5597 GB, free: 11.49 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.62e-05/0.006377, allocations: 31.69 kB / 0.5597 GB, free: 11.45 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001688/0.006545, allocations: 4 kB / 0.5597 GB, free: 11.45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002578/0.006803, allocations: 125.3 kB / 0.5599 GB, free: 11.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.59e-05/0.006839, allocations: 59.34 kB / 0.5599 GB, free: 11.22 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.831e-05/0.006857, allocations: 0 / 0.5599 GB, free: 11.22 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.721e-05/0.006885, allocations: 16.5 kB / 0.5599 GB, free: 11.21 MB / 490.7 MB Notification: Performance of SimCode: time 6.62e-07/0.006885, allocations: 0 / 0.5599 GB, free: 11.21 MB / 490.7 MB Notification: Performance of Templates: time 0.002529/0.009414, allocations: 0.7764 MB / 0.5607 GB, free: 10.44 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.855685669928789]