Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.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.001842/0.001842, 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.002369/0.002369, allocations: 216.9 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.517/1.517, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.826/2.826, allocations: 476 MB / 0.7707 GB, free: 4.781 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.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial") [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.0022/0.0022, allocations: 67.44 kB / 1.118 GB, free: 41.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3889, allocations: 169.9 MB / 1.284 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.003041/0.392, allocations: 1.571 MB / 1.285 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0004162/0.3924, allocations: 123.6 kB / 1.285 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.081e-05/0.3924, allocations: 0 / 1.285 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.489e-05/0.3925, allocations: 7.922 kB / 1.285 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.718e-05/0.3925, allocations: 0 / 1.285 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003678/0.3929, allocations: 35.89 kB / 1.285 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.724e-05/0.393, allocations: 39.86 kB / 1.286 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.3931, allocations: 8 kB / 1.286 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.321e-05/0.3931, allocations: 19.92 kB / 1.286 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.366e-05/0.3932, allocations: 23.91 kB / 1.286 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.3932, allocations: 4 kB / 1.286 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.451e-05/0.3933, allocations: 19.98 kB / 1.286 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.784e-05/0.3933, allocations: 7.984 kB / 1.286 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.097e-05/0.3933, allocations: 15.92 kB / 1.286 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.3935, allocations: 43.81 kB / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3935, allocations: 0 / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.615e-06/0.3935, allocations: 0 / 1.286 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.3935, allocations: 3.938 kB / 1.286 GB, free: 10.01 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.00054/0.394, allocations: 284.2 kB / 1.286 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.3941, allocations: 12.03 kB / 1.286 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.152e-05/0.3941, allocations: 12.89 kB / 1.286 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.3943, allocations: 110.5 kB / 1.286 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.3943, allocations: 4.375 kB / 1.286 GB, free: 9.539 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.3943, allocations: 4.375 kB / 1.286 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.3945, allocations: 62.22 kB / 1.286 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.3945, allocations: 192 / 1.286 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.3945, allocations: 7.938 kB / 1.286 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3946, allocations: 0 / 1.286 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.3948, allocations: 51.89 kB / 1.286 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004146/0.3952, allocations: 212.5 kB / 1.286 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003311/0.3955, allocations: 66.45 kB / 1.286 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.924e-05/0.3956, allocations: 24.91 kB / 1.286 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001203/0.3957, allocations: 11.98 kB / 1.286 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.3958, allocations: 38.5 kB / 1.287 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.3958, allocations: 0 / 1.287 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004023/0.3962, allocations: 97.62 kB / 1.287 GB, free: 8.91 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.3962, allocations: 51.41 kB / 1.287 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.599e-05/0.3963, allocations: 105.8 kB / 1.287 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.3963, allocations: 25.7 kB / 1.287 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.831e-05/0.3964, allocations: 88.09 kB / 1.287 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.3964, allocations: 7.953 kB / 1.287 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.161e-05/0.3964, allocations: 21.7 kB / 1.287 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.3966, allocations: 310.8 kB / 1.287 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.3967, allocations: 27.97 kB / 1.287 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.025e-05/0.3968, allocations: 23.92 kB / 1.287 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001643/0.3969, allocations: 40.81 kB / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.397, allocations: 7.875 kB / 1.287 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002143/0.3972, allocations: 73.66 kB / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3972, allocations: 5.719 kB / 1.287 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3972, allocations: 4 kB / 1.287 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.3972, allocations: 4 kB / 1.287 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.286e-05/0.3973, allocations: 7.984 kB / 1.287 GB, free: 8.066 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.249e-06/0.3973, allocations: 4 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.879e-05/0.3974, allocations: 7.984 kB / 1.287 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.3974, allocations: 0 / 1.287 GB, free: 8.055 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 (falFac.y,rea2Int.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.0001067/0.3975, allocations: 125.7 kB / 1.288 GB, free: 7.922 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.3975, allocations: 3.953 kB / 1.288 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.3978, allocations: 85.33 kB / 1.288 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.3978, allocations: 0 / 1.288 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3978, allocations: 0 / 1.288 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3978, allocations: 3.938 kB / 1.288 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001592/0.3979, allocations: 117.2 kB / 1.288 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3979, allocations: 256 / 1.288 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.809e-05/0.398, allocations: 15.98 kB / 1.288 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.398, allocations: 0 / 1.288 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.295e-06/0.398, allocations: 0 / 1.288 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.398, allocations: 0 / 1.288 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.398, allocations: 4 kB / 1.288 GB, free: 7.66 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.3983, allocations: 175.8 kB / 1.288 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.291e-05/0.3983, allocations: 12.03 kB / 1.288 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.3983, allocations: 0 / 1.288 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.483e-05/0.3984, allocations: 7.984 kB / 1.288 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.039e-05/0.3985, allocations: 11.98 kB / 1.288 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.3985, allocations: 0 / 1.288 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.88e-05/0.3985, allocations: 83.28 kB / 1.288 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3985, allocations: 0 / 1.288 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002369/0.3988, allocations: 15.95 kB / 1.288 GB, free: 7.344 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 (rea2Int.y,falFac.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.0001728/0.3989, allocations: 103.2 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002421/0.3992, allocations: 47.89 kB / 1.288 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3992, allocations: 0 / 1.288 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.784e-05/0.3993, allocations: 23.98 kB / 1.288 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.3996, allocations: 11.86 kB / 1.288 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003715/0.4, allocations: 157 kB / 1.288 GB, free: 6.965 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.744e-05/0.4, allocations: 63.34 kB / 1.288 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.018e-05/0.4, allocations: 7.438 kB / 1.288 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.4, allocations: 0 / 1.288 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of Templates: time 0.002555/0.4026, allocations: 0.8066 MB / 1.289 GB, free: 6.07 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.FallingFactorial.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.59216665290296]