Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001903/0.001903, 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.001847/0.001847, allocations: 217.1 kB / 22.25 MB, free: 4.855 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.436/1.436, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.26/3.26, allocations: 0.5107 GB / 0.8158 GB, free: 17.78 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.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.002148/0.002148, allocations: 67.92 kB / 1.186 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3451, allocations: 181.9 MB / 1.364 GB, free: 13.48 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001715/0.3468, allocations: 0.5902 MB / 1.364 GB, free: 12.89 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002483/0.3471, allocations: 44.28 kB / 1.364 GB, free: 12.85 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.612e-05/0.3471, allocations: 4 kB / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.82e-05/0.3471, allocations: 3.938 kB / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.071e-06/0.3471, allocations: 0 / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002067/0.3473, allocations: 11.98 kB / 1.365 GB, free: 12.83 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 3.741e-05/0.3474, allocations: 0 / 1.365 GB, free: 12.83 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.828e-05/0.3474, allocations: 4 kB / 1.365 GB, free: 12.82 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 1.208e-05/0.3474, allocations: 0 / 1.365 GB, free: 12.82 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 2.486e-05/0.3474, allocations: 15.91 kB / 1.365 GB, free: 12.81 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 8.687e-06/0.3474, allocations: 4 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.703e-05/0.3475, allocations: 4 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.037e-05/0.3475, allocations: 7.938 kB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.622e-05/0.3475, allocations: 4 kB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 8.161e-05/0.3476, allocations: 7.984 kB / 1.365 GB, free: 12.78 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3476, allocations: 0 / 1.365 GB, free: 12.78 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3476, allocations: 0 / 1.365 GB, free: 12.78 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.3476, allocations: 0 / 1.365 GB, free: 12.78 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003111/0.3479, allocations: 246.4 kB / 1.365 GB, free: 12.51 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.348, allocations: 15.97 kB / 1.365 GB, free: 12.49 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.666e-05/0.348, allocations: 0.9375 kB / 1.365 GB, free: 12.49 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.741e-05/0.3481, allocations: 106.5 kB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.3481, allocations: 384 / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.312e-05/0.3481, allocations: 4.375 kB / 1.365 GB, free: 12.36 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.166e-05/0.3482, allocations: 26.27 kB / 1.365 GB, free: 12.33 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.3482, allocations: 4.188 kB / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.3482, allocations: 11.86 kB / 1.365 GB, free: 12.31 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3482, allocations: 3.984 kB / 1.365 GB, free: 12.31 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.172e-05/0.3483, allocations: 8 kB / 1.365 GB, free: 12.3 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001257/0.3484, allocations: 101.3 kB / 1.365 GB, free: 12.17 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 6.57e-05/0.3484, allocations: 30.55 kB / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.239e-05/0.3485, allocations: 8.922 kB / 1.365 GB, free: 12.12 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001242/0.3486, allocations: 7.984 kB / 1.365 GB, free: 12.11 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.3486, allocations: 30.56 kB / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.3486, allocations: 0 / 1.365 GB, free: 12.07 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0001389/0.3488, allocations: 45.62 kB / 1.365 GB, free: 12.02 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.3488, allocations: 59.34 kB / 1.365 GB, free: 11.95 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.874e-05/0.3488, allocations: 89.86 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.3489, allocations: 25.7 kB / 1.365 GB, free: 11.82 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.105e-05/0.3489, allocations: 80.14 kB / 1.365 GB, free: 11.74 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.694e-05/0.3489, allocations: 8.078 kB / 1.365 GB, free: 11.73 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.142e-05/0.3489, allocations: 17.72 kB / 1.365 GB, free: 11.71 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3491, allocations: 310.8 kB / 1.366 GB, free: 11.4 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.274e-05/0.3491, allocations: 4 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.526e-06/0.3491, allocations: 3.984 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.943e-05/0.3491, allocations: 16.86 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3491, allocations: 0 / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.65e-05/0.3492, allocations: 33.7 kB / 1.366 GB, free: 11.33 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.003e-05/0.3492, allocations: 7.938 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.3492, allocations: 4.094 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.3492, allocations: 0 / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.454e-05/0.3493, allocations: 11.92 kB / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.3493, allocations: 0 / 1.366 GB, free: 11.31 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.3493, allocations: 4 kB / 1.366 GB, free: 11.3 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-06/0.3493, allocations: 3.938 kB / 1.366 GB, free: 11.3 MB / 1.061 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.926e-05/0.3494, allocations: 109.8 kB / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-06/0.3494, allocations: 0 / 1.366 GB, free: 11.18 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.721e-05/0.3495, allocations: 44.84 kB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3495, allocations: 3.938 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.3495, allocations: 4.031 kB / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3495, allocations: 0 / 1.366 GB, free: 11.12 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.534e-05/0.3495, allocations: 97.33 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3495, allocations: 3.938 kB / 1.366 GB, free: 10.99 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.794e-05/0.3496, allocations: 11.92 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.3496, allocations: 0 / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/0.3496, allocations: 0 / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3496, allocations: 0 / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3496, allocations: 3.938 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.997e-05/0.3497, allocations: 65.12 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.837e-06/0.3497, allocations: 4.031 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.177e-06/0.3497, allocations: 0 / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.439e-05/0.3497, allocations: 8 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.375e-05/0.3497, allocations: 7.938 kB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/0.3497, allocations: 0 / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.353e-05/0.3498, allocations: 75.28 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3498, allocations: 0 / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001845/0.3499, allocations: 7.938 kB / 1.366 GB, free: 10.79 MB / 1.061 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.0001556/0.3501, allocations: 99.23 kB / 1.366 GB, free: 10.68 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 7.879e-05/0.3502, allocations: 15.94 kB / 1.366 GB, free: 10.67 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3502, allocations: 0 / 1.366 GB, free: 10.67 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.681e-05/0.3502, allocations: 8 kB / 1.366 GB, free: 10.66 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.3503, allocations: 2.344 kB / 1.366 GB, free: 10.66 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000217/0.3505, allocations: 92.84 kB / 1.366 GB, free: 10.54 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.925e-05/0.3506, allocations: 55.36 kB / 1.367 GB, free: 10.47 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.367e-05/0.3506, allocations: 4 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.741e-05/0.3506, allocations: 7.438 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/0.3506, allocations: 0 / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of Templates: time 0.002517/0.3531, allocations: 324.7 kB / 1.367 GB, free: 10.14 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.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.733612274751067]