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.001652/0.001652, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001891/0.001891, allocations: 210.5 kB / 22.24 MB, free: 4.859 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.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.857/2.857, allocations: 476 MB / 0.7699 GB, free: 4.766 MB / 0.6231 GB " [Timeout remaining time 176] 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.003089/0.003089, allocations: 68.81 kB / 1.117 GB, free: 41.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3266, allocations: 169.9 MB / 1.283 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002862/0.3294, allocations: 1.563 MB / 1.285 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003464/0.3298, allocations: 111.7 kB / 1.285 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.311e-05/0.3298, allocations: 0 / 1.285 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.921e-05/0.3299, allocations: 3.938 kB / 1.285 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.742e-05/0.3299, allocations: 7.938 kB / 1.285 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.3301, allocations: 23.97 kB / 1.285 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.113e-05/0.3302, allocations: 27.92 kB / 1.285 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.3303, allocations: 11.98 kB / 1.285 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.676e-05/0.3303, allocations: 7.938 kB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.4e-05/0.3304, allocations: 19.92 kB / 1.285 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.3304, allocations: 7.984 kB / 1.285 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.068e-05/0.3304, allocations: 15.98 kB / 1.285 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.361e-05/0.3305, allocations: 4 kB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.608e-05/0.3305, allocations: 11.94 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.3306, allocations: 39.81 kB / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3306, allocations: 0 / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3306, allocations: 0 / 1.285 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.3306, allocations: 0 / 1.285 GB, free: 10.09 MB / 0.9825 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.0004557/0.3311, allocations: 270.3 kB / 1.285 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.3311, allocations: 12.03 kB / 1.285 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.715e-05/0.3311, allocations: 4.875 kB / 1.285 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.3313, allocations: 110.5 kB / 1.285 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.3313, allocations: 384 / 1.285 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.3313, allocations: 4.375 kB / 1.285 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.3315, allocations: 54.23 kB / 1.285 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.3315, allocations: 3.938 kB / 1.285 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-06/0.3315, allocations: 4 kB / 1.285 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.3315, allocations: 0 / 1.285 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001855/0.3317, allocations: 47.94 kB / 1.285 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003657/0.332, allocations: 216.5 kB / 1.286 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003207/0.3324, allocations: 50.48 kB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.3325, allocations: 28.89 kB / 1.286 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.28e-05/0.3326, allocations: 4 kB / 1.286 GB, free: 9.199 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/0.3326, allocations: 34.56 kB / 1.286 GB, free: 9.156 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3326, allocations: 3.938 kB / 1.286 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003911/0.333, allocations: 97.56 kB / 1.286 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.333, allocations: 59.34 kB / 1.286 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.359e-05/0.3331, allocations: 101.8 kB / 1.286 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.3331, allocations: 25.7 kB / 1.286 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.989e-05/0.3332, allocations: 84.09 kB / 1.286 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.3332, allocations: 11.95 kB / 1.286 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.3333, allocations: 13.72 kB / 1.286 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3334, allocations: 318.8 kB / 1.286 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.148e-05/0.3335, allocations: 19.98 kB / 1.286 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.007e-05/0.3336, allocations: 15.98 kB / 1.286 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.3338, allocations: 48.81 kB / 1.286 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3338, allocations: 3.938 kB / 1.286 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000226/0.334, allocations: 73.59 kB / 1.286 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.334, allocations: 11.98 kB / 1.286 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.334, allocations: 0 / 1.286 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.334, allocations: 0 / 1.286 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.942e-05/0.3341, allocations: 8 kB / 1.286 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.3341, allocations: 3.984 kB / 1.286 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.947e-05/0.3342, allocations: 15.94 kB / 1.286 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.3342, allocations: 0 / 1.286 GB, free: 8.195 MB / 0.9825 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.674e-05/0.3342, allocations: 113.8 kB / 1.287 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.3343, allocations: 3.984 kB / 1.287 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002788/0.3346, allocations: 93.27 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.3346, allocations: 0.5625 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3346, allocations: 0 / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3346, allocations: 0 / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000141/0.3347, allocations: 109.3 kB / 1.287 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.3347, allocations: 3.938 kB / 1.287 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.247e-05/0.3348, allocations: 8 kB / 1.287 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3348, allocations: 3.984 kB / 1.287 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.3348, allocations: 0 / 1.287 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3348, allocations: 4 kB / 1.287 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3348, allocations: 0 / 1.287 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.3351, allocations: 175.4 kB / 1.287 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.497e-06/0.3351, allocations: 7.938 kB / 1.287 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.3351, allocations: 7.922 kB / 1.287 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.324e-05/0.3352, allocations: 4 kB / 1.287 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.3352, allocations: 7.984 kB / 1.287 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.3352, allocations: 4 kB / 1.287 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.01e-05/0.3353, allocations: 79.28 kB / 1.287 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3353, allocations: 4 kB / 1.287 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002263/0.3355, allocations: 11.94 kB / 1.287 GB, free: 7.504 MB / 0.9825 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.0001407/0.3356, allocations: 103.2 kB / 1.287 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002318/0.3359, allocations: 39.95 kB / 1.287 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.3359, allocations: 0 / 1.287 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.336, allocations: 31.91 kB / 1.287 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.3362, allocations: 11.94 kB / 1.287 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002828/0.3365, allocations: 111.3 kB / 1.287 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.362e-05/0.3366, allocations: 67.34 kB / 1.287 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.871e-05/0.3366, allocations: 0 / 1.287 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.78e-05/0.3366, allocations: 11.44 kB / 1.287 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of SimCode: time 3.61e-07/0.3366, allocations: 0 / 1.287 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of Templates: time 0.003387/0.34, allocations: 0.7586 MB / 1.288 GB, free: 6.328 MB / 0.9825 GB " [Timeout remaining time 299] 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 -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/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: 8.95631599612534]