Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Utilities.Math.Functions.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.001132/0.001132, allocations: 80.92 kB / 20.75 MB, free: 3.742 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.001302/0.001302, allocations: 161 kB / 24.17 MB, free: 328 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 0.97/0.97, allocations: 177.2 MB / 204.6 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.882/1.882, allocations: 389.6 MB / 0.6354 GB, free: 12.3 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/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(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0.7656 kB / 0.7753 GB, free: 5.281 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.176e-05/2.35e-05, allocations: 5.688 kB / 0.7753 GB, free: 5.277 MB / 0.7292 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001716/0.001739, allocations: 0.6563 MB / 0.7759 GB, free: 4.645 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.0002714/0.002011, allocations: 51.78 kB / 0.7759 GB, free: 4.594 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.602e-05/0.002027, allocations: 0 / 0.7759 GB, free: 4.594 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.002044, allocations: 0 / 0.7759 GB, free: 4.594 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 6.161e-06/0.00205, allocations: 4 kB / 0.776 GB, free: 4.59 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002166/0.002267, allocations: 4.641 kB / 0.776 GB, free: 4.586 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 4.981e-05/0.002317, allocations: 4 kB / 0.776 GB, free: 4.582 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.002357, allocations: 3.938 kB / 0.776 GB, free: 4.578 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 3.154e-05/0.002388, allocations: 9.812 kB / 0.776 GB, free: 4.57 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 2.046e-05/0.002409, allocations: 0 / 0.776 GB, free: 4.57 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.002421, allocations: 0.7656 kB / 0.776 GB, free: 4.57 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001147/0.002535, allocations: 16.91 kB / 0.776 GB, free: 4.555 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 1.252e-05/0.002548, allocations: 4 kB / 0.776 GB, free: 4.551 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 1.199e-05/0.00256, allocations: 0.875 kB / 0.776 GB, free: 4.551 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 8.487e-05/0.002645, allocations: 12.58 kB / 0.776 GB, free: 4.539 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.002648, allocations: 0.7188 kB / 0.776 GB, free: 4.539 MB / 0.7292 GB Notification: Performance of FrontEnd: time 8.12e-07/0.002648, allocations: 0 / 0.776 GB, free: 4.539 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.366e-06/0.002652, allocations: 2.375 kB / 0.776 GB, free: 4.539 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000224/0.002876, allocations: 216.8 kB / 0.7762 GB, free: 4.301 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.002911, allocations: 9.344 kB / 0.7762 GB, free: 4.293 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.526e-05/0.002937, allocations: 0.9375 kB / 0.7762 GB, free: 4.293 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.193e-05/0.003009, allocations: 106.7 kB / 0.7763 GB, free: 4.164 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.00302, allocations: 4.375 kB / 0.7763 GB, free: 4.16 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.102e-06/0.003026, allocations: 3.094 kB / 0.7763 GB, free: 4.16 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.201e-05/0.003098, allocations: 30.27 kB / 0.7764 GB, free: 4.125 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.003107, allocations: 4.172 kB / 0.7764 GB, free: 4.121 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.003114, allocations: 5.578 kB / 0.7764 GB, free: 4.117 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.00312, allocations: 4.312 kB / 0.7764 GB, free: 4.113 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.07e-05/0.00314, allocations: 7.938 kB / 0.7764 GB, free: 4.105 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.801e-05/0.003228, allocations: 53.98 kB / 0.7764 GB, free: 4.039 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 4.032e-05/0.003269, allocations: 22.61 kB / 0.7765 GB, free: 4.008 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.559e-05/0.003284, allocations: 6.531 kB / 0.7765 GB, free: 4 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001139/0.003398, allocations: 12.05 kB / 0.7765 GB, free: 3.988 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.003422, allocations: 31.06 kB / 0.7765 GB, free: 3.949 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.003423, allocations: 1.438 kB / 0.7765 GB, free: 3.949 MB / 0.7292 GB Notification: Performance of matching and sorting (n=2): time 0.0001063/0.00353, allocations: 37.64 kB / 0.7765 GB, free: 3.906 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.00356, allocations: 51.41 kB / 0.7766 GB, free: 3.844 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.037e-05/0.003601, allocations: 99.16 kB / 0.7767 GB, free: 3.738 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.003612, allocations: 25.7 kB / 0.7767 GB, free: 3.707 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 2.265e-05/0.003635, allocations: 80.83 kB / 0.7768 GB, free: 3.625 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.003657, allocations: 12.22 kB / 0.7768 GB, free: 3.613 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.771e-05/0.003685, allocations: 15.44 kB / 0.7768 GB, free: 3.594 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.961e-05/0.003774, allocations: 314.8 kB / 0.7771 GB, free: 3.277 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.024e-05/0.003785, allocations: 4.875 kB / 0.7771 GB, free: 3.273 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.604e-06/0.003792, allocations: 4 kB / 0.7771 GB, free: 3.27 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.448e-05/0.003827, allocations: 17.84 kB / 0.7771 GB, free: 3.25 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.003829, allocations: 0 / 0.7771 GB, free: 3.25 MB / 0.7292 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.389e-05/0.003882, allocations: 34.27 kB / 0.7772 GB, free: 3.211 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.003895, allocations: 7.719 kB / 0.7772 GB, free: 3.207 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.003898, allocations: 0 / 0.7772 GB, free: 3.207 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.003912, allocations: 0 / 0.7772 GB, free: 3.207 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.692e-05/0.003959, allocations: 8.641 kB / 0.7772 GB, free: 3.199 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.675e-06/0.003962, allocations: 0 / 0.7772 GB, free: 3.199 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.301e-05/0.003975, allocations: 0 / 0.7772 GB, free: 3.199 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.00398, allocations: 4 kB / 0.7772 GB, free: 3.195 MB / 0.7292 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.024e-05/0.00404, allocations: 109.8 kB / 0.7773 GB, free: 3.078 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-06/0.004046, allocations: 0 / 0.7773 GB, free: 3.078 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.84e-05/0.004125, allocations: 52.41 kB / 0.7773 GB, free: 3.027 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.004127, allocations: 0 / 0.7773 GB, free: 3.027 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-06/0.004128, allocations: 0 / 0.7773 GB, free: 3.027 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.004131, allocations: 0 / 0.7773 GB, free: 3.027 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.383e-05/0.004195, allocations: 69.84 kB / 0.7774 GB, free: 2.941 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.004196, allocations: 0 / 0.7774 GB, free: 2.941 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.557e-05/0.004222, allocations: 7.984 kB / 0.7774 GB, free: 2.934 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.004224, allocations: 1.25 kB / 0.7774 GB, free: 2.934 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-06/0.004228, allocations: 0.9844 kB / 0.7774 GB, free: 2.934 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.00423, allocations: 0 / 0.7774 GB, free: 2.934 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.00423, allocations: 0 / 0.7774 GB, free: 2.934 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.74e-05/0.004298, allocations: 70.17 kB / 0.7775 GB, free: 2.848 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.444e-06/0.004305, allocations: 4 kB / 0.7775 GB, free: 2.844 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.518e-06/0.004315, allocations: 4.5 kB / 0.7775 GB, free: 2.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.517e-06/0.004324, allocations: 0 / 0.7775 GB, free: 2.84 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.015e-05/0.004344, allocations: 0.875 kB / 0.7775 GB, free: 2.84 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.004347, allocations: 0 / 0.7775 GB, free: 2.84 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 6.683e-06/0.004353, allocations: 6.5 kB / 0.7775 GB, free: 2.832 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8e-08/0.004353, allocations: 0 / 0.7775 GB, free: 2.832 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001607/0.004514, allocations: 8 kB / 0.7775 GB, free: 2.824 MB / 0.7292 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001028/0.004617, allocations: 86.66 kB / 0.7776 GB, free: 2.734 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 5.912e-05/0.004676, allocations: 13.73 kB / 0.7776 GB, free: 2.719 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.004678, allocations: 0 / 0.7776 GB, free: 2.719 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.058e-05/0.004698, allocations: 14.02 kB / 0.7776 GB, free: 2.703 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.233e-05/0.004751, allocations: 14.5 kB / 0.7776 GB, free: 2.691 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001576/0.004908, allocations: 80.72 kB / 0.7777 GB, free: 2.586 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.158e-05/0.00494, allocations: 55.36 kB / 0.7778 GB, free: 2.512 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 1.281e-05/0.004953, allocations: 0 / 0.7778 GB, free: 2.512 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.498e-05/0.004988, allocations: 56.42 kB / 0.7778 GB, free: 2.457 MB / 0.7292 GB Notification: Performance of SimCode: time 4.41e-07/0.004988, allocations: 0.7656 kB / 0.7778 GB, free: 2.457 MB / 0.7292 GB Notification: Performance of Templates: time 0.002225/0.007213, allocations: 370.8 kB / 0.7782 GB, free: 2.109 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & (cd run_cvode && ../Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s cvode) > Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] (rm -f Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_gbode.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_gbode.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_gbode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_gbode.sim & (cd run_gbode && ../Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s gbode -gbm=radauIIA3) > Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_gbode.pipe 2>&1) [Timeout 240] (rm -f Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_ida.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_ida.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_ida.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_ida.sim & (cd run_ida && ../Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s ida) > Buildings_13_Buildings.Utilities.Math.Functions.Examples.Factorial_ida.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.86222474090755]