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.0014/0.0014, allocations: 106.8 kB / 15.98 MB, free: 6.355 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.001466/0.001466, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.351/1.351, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.596/2.596, allocations: 469.4 MB / 0.7423 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 72.38 kB / 0.9083 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3453, allocations: 159.1 MB / 1.064 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002263/0.3476, allocations: 0.6464 MB / 1.064 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003219/0.348, allocations: 59.59 kB / 1.064 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.947e-05/0.348, allocations: 0 / 1.064 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.453e-05/0.3481, allocations: 0 / 1.064 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.292e-06/0.3481, allocations: 0 / 1.064 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.3484, allocations: 20 kB / 1.064 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.165e-05/0.3485, allocations: 35.95 kB / 1.064 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.447e-05/0.3486, allocations: 3.938 kB / 1.064 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.469e-05/0.3486, allocations: 8 kB / 1.064 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.562e-05/0.3487, allocations: 15.97 kB / 1.065 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.364e-05/0.3487, allocations: 0 / 1.065 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.419e-05/0.3488, allocations: 15.98 kB / 1.065 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.198e-05/0.3488, allocations: 15.94 kB / 1.065 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.367e-05/0.3489, allocations: 11.92 kB / 1.065 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 8.537e-05/0.349, allocations: 19.97 kB / 1.065 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.349, allocations: 4 kB / 1.065 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.714e-06/0.349, allocations: 0 / 1.065 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.349, allocations: 0 / 1.065 GB, free: 14.46 MB / 0.8419 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.0003973/0.3494, allocations: 339.6 kB / 1.065 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.3494, allocations: 8.625 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.3495, allocations: 4.844 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.625e-05/0.3496, allocations: 176.5 kB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.3496, allocations: 4.375 kB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.3496, allocations: 4.375 kB / 1.065 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/0.3498, allocations: 66.22 kB / 1.065 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.3498, allocations: 192 / 1.065 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.3498, allocations: 3.938 kB / 1.065 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.3499, allocations: 7.938 kB / 1.065 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.35, allocations: 99.86 kB / 1.065 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.3502, allocations: 173.7 kB / 1.065 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001243/0.3503, allocations: 74.48 kB / 1.065 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.739e-05/0.3504, allocations: 28.84 kB / 1.066 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003736/0.3508, allocations: 409.5 kB / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.3508, allocations: 38.56 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.3508, allocations: 0 / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0002574/0.3511, allocations: 117.8 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.965e-05/0.3512, allocations: 51.41 kB / 1.066 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.5e-05/0.3512, allocations: 101.8 kB / 1.066 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.3512, allocations: 25.7 kB / 1.066 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.643e-05/0.3513, allocations: 84.14 kB / 1.066 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.474e-05/0.3513, allocations: 23.75 kB / 1.066 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.263e-05/0.3514, allocations: 29.7 kB / 1.066 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3515, allocations: 314.8 kB / 1.067 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.019e-05/0.3516, allocations: 19.98 kB / 1.067 GB, free: 12 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.732e-05/0.3516, allocations: 19.98 kB / 1.067 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.3517, allocations: 65.42 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3517, allocations: 3.938 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001402/0.3519, allocations: 105.4 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3519, allocations: 4 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3519, allocations: 7.938 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.3519, allocations: 0 / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.352, allocations: 19.98 kB / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.3521, allocations: 0 / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.957e-05/0.3521, allocations: 0 / 1.067 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.3521, allocations: 4 kB / 1.067 GB, free: 11.76 MB / 0.8419 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.0001591/0.3523, allocations: 122.6 kB / 1.067 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.668e-05/0.3523, allocations: 7.906 kB / 1.067 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002273/0.3525, allocations: 137.3 kB / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.3525, allocations: 0 / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3525, allocations: 3.984 kB / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.3525, allocations: 0 / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.3527, allocations: 173.6 kB / 1.067 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3527, allocations: 0 / 1.067 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.083e-05/0.3528, allocations: 23.98 kB / 1.067 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.3528, allocations: 3.938 kB / 1.067 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.3528, allocations: 4 kB / 1.067 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3528, allocations: 0 / 1.067 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.3528, allocations: 4 kB / 1.067 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001575/0.353, allocations: 121 kB / 1.067 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.796e-05/0.3531, allocations: 84.95 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.3531, allocations: 8 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.46e-05/0.3531, allocations: 0 / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.113e-05/0.3531, allocations: 7.984 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.3531, allocations: 12 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.07e-05/0.3532, allocations: 75.28 kB / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3532, allocations: 0 / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001979/0.3534, allocations: 15.98 kB / 1.068 GB, free: 10.87 MB / 0.8419 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.000202/0.3536, allocations: 119.6 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001575/0.3538, allocations: 71.89 kB / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3538, allocations: 0 / 1.068 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.266e-05/0.3538, allocations: 47.86 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.354, allocations: 9.547 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003042/0.3543, allocations: 178.5 kB / 1.068 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.3545, allocations: 0.6846 MB / 1.069 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.984e-05/0.3546, allocations: 15.44 kB / 1.069 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of SimCode: time 3.91e-07/0.3546, allocations: 0 / 1.069 GB, free: 9.691 MB / 0.8419 GB Notification: Performance of Templates: time 0.002428/0.357, allocations: 0.9604 MB / 1.07 GB, free: 8.73 MB / 0.8419 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/jenkins1/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