Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.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.001883/0.001883, allocations: 87.69 kB / 20.24 MB, free: 4.184 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.001983/0.001983, allocations: 157.7 kB / 23.55 MB, free: 0.875 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.56/1.56, allocations: 177.1 MB / 203.9 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.888/2.888, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 0.7864 GB, free: 12.8 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.496e-05/2.659e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.79 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002978/0.003005, allocations: 1.546 MB / 0.7879 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0003833/0.003388, allocations: 124.4 kB / 0.788 GB, free: 11.13 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.675e-05/0.003425, allocations: 0.75 kB / 0.788 GB, free: 11.13 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.43e-05/0.003449, allocations: 3.938 kB / 0.788 GB, free: 11.13 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.767e-05/0.003497, allocations: 0.5625 kB / 0.788 GB, free: 11.13 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.003731, allocations: 32.47 kB / 0.788 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 7.636e-05/0.003807, allocations: 27.92 kB / 0.7881 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.595e-05/0.003893, allocations: 13.39 kB / 0.7881 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 6.315e-05/0.003956, allocations: 19.91 kB / 0.7881 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.653e-05/0.004003, allocations: 11.98 kB / 0.7881 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.004031, allocations: 4 kB / 0.7881 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.192e-05/0.004093, allocations: 9.031 kB / 0.7881 GB, free: 11.02 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.842e-05/0.004111, allocations: 7.984 kB / 0.7881 GB, free: 11.01 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.748e-05/0.004138, allocations: 13.08 kB / 0.7881 GB, free: 11 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.004264, allocations: 31.89 kB / 0.7882 GB, free: 10.96 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.004269, allocations: 4 kB / 0.7882 GB, free: 10.96 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.11e-07/0.004269, allocations: 1.25 kB / 0.7882 GB, free: 10.96 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.004273, allocations: 0 / 0.7882 GB, free: 10.96 MB / 0.7448 GB 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.0005025/0.004776, allocations: 360.3 kB / 0.7885 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.00481, allocations: 9.469 kB / 0.7885 GB, free: 10.56 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.846e-05/0.004858, allocations: 8.891 kB / 0.7885 GB, free: 10.55 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.004993, allocations: 112.6 kB / 0.7887 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.005013, allocations: 384 / 0.7887 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.005025, allocations: 9.469 kB / 0.7887 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.005185, allocations: 54.23 kB / 0.7887 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.005194, allocations: 192 / 0.7887 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-06/0.005202, allocations: 1.312 kB / 0.7887 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.005206, allocations: 384 / 0.7887 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.005342, allocations: 37.5 kB / 0.7888 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004414/0.005783, allocations: 271.7 kB / 0.789 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.0061, allocations: 58.97 kB / 0.7891 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.183e-05/0.006182, allocations: 29.02 kB / 0.7891 GB, free: 9.914 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 8.752e-05/0.006269, allocations: 7.938 kB / 0.7891 GB, free: 9.906 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.006304, allocations: 41.39 kB / 0.7891 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.006305, allocations: 2.969 kB / 0.7891 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0003314/0.006636, allocations: 85.53 kB / 0.7892 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.00668, allocations: 51.41 kB / 0.7893 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.006804, allocations: 157.9 kB / 0.7894 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.006824, allocations: 25.7 kB / 0.7895 GB, free: 9.5 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.513e-05/0.006919, allocations: 138.9 kB / 0.7896 GB, free: 9.359 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.749e-05/0.006937, allocations: 3.953 kB / 0.7896 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.832e-05/0.006985, allocations: 24.09 kB / 0.7896 GB, free: 9.324 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000325/0.00731, allocations: 497.8 kB / 0.7901 GB, free: 8.828 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.905e-05/0.007379, allocations: 15.98 kB / 0.7901 GB, free: 8.812 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.438e-05/0.007434, allocations: 11.98 kB / 0.7901 GB, free: 8.801 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001222/0.007556, allocations: 35.67 kB / 0.7901 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.007557, allocations: 1.75 kB / 0.7901 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001747/0.007732, allocations: 73.56 kB / 0.7902 GB, free: 8.684 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.007748, allocations: 7.938 kB / 0.7902 GB, free: 8.676 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.007752, allocations: 1.188 kB / 0.7902 GB, free: 8.676 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.007771, allocations: 8 kB / 0.7902 GB, free: 8.668 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.177e-05/0.007853, allocations: 7.984 kB / 0.7902 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.007858, allocations: 1.562 kB / 0.7902 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.141e-05/0.007899, allocations: 4 kB / 0.7902 GB, free: 8.656 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.007906, allocations: 0 / 0.7902 GB, free: 8.656 MB / 0.7448 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 (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 0.0001157/0.008021, allocations: 156.6 kB / 0.7904 GB, free: 8.492 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.008048, allocations: 1.688 kB / 0.7904 GB, free: 8.492 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002249/0.008272, allocations: 81.28 kB / 0.7905 GB, free: 8.402 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.008275, allocations: 0.5625 kB / 0.7905 GB, free: 8.402 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.008278, allocations: 4.844 kB / 0.7905 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.008281, allocations: 0 / 0.7905 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.008447, allocations: 120.6 kB / 0.7906 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.008448, allocations: 0.5312 kB / 0.7906 GB, free: 8.246 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.744e-05/0.008506, allocations: 4.688 kB / 0.7906 GB, free: 8.242 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.008508, allocations: 0 / 0.7906 GB, free: 8.242 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.008521, allocations: 8.516 kB / 0.7906 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.008525, allocations: 9.188 kB / 0.7906 GB, free: 8.227 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.008526, allocations: 0 / 0.7906 GB, free: 8.227 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002877/0.008814, allocations: 215.9 kB / 0.7908 GB, free: 7.996 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.624e-06/0.008821, allocations: 0.5312 kB / 0.7908 GB, free: 7.996 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.008839, allocations: 4 kB / 0.7908 GB, free: 7.992 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.117e-05/0.00891, allocations: 5.312 kB / 0.7908 GB, free: 7.988 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.813e-05/0.008968, allocations: 11.98 kB / 0.7908 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.008973, allocations: 0 / 0.7908 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 7.906e-05/0.009052, allocations: 136.3 kB / 0.791 GB, free: 7.844 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.009052, allocations: 0 / 0.791 GB, free: 7.844 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002208/0.009273, allocations: 8 kB / 0.791 GB, free: 7.836 MB / 0.7448 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.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.0001704/0.009444, allocations: 100.3 kB / 0.7911 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001997/0.009643, allocations: 44.47 kB / 0.7911 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.009653, allocations: 0 / 0.7911 GB, free: 7.684 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.757e-05/0.009741, allocations: 28.61 kB / 0.7911 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.009976, allocations: 8 kB / 0.7912 GB, free: 7.645 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003482/0.01032, allocations: 131.5 kB / 0.7913 GB, free: 7.488 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.735e-05/0.01039, allocations: 59.34 kB / 0.7913 GB, free: 7.41 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.02e-05/0.01042, allocations: 6.938 kB / 0.7913 GB, free: 7.406 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.063e-05/0.01046, allocations: 16.5 kB / 0.7914 GB, free: 7.387 MB / 0.7448 GB Notification: Performance of SimCode: time 5.51e-07/0.01046, allocations: 0 / 0.7914 GB, free: 7.387 MB / 0.7448 GB Notification: Performance of Templates: time 0.003874/0.01434, allocations: 0.7713 MB / 0.7921 GB, free: 6.652 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.877220797003247]