Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.892/1.892, allocations: 387.2 MB / 394.5 MB, free: 13.69 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.001017/0.001017, allocations: 177.3 kB / 487 MB, free: 5.395 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.287/1.287, allocations: 221.3 MB / 0.7819 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009141/0.000914, allocations: 98.23 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.462e-06/6.482e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2744, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7011/0.9756, allocations: 148.8 MB / 1.351 GB, free: 16.19 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.9759, allocations: 72.5 kB / 1.351 GB, free: 16.19 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002971/0.9789, allocations: 0.7517 MB / 1.351 GB, free: 16.14 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.9789, allocations: 1.25 kB / 1.351 GB, free: 16.14 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003345/0.9792, allocations: 347.3 kB / 1.352 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.9793, allocations: 9.156 kB / 1.352 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.9793, allocations: 13.59 kB / 1.352 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.343e-05/0.9794, allocations: 169.8 kB / 1.352 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.9794, allocations: 1.75 kB / 1.352 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.21e-05/0.9795, allocations: 5.766 kB / 1.352 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.908e-05/0.9796, allocations: 16.83 kB / 1.352 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.725e-05/0.9796, allocations: 49.8 kB / 1.352 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.9797, allocations: 1.734 kB / 1.352 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.9797, allocations: 0 / 1.352 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.9797, allocations: 1.375 kB / 1.352 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003211/0.98, allocations: 252.7 kB / 1.352 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.9802, allocations: 43.7 kB / 1.352 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.204e-05/0.9803, allocations: 12.67 kB / 1.352 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000198/0.9805, allocations: 400.8 kB / 1.353 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.544e-05/0.9805, allocations: 41.42 kB / 1.353 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.9805, allocations: 0 / 1.353 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.000193/0.9807, allocations: 49.2 kB / 1.353 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.699e-05/0.9807, allocations: 52.94 kB / 1.353 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.508e-05/0.9808, allocations: 95.98 kB / 1.353 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.9808, allocations: 29.64 kB / 1.353 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.353e-05/0.9808, allocations: 89.52 kB / 1.353 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.634e-05/0.9809, allocations: 6.75 kB / 1.353 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.9809, allocations: 4 kB / 1.353 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.569e-05/0.9809, allocations: 317.5 kB / 1.353 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.899e-05/0.9809, allocations: 3.844 kB / 1.353 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.687e-05/0.981, allocations: 7.031 kB / 1.353 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.39e-05/0.981, allocations: 9.406 kB / 1.353 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.981, allocations: 0 / 1.353 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.285e-05/0.9811, allocations: 51.12 kB / 1.353 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.9811, allocations: 8.438 kB / 1.353 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.9812, allocations: 1.125 kB / 1.353 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.9812, allocations: 0 / 1.353 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.786e-05/0.9813, allocations: 19.06 kB / 1.353 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.9813, allocations: 1.75 kB / 1.353 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.74e-05/0.9814, allocations: 12.2 kB / 1.353 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.9814, allocations: 4.781 kB / 1.353 GB, free: 14.09 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,falFac.k) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 4.818e-05/0.9814, allocations: 108.4 kB / 1.353 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.686e-05/0.9815, allocations: 6.031 kB / 1.354 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001387/0.9816, allocations: 57.73 kB / 1.354 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.9816, allocations: 1.094 kB / 1.354 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.9816, allocations: 3.312 kB / 1.354 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.9816, allocations: 0 / 1.354 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.9818, allocations: 152.2 kB / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.9818, allocations: 0 / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-05/0.9819, allocations: 24.05 kB / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.9819, allocations: 1.344 kB / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.9819, allocations: 0 / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.9819, allocations: 1.062 kB / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.9819, allocations: 0 / 1.354 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001139/0.982, allocations: 150 kB / 1.354 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.982, allocations: 80.64 kB / 1.354 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.9821, allocations: 4 kB / 1.354 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.883e-05/0.9822, allocations: 9.484 kB / 1.354 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.9822, allocations: 9.656 kB / 1.354 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.9822, allocations: 5 kB / 1.354 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.98e-05/0.9823, allocations: 80.3 kB / 1.354 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002393/0.9825, allocations: 17.62 kB / 1.354 GB, free: 13.45 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (falFac.y,falFac.k) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001464/0.9827, allocations: 119.3 kB / 1.354 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.867e-05/0.9827, allocations: 20.25 kB / 1.354 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.9828, allocations: 0.9688 kB / 1.354 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.395e-05/0.9828, allocations: 9.766 kB / 1.354 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001674/0.983, allocations: 10.83 kB / 1.354 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002298/0.9832, allocations: 70.66 kB / 1.354 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002831/0.9835, allocations: 0.7005 MB / 1.355 GB, free: 28.57 MB / 0.823 GB Notification: Performance of SimCode: time 2.51e-07/0.9835, allocations: 0 / 1.355 GB, free: 28.57 MB / 0.823 GB Notification: Performance of Templates: time 0.002765/0.9863, allocations: 0.6817 MB / 1.356 GB, free: 28.52 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches