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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001187/0.001187, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.273/1.273, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.179/2.179, allocations: 390.2 MB / 0.6646 GB, free: 496 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 67.89 kB / 0.8125 GB, free: 14.48 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.683/0.6842, allocations: 140.4 MB / 0.9496 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001529/0.6857, allocations: 0.5759 MB / 0.9502 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002436/0.686, allocations: 49.55 kB / 0.9502 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.825e-05/0.686, allocations: 0 / 0.9502 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.603e-05/0.686, allocations: 0 / 0.9502 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.959e-06/0.6861, allocations: 5.375 kB / 0.9502 GB, free: 8.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.6863, allocations: 21.41 kB / 0.9502 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.461e-05/0.6864, allocations: 32.47 kB / 0.9503 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.933e-05/0.6865, allocations: 1.375 kB / 0.9503 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.84e-05/0.6865, allocations: 13.48 kB / 0.9503 GB, free: 8.68 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.431e-05/0.6865, allocations: 13.42 kB / 0.9503 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.6865, allocations: 1.375 kB / 0.9503 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.941e-05/0.6866, allocations: 20.23 kB / 0.9503 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.499e-05/0.6866, allocations: 13.48 kB / 0.9503 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.889e-05/0.6867, allocations: 13.44 kB / 0.9503 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.273e-05/0.6867, allocations: 30.89 kB / 0.9504 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.6868, allocations: 9.359 kB / 0.9504 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.332e-06/0.6868, allocations: 0 / 0.9504 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.6868, allocations: 0 / 0.9504 GB, free: 8.617 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.0002301/0.687, allocations: 335.8 kB / 0.9507 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.687, allocations: 9.625 kB / 0.9507 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.162e-05/0.6871, allocations: 7.625 kB / 0.9507 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.435e-05/0.6871, allocations: 162.4 kB / 0.9509 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.6871, allocations: 15 kB / 0.9509 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.6872, allocations: 3.125 kB / 0.9509 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.6873, allocations: 68.09 kB / 0.9509 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.6873, allocations: 192 / 0.9509 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.6873, allocations: 3.938 kB / 0.9509 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.6873, allocations: 1.375 kB / 0.9509 GB, free: 7.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.6874, allocations: 102.9 kB / 0.951 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001378/0.6876, allocations: 173.9 kB / 0.9512 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.6877, allocations: 74.7 kB / 0.9513 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.458e-05/0.6878, allocations: 31.22 kB / 0.9513 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002878/0.6881, allocations: 414.2 kB / 0.9517 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.6881, allocations: 40.28 kB / 0.9517 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.6881, allocations: 3.938 kB / 0.9518 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0002544/0.6883, allocations: 109.2 kB / 0.9519 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.117e-05/0.6884, allocations: 53.03 kB / 0.9519 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.44e-05/0.6884, allocations: 99.16 kB / 0.952 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.6884, allocations: 26.89 kB / 0.952 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.498e-05/0.6885, allocations: 84.08 kB / 0.9521 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.596e-05/0.6885, allocations: 24.12 kB / 0.9521 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/0.6886, allocations: 32.11 kB / 0.9522 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.147e-05/0.6886, allocations: 312.1 kB / 0.9525 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.536e-05/0.6887, allocations: 20.2 kB / 0.9525 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.405e-05/0.6887, allocations: 24.36 kB / 0.9525 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.309e-05/0.6888, allocations: 65.89 kB / 0.9526 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.6888, allocations: 0 / 0.9526 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001333/0.689, allocations: 83.83 kB / 0.9526 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.689, allocations: 5.562 kB / 0.9526 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.689, allocations: 11.88 kB / 0.9527 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.689, allocations: 4.922 kB / 0.9527 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.6891, allocations: 22.88 kB / 0.9527 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.6892, allocations: 1.375 kB / 0.9527 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.187e-05/0.6892, allocations: 9.062 kB / 0.9527 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.6892, allocations: 6.547 kB / 0.9527 GB, free: 6.273 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.0001219/0.6893, allocations: 117.7 kB / 0.9528 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.185e-05/0.6893, allocations: 6.625 kB / 0.9528 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.6896, allocations: 134.2 kB / 0.9529 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.207e-06/0.6896, allocations: 1.219 kB / 0.953 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6896, allocations: 0 / 0.953 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.6896, allocations: 1.344 kB / 0.953 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.6897, allocations: 174.2 kB / 0.9531 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.6897, allocations: 0 / 0.9531 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.614e-05/0.6898, allocations: 19.77 kB / 0.9531 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.6898, allocations: 5.156 kB / 0.9531 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.6898, allocations: 9.219 kB / 0.9532 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.6898, allocations: 3.938 kB / 0.9532 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6898, allocations: 5.516 kB / 0.9532 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001492/0.69, allocations: 118 kB / 0.9533 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.847e-05/0.69, allocations: 82.45 kB / 0.9534 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.69, allocations: 5.578 kB / 0.9534 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.506e-05/0.69, allocations: 4 kB / 0.9534 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.6901, allocations: 8.531 kB / 0.9534 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.6901, allocations: 7.766 kB / 0.9534 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.606e-05/0.6901, allocations: 75.28 kB / 0.9534 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.6901, allocations: 0 / 0.9534 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001919/0.6903, allocations: 14.22 kB / 0.9535 GB, free: 5.539 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.0001699/0.6905, allocations: 111.5 kB / 0.9536 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001768/0.6907, allocations: 74.36 kB / 0.9536 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6907, allocations: 4 kB / 0.9536 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.207e-05/0.6907, allocations: 38.92 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.6909, allocations: 2.25 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002671/0.6911, allocations: 147.2 kB / 0.9538 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001563/0.6913, allocations: 0.6864 MB / 0.9545 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.154e-05/0.6914, allocations: 46.3 kB / 0.9545 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.27e-05/0.6914, allocations: 13.72 kB / 0.9545 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6914, allocations: 0 / 0.9545 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of Templates: time 0.002765/0.6942, allocations: 0.6029 MB / 0.9551 GB, free: 4.227 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/jenkins/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