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.001299/0.001299, allocations: 85.38 kB / 19.76 MB, free: 2.023 MB / 14.72 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.001374/0.001374, allocations: 158.2 kB / 23.01 MB, free: 4.961 MB / 14.72 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.451/1.451, allocations: 177.2 MB / 203.4 MB, free: 8.938 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.64/2.64, allocations: 359.1 MB / 0.6044 GB, free: 14.87 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 63.89 kB / 0.9515 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2849, allocations: 169.9 MB / 1.117 GB, free: 2.586 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.0027/0.2876, allocations: 1.546 MB / 1.119 GB, free: 1.031 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003551/0.2879, allocations: 131.6 kB / 1.119 GB, free: 0.9023 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.043e-05/0.288, allocations: 0 / 1.119 GB, free: 0.9023 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.269e-05/0.288, allocations: 0 / 1.119 GB, free: 0.9023 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.294e-05/0.288, allocations: 3.938 kB / 1.119 GB, free: 0.8984 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.2883, allocations: 19.92 kB / 1.119 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.038e-05/0.2883, allocations: 31.92 kB / 1.119 GB, free: 0.8477 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.041e-05/0.2884, allocations: 11.98 kB / 1.119 GB, free: 0.8359 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.26e-05/0.2885, allocations: 11.98 kB / 1.119 GB, free: 0.8242 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.04e-05/0.2885, allocations: 15.92 kB / 1.119 GB, free: 0.8086 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.2885, allocations: 4 kB / 1.119 GB, free: 0.8047 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.171e-05/0.2886, allocations: 19.92 kB / 1.119 GB, free: 0.7852 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.202e-05/0.2886, allocations: 4 kB / 1.119 GB, free: 0.7812 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.427e-05/0.2886, allocations: 11.94 kB / 1.119 GB, free: 0.7695 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.2887, allocations: 35.88 kB / 1.119 GB, free: 0.7344 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2887, allocations: 0 / 1.119 GB, free: 0.7344 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2887, allocations: 0 / 1.119 GB, free: 0.7344 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.2887, allocations: 0 / 1.119 GB, free: 0.7344 MB / 1.061 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.0004504/0.2892, allocations: 270.3 kB / 1.119 GB, free: 448 kB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.2892, allocations: 15.97 kB / 1.12 GB, free: 432 kB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.952e-05/0.2893, allocations: 0.9375 kB / 1.12 GB, free: 432 kB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.2894, allocations: 114.5 kB / 1.12 GB, free: 292 kB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.2894, allocations: 4.375 kB / 1.12 GB, free: 288 kB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.2894, allocations: 4.375 kB / 1.12 GB, free: 284 kB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.2896, allocations: 54.23 kB / 1.12 GB, free: 224 kB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.2896, allocations: 192 / 1.12 GB, free: 224 kB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.2896, allocations: 3.938 kB / 1.12 GB, free: 220 kB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.2896, allocations: 7.938 kB / 1.12 GB, free: 212 kB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.2898, allocations: 35.95 kB / 1.12 GB, free: 176 kB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003446/0.2901, allocations: 212.5 kB / 1.12 GB, free: 15.93 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000328/0.2905, allocations: 54.61 kB / 1.12 GB, free: 15.87 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.2906, allocations: 32.83 kB / 1.12 GB, free: 15.84 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 7.537e-05/0.2906, allocations: 7.938 kB / 1.12 GB, free: 15.83 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.2907, allocations: 30.56 kB / 1.12 GB, free: 15.79 MB / 1.076 GB Notification: Performance of pre-optimization done (n=3): time 1.031e-06/0.2907, allocations: 0 / 1.12 GB, free: 15.79 MB / 1.076 GB Notification: Performance of matching and sorting (n=3): time 0.0003917/0.2911, allocations: 97.62 kB / 1.12 GB, free: 15.69 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.2911, allocations: 55.41 kB / 1.12 GB, free: 15.62 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.92e-05/0.2912, allocations: 105.8 kB / 1.12 GB, free: 15.51 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.2912, allocations: 25.7 kB / 1.12 GB, free: 15.48 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.083e-05/0.2912, allocations: 80.14 kB / 1.12 GB, free: 15.39 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.2913, allocations: 11.89 kB / 1.12 GB, free: 15.38 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.512e-05/0.2913, allocations: 17.72 kB / 1.12 GB, free: 15.36 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2914, allocations: 314.8 kB / 1.121 GB, free: 15.04 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.2915, allocations: 23.92 kB / 1.121 GB, free: 15.02 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.536e-05/0.2916, allocations: 19.98 kB / 1.121 GB, free: 15 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001835/0.2918, allocations: 44.81 kB / 1.121 GB, free: 14.95 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2918, allocations: 0 / 1.121 GB, free: 14.95 MB / 1.076 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002274/0.292, allocations: 78.06 kB / 1.121 GB, free: 14.87 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.292, allocations: 7.984 kB / 1.121 GB, free: 14.86 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.2921, allocations: 0 / 1.121 GB, free: 14.86 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.2921, allocations: 0 / 1.121 GB, free: 14.86 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.661e-05/0.2921, allocations: 16.03 kB / 1.121 GB, free: 14.85 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.2922, allocations: 0 / 1.121 GB, free: 14.85 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.994e-05/0.2922, allocations: 7.984 kB / 1.121 GB, free: 14.84 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.2922, allocations: 3.938 kB / 1.121 GB, free: 14.84 MB / 1.076 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 8.035e-05/0.2923, allocations: 113.8 kB / 1.121 GB, free: 14.71 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.128e-05/0.2923, allocations: 11.88 kB / 1.121 GB, free: 14.7 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002668/0.2926, allocations: 85.33 kB / 1.121 GB, free: 14.61 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2926, allocations: 0 / 1.121 GB, free: 14.61 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.2926, allocations: 4 kB / 1.121 GB, free: 14.61 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2926, allocations: 0 / 1.121 GB, free: 14.61 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.2927, allocations: 117.2 kB / 1.121 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.2927, allocations: 0 / 1.121 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.07e-05/0.2928, allocations: 15.88 kB / 1.121 GB, free: 14.45 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.2928, allocations: 3.984 kB / 1.121 GB, free: 14.44 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.2928, allocations: 4 kB / 1.121 GB, free: 14.44 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2928, allocations: 0 / 1.121 GB, free: 14.44 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.2928, allocations: 3.938 kB / 1.121 GB, free: 14.43 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.2931, allocations: 167.5 kB / 1.121 GB, free: 14.25 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 9.949e-06/0.2931, allocations: 7.938 kB / 1.121 GB, free: 14.25 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.2931, allocations: 3.984 kB / 1.121 GB, free: 14.24 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.823e-05/0.2932, allocations: 4 kB / 1.121 GB, free: 14.24 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.107e-05/0.2933, allocations: 7.984 kB / 1.121 GB, free: 14.23 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.2933, allocations: 4 kB / 1.121 GB, free: 14.23 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.035e-05/0.2933, allocations: 75.28 kB / 1.122 GB, free: 14.15 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2933, allocations: 4 kB / 1.122 GB, free: 14.15 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000229/0.2936, allocations: 4 kB / 1.122 GB, free: 14.14 MB / 1.076 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.000133/0.2937, allocations: 111.2 kB / 1.122 GB, free: 14.03 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.2939, allocations: 43.89 kB / 1.122 GB, free: 13.98 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2939, allocations: 0 / 1.122 GB, free: 13.98 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.294, allocations: 27.97 kB / 1.122 GB, free: 13.96 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.2943, allocations: 3.438 kB / 1.122 GB, free: 13.96 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002807/0.2946, allocations: 117.4 kB / 1.122 GB, free: 13.82 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.796e-05/0.2946, allocations: 67.34 kB / 1.122 GB, free: 13.73 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.567e-05/0.2946, allocations: 0 / 1.122 GB, free: 13.73 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.817e-05/0.2947, allocations: 12.5 kB / 1.122 GB, free: 13.72 MB / 1.076 GB Notification: Performance of SimCode: time 3.41e-07/0.2947, allocations: 0 / 1.122 GB, free: 13.72 MB / 1.076 GB Notification: Performance of Templates: time 0.003157/0.2978, allocations: 0.7388 MB / 1.123 GB, free: 12.98 MB / 1.076 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=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] 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/jenkins1/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: 8.067503683036193]