Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005202/0.005202, allocations: 101.5 kB / 15.88 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 193.4 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.416/2.416, allocations: 390.2 MB / 0.6649 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002423/0.002422, allocations: 71.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7024/0.7049, allocations: 140.3 MB / 0.9496 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001734/0.7067, allocations: 0.6535 MB / 0.9502 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002975/0.707, allocations: 57.77 kB / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.429e-05/0.707, allocations: 0 / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.842e-05/0.707, allocations: 5.031 kB / 0.9503 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.061e-06/0.707, allocations: 4 kB / 0.9503 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002356/0.7073, allocations: 8.375 kB / 0.9503 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.734e-05/0.7074, allocations: 31.38 kB / 0.9503 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.746e-05/0.7074, allocations: 1.219 kB / 0.9503 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.016e-05/0.7074, allocations: 15.05 kB / 0.9503 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.651e-05/0.7075, allocations: 12.55 kB / 0.9503 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.7075, allocations: 1.531 kB / 0.9504 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.051e-05/0.7076, allocations: 16.95 kB / 0.9504 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.857e-05/0.7076, allocations: 13.11 kB / 0.9504 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.377e-05/0.7076, allocations: 20.11 kB / 0.9504 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.383e-05/0.7077, allocations: 20.97 kB / 0.9504 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.7077, allocations: 0 / 0.9504 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.32e-07/0.7077, allocations: 0 / 0.9504 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.7077, allocations: 0 / 0.9504 GB, free: 8.566 MB / 0.7169 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.0002821/0.708, allocations: 342.1 kB / 0.9507 GB, free: 8.195 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.7081, allocations: 8.094 kB / 0.9508 GB, free: 8.195 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.395e-05/0.7081, allocations: 4.594 kB / 0.9508 GB, free: 8.195 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.603e-05/0.7082, allocations: 166.3 kB / 0.9509 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.7082, allocations: 1.781 kB / 0.9509 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.7082, allocations: 3.844 kB / 0.9509 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.7083, allocations: 75.59 kB / 0.951 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.7084, allocations: 192 / 0.951 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.7084, allocations: 5.125 kB / 0.951 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.7084, allocations: 1.25 kB / 0.951 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.7086, allocations: 97.88 kB / 0.9511 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001336/0.7087, allocations: 182.8 kB / 0.9513 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.7088, allocations: 74.45 kB / 0.9513 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.132e-05/0.7089, allocations: 31.06 kB / 0.9514 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002422/0.7091, allocations: 406.5 kB / 0.9518 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.7091, allocations: 30.56 kB / 0.9518 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.293e-06/0.7091, allocations: 1.75 kB / 0.9518 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002358/0.7094, allocations: 117.2 kB / 0.9519 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.056e-05/0.7094, allocations: 56.66 kB / 0.952 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.675e-05/0.7094, allocations: 99.12 kB / 0.952 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.7095, allocations: 29.7 kB / 0.9521 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.321e-05/0.7095, allocations: 85.27 kB / 0.9522 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.7095, allocations: 23.73 kB / 0.9522 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.531e-05/0.7095, allocations: 28.42 kB / 0.9522 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.089e-05/0.7096, allocations: 316.2 kB / 0.9525 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.556e-05/0.7096, allocations: 19.77 kB / 0.9525 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.177e-05/0.7097, allocations: 20.23 kB / 0.9525 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.775e-05/0.7098, allocations: 60.36 kB / 0.9526 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.7098, allocations: 1.375 kB / 0.9526 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001199/0.7099, allocations: 88.77 kB / 0.9527 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.7099, allocations: 9.5 kB / 0.9527 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.7099, allocations: 7.875 kB / 0.9527 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.71, allocations: 1.375 kB / 0.9527 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.7101, allocations: 19.11 kB / 0.9527 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.7101, allocations: 0 / 0.9527 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.035e-05/0.7101, allocations: 9.219 kB / 0.9527 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.7101, allocations: 6.75 kB / 0.9527 GB, free: 6.234 MB / 0.7169 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.0001069/0.7102, allocations: 122.1 kB / 0.9529 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.147e-05/0.7102, allocations: 5.375 kB / 0.9529 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002007/0.7104, allocations: 134.6 kB / 0.953 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.7105, allocations: 1.281 kB / 0.953 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.7105, allocations: 1.25 kB / 0.953 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.7105, allocations: 3.984 kB / 0.953 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.7106, allocations: 171.4 kB / 0.9532 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.7106, allocations: 0 / 0.9532 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.787e-05/0.7107, allocations: 18.95 kB / 0.9532 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.7107, allocations: 9 kB / 0.9532 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.7107, allocations: 1.125 kB / 0.9532 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.7107, allocations: 1.312 kB / 0.9532 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.7107, allocations: 0 / 0.9532 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001396/0.7108, allocations: 130.4 kB / 0.9533 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.041e-05/0.7109, allocations: 87.38 kB / 0.9534 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.7109, allocations: 1.344 kB / 0.9534 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.388e-05/0.7109, allocations: 0 / 0.9534 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.577e-05/0.7109, allocations: 20.61 kB / 0.9534 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.711, allocations: 2.062 kB / 0.9534 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.25e-05/0.711, allocations: 76.19 kB / 0.9535 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.711, allocations: 0 / 0.9535 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001981/0.7112, allocations: 15.47 kB / 0.9535 GB, free: 5.492 MB / 0.7169 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.0001553/0.7113, allocations: 117 kB / 0.9536 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001299/0.7115, allocations: 58.56 kB / 0.9537 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7115, allocations: 4 kB / 0.9537 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.058e-05/0.7115, allocations: 42.56 kB / 0.9537 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.7117, allocations: 10.66 kB / 0.9537 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002579/0.7119, allocations: 173.5 kB / 0.9539 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001134/0.7121, allocations: 0.6832 MB / 0.9546 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.677e-05/0.7121, allocations: 18.19 kB / 0.9546 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.7121, allocations: 4 kB / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of Templates: time 0.00238/0.7145, allocations: 0.9407 MB / 0.9555 GB, free: 3.996 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches