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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.00788/0.00788, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.001583/0.001583, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.771/2.771, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 63.91 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3116, allocations: 157.4 MB / 1.208 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002189/0.3138, allocations: 0.5825 MB / 1.208 GB, free: 9.051 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003769/0.3142, allocations: 59.78 kB / 1.208 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.6e-05/0.3143, allocations: 0 / 1.208 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.411e-05/0.3143, allocations: 0 / 1.208 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 1.045e-05/0.3143, allocations: 3.938 kB / 1.208 GB, free: 8.988 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003888/0.3147, allocations: 19.92 kB / 1.208 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.3149, allocations: 35.91 kB / 1.208 GB, free: 8.934 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.008e-05/0.3149, allocations: 4 kB / 1.208 GB, free: 8.93 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.562e-05/0.315, allocations: 11.98 kB / 1.208 GB, free: 8.918 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.854e-05/0.315, allocations: 15.98 kB / 1.208 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.581e-05/0.315, allocations: 0 / 1.208 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.3152, allocations: 15.98 kB / 1.209 GB, free: 8.887 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.432e-05/0.3152, allocations: 15.98 kB / 1.209 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.571e-05/0.3153, allocations: 11.88 kB / 1.209 GB, free: 8.859 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.3154, allocations: 35.88 kB / 1.209 GB, free: 8.824 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3154, allocations: 0 / 1.209 GB, free: 8.824 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.885e-06/0.3154, allocations: 0 / 1.209 GB, free: 8.824 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.878e-06/0.3154, allocations: 0 / 1.209 GB, free: 8.824 MB / 0.9669 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.0003668/0.3158, allocations: 339.6 kB / 1.209 GB, free: 8.441 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3159, allocations: 8.625 kB / 1.209 GB, free: 8.434 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.561e-05/0.3159, allocations: 12.78 kB / 1.209 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.814e-05/0.316, allocations: 168.3 kB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.316, allocations: 4.375 kB / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.3161, allocations: 12.36 kB / 1.209 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00015/0.3162, allocations: 58.23 kB / 1.209 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.3162, allocations: 192 / 1.209 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.3163, allocations: 3.938 kB / 1.209 GB, free: 8.137 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3163, allocations: 0 / 1.209 GB, free: 8.137 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001596/0.3164, allocations: 111.8 kB / 1.209 GB, free: 8.027 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.3166, allocations: 169.6 kB / 1.209 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/0.3167, allocations: 74.53 kB / 1.209 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.014e-05/0.3168, allocations: 32.84 kB / 1.21 GB, free: 7.695 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003635/0.3172, allocations: 401.5 kB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.3172, allocations: 30.56 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.223e-06/0.3172, allocations: 0 / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0002664/0.3175, allocations: 133.7 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.3175, allocations: 59.34 kB / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.97e-05/0.3176, allocations: 89.86 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3176, allocations: 29.7 kB / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.518e-05/0.3176, allocations: 80.14 kB / 1.21 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.411e-05/0.3177, allocations: 23.66 kB / 1.21 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.788e-05/0.3177, allocations: 33.7 kB / 1.21 GB, free: 6.688 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3178, allocations: 314.8 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.912e-05/0.3179, allocations: 23.98 kB / 1.211 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.258e-05/0.3179, allocations: 19.98 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.318, allocations: 60.78 kB / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.318, allocations: 0 / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001425/0.3182, allocations: 97.53 kB / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.3182, allocations: 8 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3182, allocations: 3.938 kB / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.3182, allocations: 0 / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.3184, allocations: 16 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.3184, allocations: 0 / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.383e-05/0.3184, allocations: 15.89 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.3184, allocations: 4 kB / 1.211 GB, free: 6.117 MB / 0.9669 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.0001659/0.3186, allocations: 121.8 kB / 1.211 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.3186, allocations: 3.984 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002367/0.3189, allocations: 133.3 kB / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3189, allocations: 0 / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.3189, allocations: 0 / 1.211 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.3189, allocations: 4 kB / 1.211 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.319, allocations: 173.6 kB / 1.211 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.319, allocations: 4 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.002e-05/0.3191, allocations: 16 kB / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.3191, allocations: 7.938 kB / 1.211 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.3191, allocations: 11.92 kB / 1.211 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3191, allocations: 0 / 1.211 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3191, allocations: 0 / 1.211 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.3193, allocations: 118 kB / 1.211 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.3194, allocations: 88.94 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.3194, allocations: 0 / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.839e-05/0.3194, allocations: 4 kB / 1.212 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.3194, allocations: 15.92 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.3195, allocations: 0 / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.16e-05/0.3195, allocations: 75.28 kB / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3195, allocations: 0 / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002078/0.3197, allocations: 16 kB / 1.212 GB, free: 5.234 MB / 0.9669 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.0001998/0.3199, allocations: 119.1 kB / 1.212 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001591/0.3201, allocations: 64 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3201, allocations: 0 / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.976e-05/0.3202, allocations: 35.92 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001436/0.3203, allocations: 8 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002936/0.3206, allocations: 148.8 kB / 1.212 GB, free: 4.832 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.3209, allocations: 0.6884 MB / 1.213 GB, free: 4.117 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.839e-05/0.3209, allocations: 39.8 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.321, allocations: 23.38 kB / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of SimCode: time 3.11e-07/0.321, allocations: 0 / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of Templates: time 0.002774/0.3238, allocations: 0.6066 MB / 1.213 GB, free: 3.449 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches