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.001556/0.001556, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001822/0.001822, allocations: 195.7 kB / 16.14 MB, free: 6.711 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.406/1.406, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.757/2.757, allocations: 461.9 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.001311, allocations: 70.52 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3281, allocations: 157.4 MB / 1.052 GB, free: 8.898 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001713/0.3299, allocations: 0.6464 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002731/0.3302, allocations: 51.86 kB / 1.053 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.25e-05/0.3302, allocations: 0 / 1.053 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.165e-05/0.3303, allocations: 3.938 kB / 1.053 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.021e-06/0.3303, allocations: 0 / 1.053 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002354/0.3305, allocations: 19.97 kB / 1.053 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.133e-05/0.3306, allocations: 27.97 kB / 1.053 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.805e-05/0.3306, allocations: 8 kB / 1.053 GB, free: 8.137 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.874e-05/0.3307, allocations: 11.98 kB / 1.053 GB, free: 8.125 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.559e-05/0.3307, allocations: 7.984 kB / 1.053 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.3307, allocations: 4 kB / 1.053 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.043e-05/0.3308, allocations: 15.98 kB / 1.053 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.769e-05/0.3308, allocations: 15.92 kB / 1.053 GB, free: 8.082 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.3309, allocations: 11.94 kB / 1.053 GB, free: 8.07 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.365e-05/0.3309, allocations: 31.89 kB / 1.053 GB, free: 8.039 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.331, allocations: 4 kB / 1.053 GB, free: 8.035 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.22e-07/0.331, allocations: 0 / 1.053 GB, free: 8.035 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.331, allocations: 0 / 1.053 GB, free: 8.035 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.0003118/0.3313, allocations: 343.5 kB / 1.053 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.3313, allocations: 8.031 kB / 1.053 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.413e-05/0.3314, allocations: 4.938 kB / 1.053 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.906e-05/0.3315, allocations: 172.5 kB / 1.053 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.3315, allocations: 4.375 kB / 1.053 GB, free: 7.426 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.3315, allocations: 8.375 kB / 1.053 GB, free: 7.418 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.3316, allocations: 62.22 kB / 1.054 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.3317, allocations: 192 / 1.054 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3317, allocations: 11.88 kB / 1.054 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3317, allocations: 4 kB / 1.054 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001437/0.3318, allocations: 99.88 kB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000165/0.332, allocations: 173.6 kB / 1.054 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.3321, allocations: 74.48 kB / 1.054 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.682e-05/0.3322, allocations: 32.84 kB / 1.054 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003025/0.3325, allocations: 405.5 kB / 1.054 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.3325, allocations: 42.56 kB / 1.054 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.3325, allocations: 0 / 1.054 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002373/0.3328, allocations: 113.9 kB / 1.054 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.3328, allocations: 51.41 kB / 1.054 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.188e-05/0.3328, allocations: 105.7 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.3329, allocations: 29.7 kB / 1.055 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.259e-05/0.3329, allocations: 80.14 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.067e-05/0.3329, allocations: 19.75 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.333, allocations: 29.7 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3331, allocations: 318.8 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.985e-05/0.3331, allocations: 19.98 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.33e-05/0.3332, allocations: 20.42 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.533e-05/0.3333, allocations: 64.98 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3333, allocations: 3.938 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001321/0.3334, allocations: 89.58 kB / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.3334, allocations: 4 kB / 1.055 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3334, allocations: 3.938 kB / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.3335, allocations: 0 / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.3336, allocations: 31.92 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.3336, allocations: 0 / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.98e-05/0.3336, allocations: 4 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-06/0.3336, allocations: 0 / 1.055 GB, free: 5.332 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.0001466/0.3338, allocations: 123.4 kB / 1.055 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.3338, allocations: 7.906 kB / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002148/0.334, allocations: 137.3 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.334, allocations: 0 / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.334, allocations: 0 / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.334, allocations: 11.92 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.3341, allocations: 161.7 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3342, allocations: 0 / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.65e-05/0.3342, allocations: 19.98 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.3342, allocations: 3.938 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.3343, allocations: 7.984 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.696e-06/0.3343, allocations: 4 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3343, allocations: 0 / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001433/0.3344, allocations: 128.9 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.99e-05/0.3345, allocations: 81.05 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.3345, allocations: 8 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.658e-05/0.3345, allocations: 4 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.977e-05/0.3345, allocations: 7.984 kB / 1.056 GB, free: 4.539 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.3345, allocations: 4 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.39e-05/0.3346, allocations: 75.28 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3346, allocations: 4 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001974/0.3348, allocations: 19.98 kB / 1.056 GB, free: 4.438 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.0001593/0.3349, allocations: 111.2 kB / 1.056 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001311/0.3351, allocations: 63.91 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.3351, allocations: 0 / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.492e-05/0.3351, allocations: 40.39 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.3353, allocations: 14.61 kB / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002516/0.3356, allocations: 154.8 kB / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.3358, allocations: 0.6848 MB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.671e-05/0.3359, allocations: 39.8 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.3359, allocations: 19.42 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3359, allocations: 0 / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of Templates: time 0.002543/0.3384, allocations: 0.59 MB / 1.058 GB, free: 2.668 MB / 0.8106 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