Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.001288/0.001288, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001413/0.001413, allocations: 219.1 kB / 23.01 MB, free: 4.605 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.417/1.417, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.205/3.205, allocations: 0.505 GB / 0.8108 GB, free: 22.03 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.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.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.002057/0.002057, allocations: 72.89 kB / 1.178 GB, free: 16.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3718, allocations: 180.2 MB / 1.354 GB, free: 7.918 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001854/0.3736, allocations: 0.5913 MB / 1.355 GB, free: 7.328 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003193/0.3739, allocations: 60.19 kB / 1.355 GB, free: 7.27 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.167e-05/0.374, allocations: 3.938 kB / 1.355 GB, free: 7.266 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.953e-05/0.374, allocations: 0 / 1.355 GB, free: 7.266 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.913e-06/0.374, allocations: 0 / 1.355 GB, free: 7.266 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003433/0.3743, allocations: 23.91 kB / 1.355 GB, free: 7.242 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001113/0.3744, allocations: 31.97 kB / 1.355 GB, free: 7.211 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 5.106e-05/0.3745, allocations: 0 / 1.355 GB, free: 7.211 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 2.335e-05/0.3745, allocations: 4 kB / 1.355 GB, free: 7.207 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 4.27e-05/0.3746, allocations: 19.97 kB / 1.355 GB, free: 7.188 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.3746, allocations: 0 / 1.355 GB, free: 7.188 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.3747, allocations: 27.98 kB / 1.355 GB, free: 7.16 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.704e-05/0.3747, allocations: 15.97 kB / 1.355 GB, free: 7.145 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.257e-05/0.3748, allocations: 15.88 kB / 1.355 GB, free: 7.129 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.3749, allocations: 35.83 kB / 1.355 GB, free: 7.094 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3749, allocations: 0 / 1.355 GB, free: 7.094 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3749, allocations: 0 / 1.355 GB, free: 7.094 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.733e-06/0.3749, allocations: 0 / 1.355 GB, free: 7.094 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004572/0.3754, allocations: 266.3 kB / 1.355 GB, free: 6.801 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.3754, allocations: 8.031 kB / 1.355 GB, free: 6.793 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.344e-05/0.3755, allocations: 4.938 kB / 1.355 GB, free: 6.789 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.3756, allocations: 110.5 kB / 1.355 GB, free: 6.656 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.3756, allocations: 8.375 kB / 1.355 GB, free: 6.648 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.3756, allocations: 384 / 1.355 GB, free: 6.648 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.3758, allocations: 66.22 kB / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3758, allocations: 192 / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.3758, allocations: 3.938 kB / 1.355 GB, free: 6.574 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3759, allocations: 0 / 1.355 GB, free: 6.574 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.376, allocations: 99.88 kB / 1.355 GB, free: 6.477 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002334/0.3763, allocations: 156.5 kB / 1.356 GB, free: 6.281 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.3764, allocations: 78.47 kB / 1.356 GB, free: 6.195 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.254e-05/0.3765, allocations: 28.84 kB / 1.356 GB, free: 6.164 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002214/0.3767, allocations: 19.97 kB / 1.356 GB, free: 6.145 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.3767, allocations: 38.56 kB / 1.356 GB, free: 6.098 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.432e-06/0.3767, allocations: 0 / 1.356 GB, free: 6.098 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.0003178/0.377, allocations: 117.8 kB / 1.356 GB, free: 5.977 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/0.3771, allocations: 59.34 kB / 1.356 GB, free: 5.906 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.967e-05/0.3772, allocations: 101.8 kB / 1.356 GB, free: 5.797 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.3772, allocations: 25.7 kB / 1.356 GB, free: 5.766 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 4.592e-05/0.3772, allocations: 80.14 kB / 1.356 GB, free: 5.684 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.678e-05/0.3773, allocations: 19.86 kB / 1.356 GB, free: 5.664 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.098e-05/0.3773, allocations: 33.7 kB / 1.356 GB, free: 5.625 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3775, allocations: 314.8 kB / 1.356 GB, free: 5.309 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.043e-05/0.3775, allocations: 19.98 kB / 1.357 GB, free: 5.289 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.358e-05/0.3776, allocations: 24.42 kB / 1.357 GB, free: 5.266 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.3777, allocations: 61 kB / 1.357 GB, free: 5.203 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3777, allocations: 4 kB / 1.357 GB, free: 5.199 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001426/0.3778, allocations: 89.59 kB / 1.357 GB, free: 5.105 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3778, allocations: 8 kB / 1.357 GB, free: 5.098 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.3778, allocations: 7.875 kB / 1.357 GB, free: 5.09 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.3779, allocations: 0 / 1.357 GB, free: 5.09 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.378, allocations: 20 kB / 1.357 GB, free: 5.07 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.378, allocations: 0 / 1.357 GB, free: 5.07 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.26e-05/0.378, allocations: 7.922 kB / 1.357 GB, free: 5.062 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.378, allocations: 4 kB / 1.357 GB, free: 5.059 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001673/0.3782, allocations: 126.4 kB / 1.357 GB, free: 4.926 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.3782, allocations: 7.938 kB / 1.357 GB, free: 4.918 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002567/0.3785, allocations: 133.3 kB / 1.357 GB, free: 4.777 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.3785, allocations: 0 / 1.357 GB, free: 4.777 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3785, allocations: 0 / 1.357 GB, free: 4.777 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3785, allocations: 0 / 1.357 GB, free: 4.777 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.3786, allocations: 152.6 kB / 1.357 GB, free: 4.586 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3786, allocations: 0 / 1.357 GB, free: 4.586 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.204e-05/0.3787, allocations: 20 kB / 1.357 GB, free: 4.566 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.3787, allocations: 3.938 kB / 1.357 GB, free: 4.562 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.3787, allocations: 7.984 kB / 1.357 GB, free: 4.555 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3787, allocations: 0 / 1.357 GB, free: 4.555 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3787, allocations: 0 / 1.357 GB, free: 4.555 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.3789, allocations: 121 kB / 1.357 GB, free: 4.418 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.33e-05/0.3789, allocations: 15.81 kB / 1.357 GB, free: 4.402 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.3789, allocations: 4 kB / 1.357 GB, free: 4.398 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.645e-05/0.379, allocations: 8 kB / 1.357 GB, free: 4.391 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.379, allocations: 7.984 kB / 1.357 GB, free: 4.383 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-06/0.379, allocations: 0 / 1.357 GB, free: 4.383 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.082e-05/0.3791, allocations: 75.28 kB / 1.357 GB, free: 4.309 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3791, allocations: 4 kB / 1.357 GB, free: 4.305 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000197/0.3793, allocations: 12 kB / 1.357 GB, free: 4.293 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0002076/0.3795, allocations: 111.2 kB / 1.358 GB, free: 4.176 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0001689/0.3796, allocations: 59.91 kB / 1.358 GB, free: 4.117 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3796, allocations: 0 / 1.358 GB, free: 4.117 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 5.629e-05/0.3797, allocations: 31.92 kB / 1.358 GB, free: 4.086 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.3798, allocations: 8 kB / 1.358 GB, free: 4.078 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003411/0.3802, allocations: 175.2 kB / 1.358 GB, free: 3.875 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.3806, allocations: 0.6846 MB / 1.358 GB, free: 3.164 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.429e-05/0.3806, allocations: 19.42 kB / 1.358 GB, free: 3.145 MB / 1.045 GB Notification: Performance of SimCode: time 2.61e-07/0.3806, allocations: 0 / 1.358 GB, free: 3.145 MB / 1.045 GB Notification: Performance of Templates: time 0.002796/0.3834, allocations: 0.9627 MB / 1.359 GB, free: 2.184 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.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.223042523983167]