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.001396/0.001396, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001569/0.001569, allocations: 215.6 kB / 22.99 MB, free: 4.945 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.557/1.557, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.907/2.907, allocations: 476 MB / 0.7707 GB, free: 4.734 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.002102/0.002102, allocations: 67.56 kB / 1.118 GB, free: 41.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.3705, allocations: 169.9 MB / 1.284 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002906/0.3734, allocations: 1.547 MB / 1.285 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0004112/0.3739, allocations: 115.7 kB / 1.285 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.271e-05/0.3739, allocations: 0 / 1.285 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.784e-05/0.3739, allocations: 7.875 kB / 1.285 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.213e-05/0.374, allocations: 0 / 1.285 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002624/0.3742, allocations: 31.91 kB / 1.285 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.802e-05/0.3743, allocations: 27.92 kB / 1.285 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.3744, allocations: 15.98 kB / 1.285 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.569e-05/0.3745, allocations: 8 kB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.08e-05/0.3745, allocations: 11.92 kB / 1.285 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.3745, allocations: 4 kB / 1.286 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.061e-05/0.3746, allocations: 15.98 kB / 1.286 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.904e-05/0.3746, allocations: 11.92 kB / 1.286 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.3746, allocations: 11.98 kB / 1.286 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.3748, allocations: 35.83 kB / 1.286 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3748, allocations: 0 / 1.286 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.644e-06/0.3748, allocations: 0 / 1.286 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.3748, allocations: 0 / 1.286 GB, free: 10.1 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.0004981/0.3753, allocations: 272.3 kB / 1.286 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.3753, allocations: 12.03 kB / 1.286 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.68e-05/0.3754, allocations: 0.9375 kB / 1.286 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.3755, allocations: 118.4 kB / 1.286 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.3755, allocations: 384 / 1.286 GB, free: 9.652 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.3755, allocations: 8.312 kB / 1.286 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.3757, allocations: 58.23 kB / 1.286 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.3757, allocations: 192 / 1.286 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.3757, allocations: 3.938 kB / 1.286 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.3757, allocations: 11.98 kB / 1.286 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.3759, allocations: 39.95 kB / 1.286 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003705/0.3763, allocations: 204.6 kB / 1.286 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.3766, allocations: 54.48 kB / 1.286 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.3767, allocations: 36.77 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.046e-05/0.3768, allocations: 8 kB / 1.286 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.3769, allocations: 34.56 kB / 1.286 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3769, allocations: 0 / 1.286 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004049/0.3773, allocations: 93.56 kB / 1.286 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.3773, allocations: 51.41 kB / 1.287 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.246e-05/0.3774, allocations: 105.8 kB / 1.287 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.3774, allocations: 25.7 kB / 1.287 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.754e-05/0.3775, allocations: 88.09 kB / 1.287 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.9e-05/0.3775, allocations: 7.953 kB / 1.287 GB, free: 8.742 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.3775, allocations: 17.72 kB / 1.287 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.3777, allocations: 318.8 kB / 1.287 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.888e-05/0.3778, allocations: 11.98 kB / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.979e-05/0.3779, allocations: 19.98 kB / 1.287 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.378, allocations: 48.81 kB / 1.287 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.378, allocations: 0 / 1.287 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00022/0.3783, allocations: 85.52 kB / 1.287 GB, free: 8.227 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3783, allocations: 8 kB / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3783, allocations: 0 / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.3783, allocations: 0 / 1.287 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.378e-05/0.3784, allocations: 11.98 kB / 1.287 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.3784, allocations: 0 / 1.287 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.879e-05/0.3784, allocations: 7.938 kB / 1.287 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-06/0.3784, allocations: 0 / 1.287 GB, free: 8.199 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.749e-05/0.3785, allocations: 117.8 kB / 1.287 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.527e-05/0.3786, allocations: 7.938 kB / 1.287 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.3788, allocations: 85.84 kB / 1.287 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3788, allocations: 3.938 kB / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3788, allocations: 0 / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.3788, allocations: 0 / 1.287 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001398/0.379, allocations: 109.3 kB / 1.288 GB, free: 7.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.379, allocations: 4 kB / 1.288 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.377e-05/0.3791, allocations: 11.97 kB / 1.288 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.844e-06/0.3791, allocations: 7.984 kB / 1.288 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-06/0.3791, allocations: 4 kB / 1.288 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3791, allocations: 0 / 1.288 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3791, allocations: 4 kB / 1.288 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002787/0.3794, allocations: 163.5 kB / 1.288 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.089e-05/0.3794, allocations: 7.922 kB / 1.288 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.3794, allocations: 4 kB / 1.288 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-05/0.3795, allocations: 8 kB / 1.288 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/0.3795, allocations: 3.984 kB / 1.288 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.3795, allocations: 7.938 kB / 1.288 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.082e-05/0.3796, allocations: 87.22 kB / 1.288 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3796, allocations: 0 / 1.288 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002323/0.3798, allocations: 11.98 kB / 1.288 GB, free: 7.5 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.0001568/0.38, allocations: 99.25 kB / 1.288 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002346/0.3802, allocations: 43.95 kB / 1.288 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3802, allocations: 0 / 1.288 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.756e-05/0.3803, allocations: 23.97 kB / 1.288 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.3806, allocations: 8 kB / 1.288 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003523/0.3809, allocations: 148.9 kB / 1.288 GB, free: 7.141 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.143e-05/0.381, allocations: 59.34 kB / 1.288 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.343e-05/0.381, allocations: 15.44 kB / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.381, allocations: 0 / 1.288 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of Templates: time 0.002452/0.3835, allocations: 0.7407 MB / 1.289 GB, free: 6.309 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/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: 11.689263534266502]