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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00204/0.00204, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.002266/0.002267, allocations: 194.5 kB / 16.91 MB, free: 6.195 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.469/1.469, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.824/2.824, allocations: 482.4 MB / 0.755 GB, free: 7.16 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.003137/0.003137, allocations: 72.55 kB / 0.924 GB, free: 332 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.005/1.008, allocations: 162.2 MB / 1.082 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001744/1.01, allocations: 0.6457 MB / 1.083 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002369/1.01, allocations: 55.03 kB / 1.083 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.661e-05/1.01, allocations: 1.938 kB / 1.083 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.669e-05/1.01, allocations: 0 / 1.083 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.819e-06/1.01, allocations: 0 / 1.083 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000261/1.01, allocations: 20.23 kB / 1.083 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.064e-05/1.01, allocations: 34.72 kB / 1.083 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/1.01, allocations: 6.094 kB / 1.083 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.85e-05/1.01, allocations: 7.688 kB / 1.083 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.705e-05/1.01, allocations: 15.09 kB / 1.083 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/1.01, allocations: 1.531 kB / 1.083 GB, free: 1.141 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.993e-05/1.01, allocations: 15.88 kB / 1.083 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.865e-05/1.01, allocations: 14.59 kB / 1.083 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.058e-05/1.01, allocations: 10.22 kB / 1.083 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.489e-05/1.011, allocations: 27.34 kB / 1.083 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/1.011, allocations: 3.938 kB / 1.083 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.282e-06/1.011, allocations: 1.219 kB / 1.083 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.99e-06/1.011, allocations: 4 kB / 1.083 GB, free: 1.105 MB / 0.8262 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.000259/1.011, allocations: 329.9 kB / 1.084 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/1.011, allocations: 10.56 kB / 1.084 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.65e-05/1.011, allocations: 7 kB / 1.084 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.827e-05/1.011, allocations: 164 kB / 1.084 GB, free: 0.5508 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/1.011, allocations: 5.781 kB / 1.084 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/1.011, allocations: 7.906 kB / 1.084 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001396/1.011, allocations: 61.39 kB / 1.084 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/1.011, allocations: 0.8906 kB / 1.084 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/1.011, allocations: 9.094 kB / 1.084 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/1.011, allocations: 1.062 kB / 1.084 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/1.011, allocations: 105.4 kB / 1.084 GB, free: 492 kB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001339/1.012, allocations: 172.2 kB / 1.084 GB, free: 288 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/1.012, allocations: 75.66 kB / 1.084 GB, free: 248 kB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.066e-05/1.012, allocations: 32.05 kB / 1.084 GB, free: 232 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003357/1.012, allocations: 403 kB / 1.085 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/1.012, allocations: 40.8 kB / 1.085 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/1.012, allocations: 0 / 1.085 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0002761/1.012, allocations: 118.6 kB / 1.085 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/1.012, allocations: 53.2 kB / 1.085 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.74e-05/1.012, allocations: 96.95 kB / 1.085 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/1.013, allocations: 26.42 kB / 1.085 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.094e-05/1.013, allocations: 80.14 kB / 1.085 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.635e-05/1.013, allocations: 20.22 kB / 1.085 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.635e-05/1.013, allocations: 36.77 kB / 1.085 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001545/1.013, allocations: 317.9 kB / 1.085 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.937e-05/1.013, allocations: 19.98 kB / 1.085 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.657e-05/1.013, allocations: 24.97 kB / 1.085 GB, free: 15 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001236/1.013, allocations: 58.52 kB / 1.085 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/1.013, allocations: 0.7031 kB / 1.085 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001699/1.013, allocations: 90.44 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/1.013, allocations: 4.797 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/1.013, allocations: 3.938 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/1.013, allocations: 1.375 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/1.013, allocations: 33.77 kB / 1.086 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/1.013, allocations: 5.766 kB / 1.086 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.458e-05/1.013, allocations: 8.969 kB / 1.086 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/1.014, allocations: 8.094 kB / 1.086 GB, free: 14.89 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.0001483/1.014, allocations: 121 kB / 1.086 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.288e-05/1.014, allocations: 3 kB / 1.086 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002356/1.014, allocations: 134 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/1.014, allocations: 1.188 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/1.014, allocations: 2.281 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/1.014, allocations: 0 / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/1.014, allocations: 181.2 kB / 1.086 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/1.014, allocations: 1.125 kB / 1.086 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.234e-05/1.014, allocations: 21.88 kB / 1.086 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/1.014, allocations: 4.438 kB / 1.086 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/1.014, allocations: 2.891 kB / 1.086 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/1.014, allocations: 0 / 1.086 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.014, allocations: 5.703 kB / 1.086 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/1.014, allocations: 120.7 kB / 1.086 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.81e-05/1.014, allocations: 87.41 kB / 1.086 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.36e-05/1.014, allocations: 1.594 kB / 1.086 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.767e-05/1.015, allocations: 4.891 kB / 1.086 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/1.015, allocations: 7.703 kB / 1.086 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/1.015, allocations: 3.047 kB / 1.086 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.093e-05/1.015, allocations: 79.28 kB / 1.086 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.01e-07/1.015, allocations: 0.8438 kB / 1.086 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001982/1.015, allocations: 15.72 kB / 1.086 GB, free: 14.21 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.0001999/1.015, allocations: 111.9 kB / 1.086 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001709/1.015, allocations: 70.95 kB / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/1.015, allocations: 0.5 kB / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 6.439e-05/1.015, allocations: 44.11 kB / 1.087 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/1.015, allocations: 7.156 kB / 1.087 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003187/1.016, allocations: 189.5 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/1.016, allocations: 0.6832 MB / 1.087 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/1.016, allocations: 19.48 kB / 1.087 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/1.016, allocations: 0 / 1.087 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of Templates: time 0.00274/1.019, allocations: 0.9625 MB / 1.088 GB, free: 13.12 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=400 -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