Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, 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.001329/0.00133, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.386/1.386, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.858/2.858, allocations: 461.9 MB / 0.7342 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 65.97 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3348, allocations: 157.4 MB / 1.052 GB, free: 8.875 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002691/0.3375, allocations: 1.601 MB / 1.054 GB, free: 7.258 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004106/0.3379, allocations: 127.6 kB / 1.054 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.721e-05/0.338, allocations: 4 kB / 1.054 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.139e-05/0.338, allocations: 0 / 1.054 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.529e-05/0.3381, allocations: 7.938 kB / 1.054 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.3383, allocations: 31.97 kB / 1.054 GB, free: 7.09 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.866e-05/0.3384, allocations: 31.86 kB / 1.054 GB, free: 7.059 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.527e-05/0.3385, allocations: 15.98 kB / 1.054 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.896e-05/0.3386, allocations: 8 kB / 1.054 GB, free: 7.035 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.535e-05/0.3386, allocations: 19.91 kB / 1.054 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.3386, allocations: 4 kB / 1.054 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.69e-05/0.3387, allocations: 19.98 kB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.755e-05/0.3387, allocations: 7.922 kB / 1.054 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.088e-05/0.3388, allocations: 15.94 kB / 1.054 GB, free: 6.969 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001082/0.3389, allocations: 47.86 kB / 1.054 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3389, allocations: 0 / 1.054 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.92e-07/0.3389, allocations: 0 / 1.054 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.3389, allocations: 0 / 1.054 GB, free: 6.922 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004562/0.3394, allocations: 352.5 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.3394, allocations: 8.031 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.491e-05/0.3394, allocations: 8.938 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.3396, allocations: 164.4 kB / 1.054 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.3396, allocations: 8.312 kB / 1.054 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.3396, allocations: 8.312 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.3398, allocations: 62.17 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.3398, allocations: 192 / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.3398, allocations: 7.938 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.3398, allocations: 0 / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.34, allocations: 47.95 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003826/0.3404, allocations: 284.7 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003179/0.3408, allocations: 66.45 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.487e-05/0.3409, allocations: 24.91 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002551/0.3411, allocations: 401.5 kB / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.3412, allocations: 30.56 kB / 1.055 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.3412, allocations: 0 / 1.055 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004194/0.3416, allocations: 105.5 kB / 1.055 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.108e-05/0.3416, allocations: 51.41 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.783e-05/0.3417, allocations: 109.8 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.3417, allocations: 25.7 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.905e-05/0.3418, allocations: 88.14 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/0.3418, allocations: 7.891 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.3419, allocations: 17.72 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.941e-05/0.342, allocations: 314.8 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.478e-05/0.3421, allocations: 23.97 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.735e-05/0.3422, allocations: 23.98 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.3423, allocations: 44.81 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3424, allocations: 0 / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002073/0.3426, allocations: 73.59 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.3426, allocations: 4 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3426, allocations: 0 / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3426, allocations: 4 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.255e-05/0.3427, allocations: 11.98 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3427, allocations: 4 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.857e-05/0.3428, allocations: 11.98 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.3428, allocations: 0 / 1.056 GB, free: 4.258 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: 2 (falFac.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.699e-05/0.3429, allocations: 109.8 kB / 1.056 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.637e-05/0.3429, allocations: 11.84 kB / 1.056 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002558/0.3432, allocations: 93.48 kB / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3432, allocations: 0 / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3432, allocations: 3.984 kB / 1.056 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3432, allocations: 0 / 1.056 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.3434, allocations: 169.6 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.3434, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.77e-05/0.3435, allocations: 15.98 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3435, allocations: 0 / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.3435, allocations: 0 / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3435, allocations: 3.938 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3435, allocations: 4 kB / 1.057 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002553/0.3437, allocations: 167.8 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.232e-05/0.3438, allocations: 93.03 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.3438, allocations: 0 / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.403e-05/0.3439, allocations: 4 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.344, allocations: 15.92 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.344, allocations: 4 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.948e-05/0.344, allocations: 87.27 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.344, allocations: 0 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002324/0.3443, allocations: 12 kB / 1.057 GB, free: 3.375 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: 2 (rea2Int.y,falFac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001873/0.3445, allocations: 103.2 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002445/0.3447, allocations: 43.95 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3447, allocations: 4 kB / 1.057 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.91e-05/0.3448, allocations: 27.97 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.3452, allocations: 16.38 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000337/0.3455, allocations: 147.1 kB / 1.057 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.3458, allocations: 0.677 MB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.359e-05/0.3458, allocations: 8.547 kB / 1.058 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.76e-05/0.3459, allocations: 11.44 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.3459, allocations: 0 / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of Templates: time 0.002983/0.3488, allocations: 0.6617 MB / 1.059 GB, free: 1.625 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches