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.001063/0.001063, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008474/0.008475, allocations: 169.3 kB / 16.26 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.403/1.403, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.738/2.738, allocations: 462.7 MB / 0.7364 GB, free: 264 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003639, allocations: 11.28 kB / 0.9028 GB, free: 36.72 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.337, 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.0007614/0.3378, allocations: 318.9 kB / 1.059 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002805/0.3381, allocations: 59.78 kB / 1.059 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.547e-05/0.3381, allocations: 0 / 1.059 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.773e-05/0.3381, allocations: 3.938 kB / 1.059 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.41e-06/0.3381, allocations: 0 / 1.059 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/0.3384, allocations: 15.98 kB / 1.059 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.787e-05/0.3385, allocations: 27.97 kB / 1.059 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.365e-05/0.3386, allocations: 0 / 1.059 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.016e-05/0.3386, allocations: 15.98 kB / 1.059 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.951e-05/0.3386, allocations: 11.98 kB / 1.059 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.236e-05/0.3386, allocations: 4 kB / 1.059 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.33e-05/0.3387, allocations: 11.98 kB / 1.059 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.968e-05/0.3388, allocations: 15.98 kB / 1.059 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.402e-05/0.3388, allocations: 41.58 kB / 1.059 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.3389, allocations: 31.89 kB / 1.059 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.3389, allocations: 0 / 1.059 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.138e-06/0.339, allocations: 0 / 1.059 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.339, allocations: 3.938 kB / 1.059 GB, free: 4.91 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.0003379/0.3393, allocations: 332.7 kB / 1.06 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3394, allocations: 11.97 kB / 1.06 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.205e-05/0.3394, allocations: 12.94 kB / 1.06 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.648e-05/0.3395, allocations: 168.6 kB / 1.06 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.3395, allocations: 4.375 kB / 1.06 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.414e-05/0.3395, allocations: 384 / 1.06 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001574/0.3397, allocations: 62.23 kB / 1.06 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.3397, allocations: 4.172 kB / 1.06 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.3397, allocations: 7.938 kB / 1.06 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.3397, allocations: 0 / 1.06 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001411/0.3399, allocations: 103.8 kB / 1.06 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001787/0.3401, allocations: 181.5 kB / 1.06 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.3402, allocations: 70.55 kB / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.767e-05/0.3403, allocations: 28.84 kB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003607/0.3406, allocations: 409.5 kB / 1.061 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.3407, allocations: 34.56 kB / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.644e-06/0.3407, allocations: 0 / 1.061 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002597/0.3409, allocations: 113.9 kB / 1.061 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.341, allocations: 67.34 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.445e-05/0.341, allocations: 97.77 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.3411, allocations: 25.7 kB / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.492e-05/0.3411, allocations: 84.14 kB / 1.061 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.191e-05/0.3411, allocations: 19.73 kB / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/0.3412, allocations: 17.72 kB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.3413, allocations: 322.8 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.731e-05/0.3414, allocations: 19.98 kB / 1.061 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.925e-05/0.3414, allocations: 24.36 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.512e-05/0.3415, allocations: 60.84 kB / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3415, allocations: 0 / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001451/0.3417, allocations: 101.4 kB / 1.061 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.3417, allocations: 4 kB / 1.061 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3417, allocations: 3.938 kB / 1.061 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.3417, allocations: 0 / 1.061 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.929e-05/0.3418, allocations: 16 kB / 1.062 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.3418, allocations: 3.984 kB / 1.062 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.057e-05/0.3418, allocations: 4 kB / 1.062 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.3419, allocations: 4 kB / 1.062 GB, free: 2.223 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.0001808/0.342, allocations: 125.8 kB / 1.062 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.424e-05/0.3421, allocations: 11.89 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002125/0.3423, allocations: 125.4 kB / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3423, allocations: 3.938 kB / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3423, allocations: 0 / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3423, allocations: 4 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.3424, allocations: 177.6 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3425, allocations: 0 / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.642e-05/0.3425, allocations: 19.94 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3425, allocations: 3.938 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.3425, allocations: 3.984 kB / 1.062 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3425, allocations: 0 / 1.062 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3426, allocations: 4 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.3427, allocations: 117 kB / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.002e-05/0.3428, allocations: 89.03 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.3428, allocations: 4 kB / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.714e-05/0.3428, allocations: 0 / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.694e-05/0.3429, allocations: 15.92 kB / 1.062 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.3429, allocations: 4 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.563e-05/0.3429, allocations: 75.28 kB / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3429, allocations: 0 / 1.062 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001946/0.3431, allocations: 12 kB / 1.062 GB, free: 1.34 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.0001849/0.3433, allocations: 119.1 kB / 1.062 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001286/0.3434, allocations: 60.5 kB / 1.062 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3434, allocations: 4 kB / 1.062 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.855e-05/0.3435, allocations: 31.92 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.0001368/0.3436, allocations: 14.62 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.0002786/0.3439, allocations: 158.6 kB / 1.063 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.3442, allocations: 0.6809 MB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.409e-05/0.3443, allocations: 39.8 kB / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.339e-05/0.3443, allocations: 19.44 kB / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.3443, allocations: 0 / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of Templates: time 0.002651/0.347, allocations: 0.5939 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