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.0009376/0.0009376, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007585/0.007585, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.416/1.416, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.837/2.837, allocations: 462.6 MB / 0.7364 GB, free: 292 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003857, allocations: 9 kB / 0.9028 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3313, allocations: 159.6 MB / 1.059 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0008344/0.3322, allocations: 318.9 kB / 1.059 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003388/0.3326, allocations: 55.78 kB / 1.059 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.411e-05/0.3326, allocations: 0 / 1.059 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.222e-05/0.3326, allocations: 4 kB / 1.059 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.7e-06/0.3326, allocations: 3.938 kB / 1.059 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.3329, allocations: 15.98 kB / 1.059 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.339e-05/0.333, allocations: 23.98 kB / 1.059 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.496e-05/0.3331, allocations: 4 kB / 1.059 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.505e-05/0.3331, allocations: 15.97 kB / 1.059 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.941e-05/0.3331, allocations: 12 kB / 1.059 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.376e-05/0.3332, allocations: 0 / 1.059 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.802e-05/0.3332, allocations: 11.98 kB / 1.059 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.573e-05/0.3333, allocations: 23.91 kB / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.809e-05/0.3333, allocations: 41.58 kB / 1.059 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.3335, allocations: 31.89 kB / 1.059 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3335, allocations: 3.938 kB / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3335, allocations: 0 / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.3335, allocations: 4 kB / 1.059 GB, free: 4.902 MB / 0.8106 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.0003269/0.3338, allocations: 327.5 kB / 1.06 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3339, allocations: 8.031 kB / 1.06 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.3339, allocations: 8.938 kB / 1.06 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.334, allocations: 164.6 kB / 1.06 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.334, allocations: 4.359 kB / 1.06 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.3341, allocations: 4.375 kB / 1.06 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.3342, allocations: 58.23 kB / 1.06 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.106e-06/0.3342, allocations: 4.188 kB / 1.06 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.3343, allocations: 11.94 kB / 1.06 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3343, allocations: 3.938 kB / 1.06 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.3344, allocations: 103.9 kB / 1.06 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002004/0.3346, allocations: 173.5 kB / 1.06 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.3348, allocations: 74.53 kB / 1.06 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.911e-05/0.3348, allocations: 28.84 kB / 1.06 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003828/0.3352, allocations: 405.5 kB / 1.061 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.3352, allocations: 34.56 kB / 1.061 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 3.186e-06/0.3352, allocations: 0 / 1.061 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002737/0.3355, allocations: 117.8 kB / 1.061 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.3356, allocations: 63.34 kB / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.302e-05/0.3356, allocations: 97.77 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3357, allocations: 25.7 kB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.632e-05/0.3357, allocations: 84.14 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.3357, allocations: 15.75 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.3358, allocations: 21.7 kB / 1.061 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.3359, allocations: 322.8 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.016e-05/0.3359, allocations: 19.98 kB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.145e-05/0.336, allocations: 24.36 kB / 1.061 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.3361, allocations: 64.77 kB / 1.061 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3361, allocations: 0 / 1.061 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001451/0.3363, allocations: 89.52 kB / 1.061 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3363, allocations: 9.719 kB / 1.061 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.3363, allocations: 3.938 kB / 1.061 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.3363, allocations: 0 / 1.061 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.3365, allocations: 23.98 kB / 1.062 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3365, allocations: 0 / 1.062 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.472e-05/0.3365, allocations: 4 kB / 1.062 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.3365, allocations: 7.938 kB / 1.062 GB, free: 2.227 MB / 0.8106 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.000156/0.3367, allocations: 125.8 kB / 1.062 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.689e-05/0.3367, allocations: 7.906 kB / 1.062 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.3369, allocations: 129.4 kB / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3369, allocations: 0 / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.337, allocations: 0 / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.337, allocations: 3.984 kB / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.3371, allocations: 173.7 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3371, allocations: 0 / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.128e-05/0.3372, allocations: 23.92 kB / 1.062 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.3372, allocations: 3.938 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.3372, allocations: 0 / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.3372, allocations: 4 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3373, allocations: 3.984 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.3374, allocations: 129 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.864e-05/0.3375, allocations: 81.05 kB / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.3375, allocations: 0 / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.46e-05/0.3375, allocations: 4 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/0.3376, allocations: 15.92 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.3376, allocations: 0 / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.895e-05/0.3376, allocations: 79.28 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.467e-06/0.3376, allocations: 4 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002034/0.3378, allocations: 15.94 kB / 1.062 GB, free: 1.336 MB / 0.8106 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.0002185/0.3381, allocations: 118.4 kB / 1.062 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001399/0.3382, allocations: 56.52 kB / 1.062 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3382, allocations: 0 / 1.062 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.503e-05/0.3383, allocations: 39.91 kB / 1.062 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.3384, allocations: 12.38 kB / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002882/0.3387, allocations: 154.6 kB / 1.063 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.339, allocations: 0.6809 MB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.085e-05/0.3391, allocations: 39.8 kB / 1.063 GB, free: 188 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.3391, allocations: 23.42 kB / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.3391, allocations: 0 / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of Templates: time 0.002811/0.3419, allocations: 0.5861 MB / 1.064 GB, free: 15.57 MB / 0.8262 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