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.00178/0.001779, allocations: 106.6 kB / 16.41 MB, free: 6.508 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.001681/0.001681, allocations: 187 kB / 17.34 MB, free: 5.742 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.461/1.461, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.324/2.324, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001498, allocations: 63.91 kB / 0.9516 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9046/0.9061, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002/0.9081, allocations: 0.5785 MB / 1.089 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003052/0.9085, allocations: 61.28 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.344e-05/0.9085, allocations: 1.125 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.101e-05/0.9085, allocations: 0 / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.714e-06/0.9086, allocations: 0 / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.9089, allocations: 17.8 kB / 1.089 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.909, allocations: 35.06 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.868e-05/0.9091, allocations: 2.047 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.136e-05/0.9091, allocations: 6.109 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.26e-05/0.9091, allocations: 16.78 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.9091, allocations: 1.188 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.109e-05/0.9092, allocations: 24.41 kB / 1.089 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.223e-05/0.9093, allocations: 15.75 kB / 1.089 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.452e-05/0.9093, allocations: 12.52 kB / 1.089 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001211/0.9095, allocations: 32.44 kB / 1.089 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.9095, allocations: 1.375 kB / 1.089 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.753e-06/0.9095, allocations: 0 / 1.089 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.015e-05/0.9095, allocations: 0.5156 kB / 1.089 GB, free: 5.051 MB / 0.8575 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.0002957/0.9098, allocations: 334.4 kB / 1.09 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.9098, allocations: 8.875 kB / 1.09 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.878e-05/0.9099, allocations: 4.438 kB / 1.09 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.779e-05/0.9099, allocations: 173.6 kB / 1.09 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.91, allocations: 2.656 kB / 1.09 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.91, allocations: 7.781 kB / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.9102, allocations: 68.77 kB / 1.09 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.9102, allocations: 192 / 1.09 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.9102, allocations: 5.828 kB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.9102, allocations: 1.312 kB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.9104, allocations: 100.5 kB / 1.09 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.9106, allocations: 172.1 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.9107, allocations: 83.94 kB / 1.09 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.616e-05/0.9107, allocations: 28.38 kB / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00032/0.9111, allocations: 402.6 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.9111, allocations: 32.27 kB / 1.091 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.012e-06/0.9111, allocations: 1.125 kB / 1.091 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0002711/0.9114, allocations: 126.2 kB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.609e-05/0.9114, allocations: 53.19 kB / 1.091 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.275e-05/0.9115, allocations: 100.3 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.828e-06/0.9115, allocations: 30.83 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.18e-05/0.9115, allocations: 80.14 kB / 1.091 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.8e-05/0.9115, allocations: 23.02 kB / 1.091 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.363e-05/0.9116, allocations: 27.77 kB / 1.091 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.313e-05/0.9116, allocations: 318.9 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.429e-05/0.9117, allocations: 22.66 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.814e-05/0.9117, allocations: 21.14 kB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.9118, allocations: 67.78 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.9118, allocations: 0 / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001435/0.912, allocations: 93.89 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.912, allocations: 5.391 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.912, allocations: 3.938 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.912, allocations: 1.156 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.9121, allocations: 18.72 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.9122, allocations: 0 / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.422e-05/0.9122, allocations: 10.67 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.9122, allocations: 2.938 kB / 1.092 GB, free: 2.844 MB / 0.8575 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.0001444/0.9124, allocations: 123.9 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.632e-05/0.9124, allocations: 7.047 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002573/0.9126, allocations: 126.4 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.9126, allocations: 2.219 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.9127, allocations: 0.5156 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.9127, allocations: 1.734 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00011/0.9128, allocations: 176.5 kB / 1.092 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.9128, allocations: 4.938 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.878e-05/0.9129, allocations: 18.08 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.9129, allocations: 4.75 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.9129, allocations: 1.641 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.9129, allocations: 1.859 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.9129, allocations: 0 / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001637/0.9131, allocations: 125.3 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.407e-05/0.9131, allocations: 83.48 kB / 1.092 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.9131, allocations: 1.891 kB / 1.092 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.574e-05/0.9131, allocations: 9.062 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.904e-05/0.9132, allocations: 11.33 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.9132, allocations: 3.266 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.772e-05/0.9132, allocations: 76.34 kB / 1.093 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.9132, allocations: 0 / 1.093 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002051/0.9134, allocations: 18.78 kB / 1.093 GB, free: 2.152 MB / 0.8575 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.0001774/0.9136, allocations: 111.4 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001747/0.9138, allocations: 69.17 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.9138, allocations: 0 / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.419e-05/0.9139, allocations: 41 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.914, allocations: 6.281 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003109/0.9143, allocations: 171.5 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.9146, allocations: 0.6824 MB / 1.094 GB, free: 17.18 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.317e-05/0.9146, allocations: 19.92 kB / 1.094 GB, free: 17.17 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/0.9146, allocations: 4.844 kB / 1.094 GB, free: 17.17 MB / 0.8731 GB Notification: Performance of Templates: time 0.003011/0.9176, allocations: 0.9555 MB / 1.095 GB, free: 17.08 MB / 0.8731 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