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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.525/2.525, allocations: 393.5 MB / 408.4 MB, free: 11.06 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 183.9 kB / 0.4902 GB, free: 2.254 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.721/1.721, allocations: 223.1 MB / 0.7992 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 101.2 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004165/0.0004165, allocations: 11.19 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3373, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1993/0.5367, allocations: 149.4 MB / 1.375 GB, free: 4.242 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.537, allocations: 79.95 kB / 1.375 GB, free: 4.164 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.001941/0.5389, allocations: 0.8241 MB / 1.376 GB, free: 3.336 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.804e-06/0.539, allocations: 0 / 1.376 GB, free: 3.336 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.539, allocations: 0 / 1.376 GB, free: 3.336 MB / 0.8698 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.000283/0.5393, allocations: 331.4 kB / 1.376 GB, free: 2.965 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.5393, allocations: 16.52 kB / 1.376 GB, free: 2.949 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.385e-05/0.5394, allocations: 7.906 kB / 1.376 GB, free: 2.941 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.5395, allocations: 167.9 kB / 1.376 GB, free: 2.738 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.5395, allocations: 4 kB / 1.376 GB, free: 2.734 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.5395, allocations: 4 kB / 1.376 GB, free: 2.73 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001546/0.5397, allocations: 61.66 kB / 1.377 GB, free: 2.664 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.5397, allocations: 3.938 kB / 1.377 GB, free: 2.66 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.5397, allocations: 8 kB / 1.377 GB, free: 2.652 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.5397, allocations: 0 / 1.377 GB, free: 2.652 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.5399, allocations: 99.88 kB / 1.377 GB, free: 2.555 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000211/0.5401, allocations: 173.6 kB / 1.377 GB, free: 2.336 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.5402, allocations: 74.48 kB / 1.377 GB, free: 2.254 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003103/0.5405, allocations: 401.5 kB / 1.377 GB, free: 1.77 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.5406, allocations: 34.56 kB / 1.377 GB, free: 1.727 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 2.495e-06/0.5406, allocations: 7.938 kB / 1.377 GB, free: 1.719 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0002412/0.5408, allocations: 113.9 kB / 1.377 GB, free: 1.602 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.5408, allocations: 51.41 kB / 1.377 GB, free: 1.539 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.603e-05/0.5409, allocations: 92.91 kB / 1.378 GB, free: 1.441 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.5409, allocations: 29.7 kB / 1.378 GB, free: 1.406 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.879e-05/0.541, allocations: 84.31 kB / 1.378 GB, free: 1.316 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.517e-05/0.541, allocations: 27.67 kB / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.318e-06/0.541, allocations: 0 / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5412, allocations: 314.8 kB / 1.378 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.608e-05/0.5412, allocations: 19.98 kB / 1.378 GB, free: 0.9531 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.069e-05/0.5413, allocations: 20.42 kB / 1.378 GB, free: 0.9336 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.48e-05/0.5413, allocations: 32.14 kB / 1.378 GB, free: 0.9023 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.5413, allocations: 3.953 kB / 1.378 GB, free: 0.8984 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001355/0.5415, allocations: 97.52 kB / 1.378 GB, free: 0.7969 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.5415, allocations: 4 kB / 1.378 GB, free: 0.793 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.5415, allocations: 3.984 kB / 1.378 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.5415, allocations: 0 / 1.378 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.821e-05/0.5416, allocations: 19.94 kB / 1.378 GB, free: 0.7695 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.5416, allocations: 0 / 1.378 GB, free: 0.7695 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.149e-05/0.5417, allocations: 8 kB / 1.378 GB, free: 0.7617 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.5417, allocations: 3.984 kB / 1.378 GB, free: 0.7578 MB / 0.8698 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 9.32e-05/0.5418, allocations: 117.8 kB / 1.378 GB, free: 0.6328 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.5418, allocations: 11.86 kB / 1.378 GB, free: 0.6211 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002119/0.542, allocations: 129.9 kB / 1.378 GB, free: 500 kB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.542, allocations: 0 / 1.378 GB, free: 500 kB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.542, allocations: 7.938 kB / 1.378 GB, free: 492 kB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.5421, allocations: 3.984 kB / 1.378 GB, free: 488 kB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.5422, allocations: 165.7 kB / 1.379 GB, free: 272 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.5422, allocations: 3.984 kB / 1.379 GB, free: 268 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.73e-05/0.5423, allocations: 23.95 kB / 1.379 GB, free: 244 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.5423, allocations: 0 / 1.379 GB, free: 244 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.5423, allocations: 0 / 1.379 GB, free: 244 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.5423, allocations: 3.984 kB / 1.379 GB, free: 240 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5423, allocations: 4 kB / 1.379 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/0.5425, allocations: 117.4 kB / 1.379 GB, free: 100 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5e-05/0.5425, allocations: 81.02 kB / 1.379 GB, free: 0 / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.5425, allocations: 12.05 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.492e-05/0.5426, allocations: 7.938 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.208e-05/0.5426, allocations: 4 kB / 1.379 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.5426, allocations: 3.984 kB / 1.379 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 2.924e-05/0.5426, allocations: 83.11 kB / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1e-07/0.5427, allocations: 0 / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0001988/0.5429, allocations: 23.88 kB / 1.379 GB, free: 15.87 MB / 0.8855 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.0001844/0.5431, allocations: 116 kB / 1.379 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001349/0.5432, allocations: 63.89 kB / 1.379 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5432, allocations: 0 / 1.379 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.723e-05/0.5433, allocations: 31.92 kB / 1.379 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.36e-05/0.5434, allocations: 8.688 kB / 1.379 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002545/0.5436, allocations: 147.5 kB / 1.379 GB, free: 15.47 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.5439, allocations: 0.6862 MB / 1.38 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.36e-05/0.544, allocations: 43.64 kB / 1.38 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.226e-05/0.544, allocations: 19.44 kB / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of SimCode: time 3.6e-07/0.544, allocations: 0 / 1.38 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of Templates: time 0.002291/0.5463, allocations: 0.5544 MB / 1.381 GB, free: 14.14 MB / 0.8855 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","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches