Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.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 7.0.3-maint.7.0.x/package.mo): time 1.209/1.209, allocations: 249.4 MB / 256.7 MB, free: 6.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 188.3 kB / 316 MB, free: 3.559 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.028/1.028, allocations: 205.2 MB / 0.5667 GB, free: 15.55 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008659/0.0008658, allocations: 94.3 kB / 0.671 GB, free: 4.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.544e-06/7.574e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1336, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3922/0.5258, allocations: 131.3 MB / 1.013 GB, free: 7.398 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002056/0.5261, allocations: 68.27 kB / 1.013 GB, free: 7.359 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.001701/0.5278, allocations: 0.5176 MB / 1.013 GB, free: 6.91 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.5278, allocations: 0 / 1.013 GB, free: 6.91 MB / 0.6355 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.0002498/0.5281, allocations: 332 kB / 1.014 GB, free: 6.547 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.5281, allocations: 8.031 kB / 1.014 GB, free: 6.539 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.5281, allocations: 4 kB / 1.014 GB, free: 6.535 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.428e-05/0.5282, allocations: 166.9 kB / 1.014 GB, free: 6.332 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.5283, allocations: 4 kB / 1.014 GB, free: 6.328 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.5283, allocations: 0 / 1.014 GB, free: 6.328 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001617/0.5284, allocations: 98.56 kB / 1.014 GB, free: 6.242 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.582e-05/0.5285, allocations: 56.73 kB / 1.014 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.5285, allocations: 0 / 1.014 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.006e-06/0.5286, allocations: 0 / 1.014 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.936e-06/0.5286, allocations: 4 kB / 1.014 GB, free: 6.184 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00016/0.5287, allocations: 157.1 kB / 1.014 GB, free: 6 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.509e-05/0.5288, allocations: 73.05 kB / 1.014 GB, free: 5.93 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.848e-05/0.5289, allocations: 31.41 kB / 1.014 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002835/0.5292, allocations: 405 kB / 1.015 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.5292, allocations: 31.31 kB / 1.015 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.5292, allocations: 0 / 1.015 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0003218/0.5295, allocations: 94.08 kB / 1.015 GB, free: 5.293 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.353e-05/0.5296, allocations: 55.34 kB / 1.015 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.427e-05/0.5296, allocations: 92.98 kB / 1.015 GB, free: 5.129 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.5296, allocations: 25.7 kB / 1.015 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.478e-05/0.5297, allocations: 83.95 kB / 1.015 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.5297, allocations: 15.72 kB / 1.015 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-06/0.5297, allocations: 3.938 kB / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.5298, allocations: 314.3 kB / 1.015 GB, free: 4.68 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.095e-05/0.5299, allocations: 23.36 kB / 1.015 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.427e-05/0.5299, allocations: 27.36 kB / 1.015 GB, free: 4.637 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.5301, allocations: 27.05 kB / 1.015 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.5301, allocations: 0 / 1.015 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002267/0.5303, allocations: 95.14 kB / 1.015 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.5303, allocations: 4 kB / 1.015 GB, free: 4.52 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.5303, allocations: 0 / 1.015 GB, free: 4.52 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.5304, allocations: 0 / 1.015 GB, free: 4.52 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.252e-05/0.5305, allocations: 23.55 kB / 1.015 GB, free: 4.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.5305, allocations: 0 / 1.015 GB, free: 4.5 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.123e-05/0.5305, allocations: 11.84 kB / 1.015 GB, free: 4.488 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.5305, allocations: 4 kB / 1.016 GB, free: 4.484 MB / 0.6355 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 7.438e-05/0.5306, allocations: 108.9 kB / 1.016 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.5306, allocations: 7.906 kB / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003117/0.5309, allocations: 120.6 kB / 1.016 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.5309, allocations: 4 kB / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.5309, allocations: 4 kB / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.531, allocations: 0 / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001022/0.5311, allocations: 157.1 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.5311, allocations: 0 / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.737e-05/0.5311, allocations: 23.92 kB / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.5311, allocations: 0 / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.894e-06/0.5312, allocations: 0 / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.5312, allocations: 0 / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.5312, allocations: 7.984 kB / 1.016 GB, free: 4.027 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002454/0.5314, allocations: 115.9 kB / 1.016 GB, free: 3.906 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.23e-05/0.5315, allocations: 92.52 kB / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.5315, allocations: 0 / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.43e-05/0.5315, allocations: 0 / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.848e-05/0.5315, allocations: 7.984 kB / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.5315, allocations: 4 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.492e-05/0.5316, allocations: 75.28 kB / 1.016 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002078/0.5318, allocations: 16 kB / 1.016 GB, free: 3.699 MB / 0.6355 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.0001701/0.532, allocations: 119.2 kB / 1.016 GB, free: 3.574 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001042/0.5321, allocations: 58.55 kB / 1.016 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.5321, allocations: 0 / 1.016 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.182e-05/0.5321, allocations: 38.86 kB / 1.016 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.874e-05/0.5322, allocations: 7.844 kB / 1.016 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002184/0.5324, allocations: 94.52 kB / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.5327, allocations: 0.6997 MB / 1.017 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of SimCode: time 2.3e-07/0.5327, allocations: 4 kB / 1.017 GB, free: 2.648 MB / 0.6355 GB Notification: Performance of Templates: time 0.002474/0.5352, allocations: 0.893 MB / 1.018 GB, free: 1.77 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches