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.001361/0.001361, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001401/0.001401, allocations: 159.5 kB / 23.01 MB, free: 4.602 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.462/1.462, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.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 2.831/2.831, allocations: 394.2 MB / 0.6386 GB, free: 11.94 MB / 0.6075 GB " [Timeout remaining time 177] 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.002143/0.002143, allocations: 71.88 kB / 1.009 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7996/0.8017, allocations: 181.8 MB / 1.187 GB, free: 15.96 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001709/0.8035, allocations: 0.5997 MB / 1.187 GB, free: 15.59 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0002626/0.8037, allocations: 49.61 kB / 1.187 GB, free: 15.56 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.833e-05/0.8037, allocations: 3.938 kB / 1.187 GB, free: 15.56 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.483e-05/0.8038, allocations: 7.938 kB / 1.187 GB, free: 15.55 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.62e-06/0.8038, allocations: 0 / 1.187 GB, free: 15.55 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002808/0.804, allocations: 23.61 kB / 1.187 GB, free: 15.54 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 7.989e-05/0.8041, allocations: 25.8 kB / 1.187 GB, free: 15.54 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.016e-05/0.8042, allocations: 6.453 kB / 1.187 GB, free: 15.53 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 1.769e-05/0.8042, allocations: 7.281 kB / 1.187 GB, free: 15.53 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 2.966e-05/0.8042, allocations: 16.89 kB / 1.187 GB, free: 15.52 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.8042, allocations: 1.688 kB / 1.187 GB, free: 15.52 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 8.888e-05/0.8043, allocations: 21.47 kB / 1.187 GB, free: 15.52 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 2.79e-05/0.8043, allocations: 15.97 kB / 1.187 GB, free: 15.51 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.866e-05/0.8044, allocations: 12.97 kB / 1.187 GB, free: 15.5 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.8045, allocations: 41.33 kB / 1.187 GB, free: 15.48 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.8045, allocations: 0 / 1.187 GB, free: 15.48 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8045, allocations: 0 / 1.187 GB, free: 15.48 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.8045, allocations: 0 / 1.187 GB, free: 15.48 MB / 1.076 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.0002476/0.8047, allocations: 261.7 kB / 1.188 GB, free: 15.22 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.8048, allocations: 9.906 kB / 1.188 GB, free: 15.22 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.256e-05/0.8048, allocations: 2.609 kB / 1.188 GB, free: 15.22 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.446e-05/0.8048, allocations: 105.7 kB / 1.188 GB, free: 15.09 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.8049, allocations: 6.781 kB / 1.188 GB, free: 15.09 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.8049, allocations: 4 kB / 1.188 GB, free: 15.09 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001375/0.805, allocations: 65.42 kB / 1.188 GB, free: 15.05 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.805, allocations: 192 / 1.188 GB, free: 15.05 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.938e-06/0.805, allocations: 9.188 kB / 1.188 GB, free: 15.04 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.805, allocations: 1.344 kB / 1.188 GB, free: 15.04 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.8052, allocations: 98.55 kB / 1.188 GB, free: 15.02 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001105/0.8053, allocations: 119.2 kB / 1.188 GB, free: 14.89 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/0.8054, allocations: 67.89 kB / 1.188 GB, free: 14.86 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.187e-05/0.8054, allocations: 26.2 kB / 1.188 GB, free: 14.84 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001708/0.8056, allocations: 23.66 kB / 1.188 GB, free: 14.84 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.8056, allocations: 36.27 kB / 1.188 GB, free: 14.79 MB / 1.076 GB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.8056, allocations: 7.922 kB / 1.188 GB, free: 14.79 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0002284/0.8059, allocations: 118.9 kB / 1.188 GB, free: 14.73 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.813e-05/0.8059, allocations: 54.06 kB / 1.188 GB, free: 14.66 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.045e-05/0.8059, allocations: 95.92 kB / 1.189 GB, free: 14.56 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 9.548e-06/0.8059, allocations: 30.36 kB / 1.189 GB, free: 14.53 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 8.516e-06/0.8059, allocations: 81.61 kB / 1.189 GB, free: 14.45 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.8059, allocations: 28.88 kB / 1.189 GB, free: 14.42 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/0.806, allocations: 28.08 kB / 1.189 GB, free: 14.4 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.787e-05/0.806, allocations: 317.6 kB / 1.189 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.655e-05/0.806, allocations: 23.92 kB / 1.189 GB, free: 14.08 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.452e-05/0.8061, allocations: 20.97 kB / 1.189 GB, free: 14.07 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.707e-05/0.8062, allocations: 67.14 kB / 1.189 GB, free: 14.04 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.8062, allocations: 0 / 1.189 GB, free: 14.04 MB / 1.076 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001273/0.8063, allocations: 91.28 kB / 1.189 GB, free: 14 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.8063, allocations: 4.562 kB / 1.189 GB, free: 14 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.8063, allocations: 1.125 kB / 1.189 GB, free: 14 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.8063, allocations: 8.484 kB / 1.189 GB, free: 13.99 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.8064, allocations: 18.47 kB / 1.189 GB, free: 13.99 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.8064, allocations: 0.6562 kB / 1.189 GB, free: 13.99 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.237e-05/0.8065, allocations: 9.359 kB / 1.189 GB, free: 13.98 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.8065, allocations: 4.062 kB / 1.189 GB, free: 13.98 MB / 1.076 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 9.31e-05/0.8066, allocations: 128.5 kB / 1.189 GB, free: 13.86 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.269e-05/0.8066, allocations: 2.469 kB / 1.189 GB, free: 13.86 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001982/0.8068, allocations: 127.4 kB / 1.189 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.8068, allocations: 1.828 kB / 1.189 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.8068, allocations: 0 / 1.189 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.8068, allocations: 1.828 kB / 1.189 GB, free: 13.78 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.76e-05/0.8069, allocations: 120.3 kB / 1.19 GB, free: 13.65 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8069, allocations: 0 / 1.19 GB, free: 13.65 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.224e-05/0.8069, allocations: 21.39 kB / 1.19 GB, free: 13.64 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.8069, allocations: 8.844 kB / 1.19 GB, free: 13.64 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-06/0.8069, allocations: 7.453 kB / 1.19 GB, free: 13.63 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.8069, allocations: 3.938 kB / 1.19 GB, free: 13.63 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.8069, allocations: 1.094 kB / 1.19 GB, free: 13.63 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001341/0.8071, allocations: 117.6 kB / 1.19 GB, free: 13.55 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 6.613e-06/0.8071, allocations: 3.422 kB / 1.19 GB, free: 13.55 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.8071, allocations: 9.688 kB / 1.19 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.589e-05/0.8071, allocations: 1.062 kB / 1.19 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.924e-05/0.8072, allocations: 7.312 kB / 1.19 GB, free: 13.54 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.8072, allocations: 3.797 kB / 1.19 GB, free: 13.54 MB / 1.076 GB Notification: Performance of sorting global known variables: time 1.046e-05/0.8072, allocations: 79.28 kB / 1.19 GB, free: 13.46 MB / 1.076 GB Notification: Performance of sort global known variables: time 5e-08/0.8072, allocations: 9.094 kB / 1.19 GB, free: 13.45 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002025/0.8074, allocations: 10.66 kB / 1.19 GB, free: 13.45 MB / 1.076 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.0001237/0.8075, allocations: 114.9 kB / 1.19 GB, free: 13.36 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001327/0.8076, allocations: 58.86 kB / 1.19 GB, free: 13.35 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.8076, allocations: 0 / 1.19 GB, free: 13.35 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 5.047e-05/0.8077, allocations: 34.42 kB / 1.19 GB, free: 13.34 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.8078, allocations: 8.906 kB / 1.19 GB, free: 13.34 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002232/0.808, allocations: 149.5 kB / 1.19 GB, free: 13.21 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.931e-05/0.8081, allocations: 66.77 kB / 1.19 GB, free: 13.14 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 7.465e-05/0.8082, allocations: 33.53 kB / 1.19 GB, free: 13.14 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.248e-05/0.8082, allocations: 15.78 kB / 1.19 GB, free: 13.13 MB / 1.076 GB Notification: Performance of SimCode: time 3.41e-07/0.8082, allocations: 0 / 1.19 GB, free: 13.13 MB / 1.076 GB Notification: Performance of Templates: time 0.002857/0.811, allocations: 0.5778 MB / 1.191 GB, free: 13.02 MB / 1.076 GB " [Timeout remaining time 299] 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 -s ida -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: 8.355562384007499]