Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001499/0.001499, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001501/0.001502, allocations: 195.5 kB / 16.14 MB, free: 6.676 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.525/1.525, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.831/2.831, allocations: 437 MB / 0.71 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001945, allocations: 75.88 kB / 0.8686 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6284/0.6303, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001818/0.6322, allocations: 0.6566 MB / 1.017 GB, free: 2.121 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002816/0.6325, allocations: 55.78 kB / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.3e-05/0.6325, allocations: 0 / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.615e-05/0.6325, allocations: 0 / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.578e-06/0.6325, allocations: 0 / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.6328, allocations: 15.98 kB / 1.017 GB, free: 2.051 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.855e-05/0.6329, allocations: 31.91 kB / 1.017 GB, free: 2.02 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.935e-05/0.6329, allocations: 11.98 kB / 1.017 GB, free: 2.008 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.93e-05/0.6329, allocations: 8 kB / 1.017 GB, free: 2 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.273e-05/0.633, allocations: 19.97 kB / 1.017 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.633, allocations: 0 / 1.017 GB, free: 1.98 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.52e-05/0.6331, allocations: 11.94 kB / 1.017 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.851e-05/0.6331, allocations: 11.98 kB / 1.017 GB, free: 1.957 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.621e-05/0.6331, allocations: 19.88 kB / 1.017 GB, free: 1.938 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.539e-05/0.6332, allocations: 27.89 kB / 1.017 GB, free: 1.91 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.6333, allocations: 4 kB / 1.017 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of FrontEnd: time 8.01e-07/0.6333, allocations: 0 / 1.017 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.266e-06/0.6333, allocations: 0 / 1.017 GB, free: 1.906 MB / 0.7637 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.0003603/0.6336, allocations: 345 kB / 1.018 GB, free: 1.52 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.6337, allocations: 11.98 kB / 1.018 GB, free: 1.508 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.347e-05/0.6337, allocations: 4.938 kB / 1.018 GB, free: 1.504 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.6339, allocations: 166.3 kB / 1.018 GB, free: 1.305 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.6339, allocations: 8.375 kB / 1.018 GB, free: 1.297 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.818e-06/0.6339, allocations: 384 / 1.018 GB, free: 1.297 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.634, allocations: 66.22 kB / 1.018 GB, free: 1.227 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.6341, allocations: 192 / 1.018 GB, free: 1.227 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.6341, allocations: 3.938 kB / 1.018 GB, free: 1.223 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.6341, allocations: 4 kB / 1.018 GB, free: 1.219 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.6343, allocations: 99.88 kB / 1.018 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002053/0.6345, allocations: 181.5 kB / 1.018 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.6346, allocations: 78.53 kB / 1.018 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.477e-05/0.6347, allocations: 32.84 kB / 1.018 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003833/0.635, allocations: 401.5 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.6351, allocations: 38.56 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.6351, allocations: 0 / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of matching and sorting (n=11): time 0.0002991/0.6354, allocations: 117.5 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.6354, allocations: 51.41 kB / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.092e-05/0.6355, allocations: 102 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.6356, allocations: 25.7 kB / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.721e-05/0.6356, allocations: 88.06 kB / 1.019 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.188e-05/0.6356, allocations: 15.81 kB / 1.019 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.867e-05/0.6357, allocations: 33.7 kB / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.6359, allocations: 314.8 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.121e-05/0.6359, allocations: 19.98 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.903e-05/0.6359, allocations: 19.98 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.6361, allocations: 60.83 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.6361, allocations: 0 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002189/0.6363, allocations: 97.45 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.6363, allocations: 4 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.6363, allocations: 3.938 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.6363, allocations: 7.938 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.6365, allocations: 23.98 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.6365, allocations: 0 / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.416e-05/0.6365, allocations: 11.94 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/0.6365, allocations: 4 kB / 1.02 GB, free: 15.2 MB / 0.7794 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.0001463/0.6367, allocations: 117.8 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.6367, allocations: 7.906 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002419/0.6369, allocations: 129.5 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.637, allocations: 7.984 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.637, allocations: 3.938 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.637, allocations: 0 / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.6371, allocations: 173.6 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.6371, allocations: 0 / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.427e-05/0.6372, allocations: 23.98 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.6372, allocations: 3.938 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.6372, allocations: 4 kB / 1.02 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.6373, allocations: 0 / 1.02 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.6373, allocations: 0 / 1.02 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/0.6374, allocations: 125.8 kB / 1.02 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.6375, allocations: 85.05 kB / 1.02 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.6375, allocations: 4 kB / 1.02 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.5e-05/0.6375, allocations: 0 / 1.02 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.6376, allocations: 7.984 kB / 1.02 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/0.6376, allocations: 4 kB / 1.02 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.334e-05/0.6376, allocations: 79.22 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6376, allocations: 4 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002341/0.6379, allocations: 16 kB / 1.021 GB, free: 14.32 MB / 0.7794 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.0001851/0.6381, allocations: 114 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001478/0.6382, allocations: 63.95 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.6382, allocations: 0 / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.514e-05/0.6383, allocations: 39.91 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.6384, allocations: 7.938 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002947/0.6387, allocations: 162.6 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.6391, allocations: 0.6809 MB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.319e-05/0.6392, allocations: 39.92 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.59e-05/0.6393, allocations: 15.42 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.6393, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of Templates: time 0.002957/0.6422, allocations: 0.5867 MB / 1.022 GB, free: 12.55 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches