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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008171/0.0008171, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.0008321/0.0008321, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.138/3.138, allocations: 462.6 MB / 0.736 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003992/0.0003993, allocations: 10.66 kB / 0.9021 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3594, allocations: 159.6 MB / 1.058 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0008607/0.3603, allocations: 318.9 kB / 1.058 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002558/0.3606, allocations: 51.84 kB / 1.058 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.927e-05/0.3606, allocations: 0 / 1.058 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.312e-05/0.3607, allocations: 4 kB / 1.058 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.3607, allocations: 0 / 1.058 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002431/0.3609, allocations: 11.98 kB / 1.058 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.363e-05/0.361, allocations: 31.95 kB / 1.058 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.824e-05/0.3611, allocations: 4 kB / 1.058 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.67e-05/0.3611, allocations: 4 kB / 1.058 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.814e-05/0.3612, allocations: 23.91 kB / 1.058 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.3612, allocations: 0 / 1.058 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.836e-05/0.3613, allocations: 15.98 kB / 1.058 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.401e-05/0.3613, allocations: 4 kB / 1.058 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.513e-05/0.3613, allocations: 33.7 kB / 1.059 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.298e-05/0.3614, allocations: 23.95 kB / 1.059 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3614, allocations: 0 / 1.059 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.425e-06/0.3614, allocations: 3.938 kB / 1.059 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.3614, allocations: 0 / 1.059 GB, free: 4.809 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.0002951/0.3617, allocations: 331.3 kB / 1.059 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.3618, allocations: 12.03 kB / 1.059 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.3618, allocations: 4 kB / 1.059 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.3619, allocations: 167.2 kB / 1.059 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.3619, allocations: 4 kB / 1.059 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.362, allocations: 11.95 kB / 1.059 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.3621, allocations: 65.66 kB / 1.059 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3621, allocations: 0 / 1.059 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.3622, allocations: 0 / 1.059 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3622, allocations: 0 / 1.059 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.3623, allocations: 103.9 kB / 1.059 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001834/0.3625, allocations: 169.6 kB / 1.059 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.3626, allocations: 82.47 kB / 1.059 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.844e-05/0.3627, allocations: 32.84 kB / 1.059 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003374/0.363, allocations: 413.5 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.265e-05/0.3631, allocations: 30.56 kB / 1.06 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.3631, allocations: 0 / 1.06 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.000244/0.3633, allocations: 117.5 kB / 1.06 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.3634, allocations: 51.41 kB / 1.06 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.242e-05/0.3634, allocations: 97.75 kB / 1.06 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.3635, allocations: 33.7 kB / 1.06 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.987e-05/0.3635, allocations: 88.55 kB / 1.06 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.3636, allocations: 19.75 kB / 1.06 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-06/0.3636, allocations: 3.938 kB / 1.06 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3637, allocations: 310.8 kB / 1.061 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.652e-05/0.3637, allocations: 19.98 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.347e-05/0.3638, allocations: 19.98 kB / 1.061 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.236e-05/0.3638, allocations: 27.98 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3638, allocations: 0 / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001378/0.364, allocations: 93.56 kB / 1.061 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.364, allocations: 15.89 kB / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.364, allocations: 0 / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.364, allocations: 0 / 1.061 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.3641, allocations: 27.92 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.3641, allocations: 0 / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.947e-05/0.3642, allocations: 4 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.3642, allocations: 0 / 1.061 GB, free: 2.188 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 (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 initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.3643, allocations: 121.8 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.247e-05/0.3644, allocations: 11.91 kB / 1.061 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002273/0.3646, allocations: 129.6 kB / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3646, allocations: 0 / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3646, allocations: 0 / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3646, allocations: 0 / 1.061 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001359/0.3648, allocations: 177.5 kB / 1.061 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3648, allocations: 0 / 1.061 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.788e-05/0.3648, allocations: 23.98 kB / 1.061 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3648, allocations: 0 / 1.061 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.567e-06/0.3649, allocations: 7.938 kB / 1.061 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.3649, allocations: 3.953 kB / 1.061 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3649, allocations: 0 / 1.061 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001582/0.365, allocations: 121.4 kB / 1.061 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.341e-05/0.3651, allocations: 81.02 kB / 1.061 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.3651, allocations: 0 / 1.061 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.707e-05/0.3651, allocations: 4 kB / 1.061 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.3652, allocations: 23.88 kB / 1.061 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.3652, allocations: 7.984 kB / 1.061 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.704e-05/0.3652, allocations: 75.28 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3652, allocations: 0 / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001962/0.3654, allocations: 16 kB / 1.062 GB, free: 1.297 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001659/0.3656, allocations: 115.2 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001317/0.3657, allocations: 64.83 kB / 1.062 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3658, allocations: 4 kB / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.534e-05/0.3658, allocations: 35.92 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001305/0.3659, allocations: 4.438 kB / 1.062 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002575/0.3662, allocations: 146.7 kB / 1.062 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.3666, allocations: 0.6887 MB / 1.063 GB, free: 188 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.4e-05/0.3667, allocations: 43.8 kB / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.255e-05/0.3667, allocations: 15.44 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of SimCode: time 3.41e-07/0.3667, allocations: 0 / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of Templates: time 0.002809/0.3695, allocations: 0.5646 MB / 1.063 GB, free: 15.56 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