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.364/2.364, allocations: 390.3 MB / 402.8 MB, free: 6.711 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.001013/0.001013, allocations: 176.8 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 221.3 MB / 0.7915 GB, free: 5.375 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.000957/0.0009572, allocations: 91.89 kB / 0.9318 GB, free: 5.684 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.574e-05/3.576e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3249, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.123/1.448, allocations: 149.3 MB / 1.365 GB, free: 4.766 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/1.448, allocations: 75.2 kB / 1.365 GB, free: 4.723 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002156/1.45, allocations: 0.8259 MB / 1.365 GB, free: 3.957 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.984e-06/1.45, allocations: 0 / 1.365 GB, free: 3.957 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.422e-06/1.45, allocations: 0 / 1.365 GB, free: 3.957 MB / 0.823 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.0003367/1.451, allocations: 335.6 kB / 1.366 GB, free: 3.594 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/1.451, allocations: 11.97 kB / 1.366 GB, free: 3.582 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.23e-05/1.451, allocations: 7.031 kB / 1.366 GB, free: 3.578 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/1.451, allocations: 167 kB / 1.366 GB, free: 3.375 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/1.451, allocations: 3.984 kB / 1.366 GB, free: 3.371 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/1.451, allocations: 7.812 kB / 1.366 GB, free: 3.367 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/1.451, allocations: 60.36 kB / 1.366 GB, free: 3.309 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/1.451, allocations: 0 / 1.366 GB, free: 3.309 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/1.451, allocations: 4 kB / 1.366 GB, free: 3.305 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/1.451, allocations: 4 kB / 1.366 GB, free: 3.301 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/1.451, allocations: 98.62 kB / 1.366 GB, free: 3.215 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002351/1.452, allocations: 180 kB / 1.366 GB, free: 3 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/1.452, allocations: 68.19 kB / 1.366 GB, free: 2.934 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.059e-05/1.452, allocations: 33.45 kB / 1.366 GB, free: 2.906 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003442/1.452, allocations: 409.3 kB / 1.367 GB, free: 2.418 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/1.452, allocations: 34.5 kB / 1.367 GB, free: 2.375 MB / 0.823 GB Notification: Performance of pre-optimization done (n=11): time 1.833e-06/1.452, allocations: 4 kB / 1.367 GB, free: 2.371 MB / 0.823 GB Notification: Performance of matching and sorting (n=11): time 0.0002324/1.453, allocations: 92.17 kB / 1.367 GB, free: 2.285 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/1.453, allocations: 51.41 kB / 1.367 GB, free: 2.223 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.216e-05/1.453, allocations: 92.41 kB / 1.367 GB, free: 2.129 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/1.453, allocations: 29.7 kB / 1.367 GB, free: 2.094 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.093e-05/1.453, allocations: 80.33 kB / 1.367 GB, free: 2.008 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 3.369e-05/1.453, allocations: 21.91 kB / 1.367 GB, free: 1.992 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/1.453, allocations: 0 / 1.367 GB, free: 1.992 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.000121/1.453, allocations: 322.6 kB / 1.367 GB, free: 1.672 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.575e-05/1.453, allocations: 19.75 kB / 1.367 GB, free: 1.656 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.19e-05/1.453, allocations: 23.3 kB / 1.368 GB, free: 1.637 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.804e-05/1.453, allocations: 23.98 kB / 1.368 GB, free: 1.617 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.453, allocations: 4 kB / 1.368 GB, free: 1.613 MB / 0.823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001365/1.453, allocations: 91.92 kB / 1.368 GB, free: 1.527 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/1.453, allocations: 8 kB / 1.368 GB, free: 1.52 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/1.453, allocations: 3.938 kB / 1.368 GB, free: 1.516 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/1.453, allocations: 0 / 1.368 GB, free: 1.516 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/1.453, allocations: 16 kB / 1.368 GB, free: 1.5 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/1.453, allocations: 0 / 1.368 GB, free: 1.5 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.654e-05/1.453, allocations: 11.17 kB / 1.368 GB, free: 1.492 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/1.453, allocations: 4 kB / 1.368 GB, free: 1.488 MB / 0.823 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 () * 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.461e-05/1.453, allocations: 117.2 kB / 1.368 GB, free: 1.371 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.4e-05/1.454, allocations: 7.906 kB / 1.368 GB, free: 1.363 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002253/1.454, allocations: 123.2 kB / 1.368 GB, free: 1.254 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/1.454, allocations: 8 kB / 1.368 GB, free: 1.246 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/1.454, allocations: 0 / 1.368 GB, free: 1.246 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/1.454, allocations: 3.984 kB / 1.368 GB, free: 1.242 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001354/1.454, allocations: 172.5 kB / 1.368 GB, free: 1.035 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/1.454, allocations: 3.953 kB / 1.368 GB, free: 1.031 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.453e-05/1.454, allocations: 23.92 kB / 1.368 GB, free: 1.008 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/1.454, allocations: 0 / 1.368 GB, free: 1.008 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/1.454, allocations: 4 kB / 1.368 GB, free: 1.004 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/1.454, allocations: 0 / 1.368 GB, free: 1.004 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/1.454, allocations: 0 / 1.368 GB, free: 1.004 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001663/1.454, allocations: 122.8 kB / 1.368 GB, free: 0.8789 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.849e-05/1.454, allocations: 88.31 kB / 1.368 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/1.454, allocations: 0 / 1.368 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.493e-05/1.454, allocations: 0 / 1.368 GB, free: 0.7773 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/1.454, allocations: 11.17 kB / 1.368 GB, free: 0.7695 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/1.454, allocations: 4 kB / 1.368 GB, free: 0.7656 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.649e-05/1.454, allocations: 79.22 kB / 1.368 GB, free: 0.6875 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.3e-07/1.454, allocations: 0 / 1.368 GB, free: 0.6875 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.000222/1.455, allocations: 18.75 kB / 1.368 GB, free: 0.6719 MB / 0.823 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 () * 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.0002209/1.455, allocations: 131 kB / 1.369 GB, free: 0.5391 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001312/1.455, allocations: 51.98 kB / 1.369 GB, free: 0.4961 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/1.455, allocations: 0 / 1.369 GB, free: 0.4961 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.968e-05/1.455, allocations: 39.17 kB / 1.369 GB, free: 476 kB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.71e-05/1.455, allocations: 4.516 kB / 1.369 GB, free: 472 kB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002553/1.455, allocations: 108.5 kB / 1.369 GB, free: 352 kB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/1.456, allocations: 0.6848 MB / 1.369 GB, free: 15.63 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.376e-05/1.456, allocations: 39.72 kB / 1.369 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.258e-05/1.456, allocations: 11.44 kB / 1.369 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of SimCode: time 4.01e-07/1.456, allocations: 0 / 1.369 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of Templates: time 0.002668/1.459, allocations: 0.5648 MB / 1.37 GB, free: 15.03 MB / 0.8386 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