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.008847/0.008848, allocations: 106 kB / 15.73 MB, free: 6 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.003016/0.003016, allocations: 192.2 kB / 16.67 MB, free: 5.922 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.631/2.631, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 71.89 kB / 1.054 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8309/0.8321, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001642/0.8338, allocations: 0.5778 MB / 1.208 GB, free: 13.01 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.000292/0.8341, allocations: 61.67 kB / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.185e-05/0.8342, allocations: 8 kB / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.704e-05/0.8342, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.322e-06/0.8342, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.8345, allocations: 11.98 kB / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.8346, allocations: 31.97 kB / 1.208 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.26e-05/0.8347, allocations: 4 kB / 1.208 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.189e-05/0.8347, allocations: 19.86 kB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 2.852e-05/0.8348, allocations: 7.984 kB / 1.208 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.297e-05/0.8348, allocations: 4 kB / 1.208 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.448e-05/0.8349, allocations: 15.98 kB / 1.208 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.257e-05/0.8349, allocations: 11.98 kB / 1.209 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.486e-05/0.8349, allocations: 15.94 kB / 1.209 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 9.967e-05/0.8351, allocations: 35.89 kB / 1.209 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.8351, allocations: 4 kB / 1.209 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.804e-06/0.8351, allocations: 0 / 1.209 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.8351, allocations: 0 / 1.209 GB, free: 12.79 MB / 0.9356 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.0003555/0.8354, allocations: 335.5 kB / 1.209 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.8355, allocations: 8.031 kB / 1.209 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.729e-05/0.8355, allocations: 8.844 kB / 1.209 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.36e-05/0.8356, allocations: 164.2 kB / 1.209 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.8356, allocations: 16.38 kB / 1.209 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.8357, allocations: 384 / 1.209 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001432/0.8358, allocations: 70.16 kB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.8358, allocations: 192 / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.8358, allocations: 3.938 kB / 1.209 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.8359, allocations: 3.938 kB / 1.209 GB, free: 12.1 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.836, allocations: 99.88 kB / 1.209 GB, free: 12 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001754/0.8362, allocations: 173.6 kB / 1.209 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001146/0.8363, allocations: 70.55 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.573e-05/0.8364, allocations: 37.17 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003332/0.8367, allocations: 401.5 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.8367, allocations: 42.44 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.8367, allocations: 0 / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.0002385/0.837, allocations: 113.5 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/0.837, allocations: 51.41 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.146e-05/0.8371, allocations: 97.86 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.8371, allocations: 25.7 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.507e-05/0.8371, allocations: 88.12 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.8372, allocations: 21.55 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.572e-05/0.8372, allocations: 33.7 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.8373, allocations: 310.8 kB / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.701e-05/0.8374, allocations: 23.92 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.636e-05/0.8374, allocations: 24.36 kB / 1.211 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/0.8375, allocations: 64.77 kB / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8375, allocations: 0 / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001333/0.8377, allocations: 93.61 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.8377, allocations: 5.562 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.8377, allocations: 3.938 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.8377, allocations: 4 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.8378, allocations: 19.98 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.8379, allocations: 4 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.285e-05/0.8379, allocations: 11.78 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.779e-06/0.8379, allocations: 4 kB / 1.211 GB, free: 10.09 MB / 0.9356 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.0001335/0.838, allocations: 125.8 kB / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/0.8381, allocations: 0 / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002149/0.8383, allocations: 125.5 kB / 1.211 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.8383, allocations: 4 kB / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.8383, allocations: 0 / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.8383, allocations: 0 / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.8384, allocations: 177.5 kB / 1.211 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.8384, allocations: 0 / 1.211 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.955e-05/0.8385, allocations: 23.92 kB / 1.211 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.8385, allocations: 7.875 kB / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.8385, allocations: 12 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.8385, allocations: 3.938 kB / 1.211 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.8386, allocations: 0 / 1.211 GB, free: 9.547 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.8387, allocations: 113.1 kB / 1.211 GB, free: 9.418 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.753e-05/0.8387, allocations: 88.95 kB / 1.212 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.8388, allocations: 4 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.58e-05/0.8388, allocations: 4 kB / 1.212 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/0.8388, allocations: 11.98 kB / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.8388, allocations: 7.938 kB / 1.212 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 2.437e-05/0.8389, allocations: 75.28 kB / 1.212 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.8389, allocations: 0 / 1.212 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001973/0.8391, allocations: 16 kB / 1.212 GB, free: 9.195 MB / 0.9356 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.0001836/0.8393, allocations: 115.2 kB / 1.212 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001398/0.8394, allocations: 60.45 kB / 1.212 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.8394, allocations: 4 kB / 1.212 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.312e-05/0.8395, allocations: 39.91 kB / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001464/0.8396, allocations: 8.438 kB / 1.212 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002707/0.8399, allocations: 144.8 kB / 1.212 GB, free: 8.797 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.8401, allocations: 0.6807 MB / 1.213 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.309e-05/0.8402, allocations: 39.92 kB / 1.213 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.306e-05/0.8403, allocations: 15.44 kB / 1.213 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of SimCode: time 1.502e-06/0.8403, allocations: 4 kB / 1.213 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of Templates: time 0.002684/0.8429, allocations: 0.6095 MB / 1.213 GB, free: 7.422 MB / 0.9356 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