Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.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.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") [: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.181/1.181, allocations: 249.4 MB / 256.7 MB, free: 6.996 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.0009039/0.0009039, allocations: 177.3 kB / 316 MB, free: 3.516 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.07/1.07, allocations: 205.2 MB / 0.5667 GB, free: 15.58 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.0008139/0.0008139, allocations: 89.59 kB / 0.671 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.294e-06/7.314e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.148, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4539/0.6019, allocations: 131.2 MB / 1.013 GB, free: 7.398 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.6021, allocations: 74.88 kB / 1.013 GB, free: 7.355 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.0008871/0.603, allocations: 208.8 kB / 1.013 GB, free: 7.191 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.261e-06/0.603, allocations: 4 kB / 1.013 GB, free: 7.188 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001978/0.6032, allocations: 311.5 kB / 1.013 GB, free: 6.848 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.6033, allocations: 12.03 kB / 1.013 GB, free: 6.836 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.626e-05/0.6033, allocations: 3.906 kB / 1.013 GB, free: 6.832 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.288e-05/0.6034, allocations: 159.1 kB / 1.013 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.6034, allocations: 3.562 kB / 1.013 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.327e-06/0.6034, allocations: 2.781 kB / 1.013 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.21e-05/0.6035, allocations: 11.92 kB / 1.013 GB, free: 6.625 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.88e-05/0.6035, allocations: 29.7 kB / 1.014 GB, free: 6.59 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.6035, allocations: 0 / 1.014 GB, free: 6.59 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.6036, allocations: 0 / 1.014 GB, free: 6.59 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.6036, allocations: 4.656 kB / 1.014 GB, free: 6.586 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001093/0.6037, allocations: 129.6 kB / 1.014 GB, free: 6.426 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 3.927e-05/0.6037, allocations: 22.66 kB / 1.014 GB, free: 6.395 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.483e-05/0.6038, allocations: 11.73 kB / 1.014 GB, free: 6.383 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001237/0.6039, allocations: 81.11 kB / 1.014 GB, free: 6.285 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.6039, allocations: 34.5 kB / 1.014 GB, free: 6.242 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.6039, allocations: 0 / 1.014 GB, free: 6.242 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001279/0.604, allocations: 41.62 kB / 1.014 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.117e-05/0.6041, allocations: 61.88 kB / 1.014 GB, free: 6.125 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.386e-05/0.6041, allocations: 85 kB / 1.014 GB, free: 6.035 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.608e-06/0.6041, allocations: 25.7 kB / 1.014 GB, free: 6.004 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 1.906e-05/0.6042, allocations: 80.14 kB / 1.014 GB, free: 5.922 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/0.6042, allocations: 3.906 kB / 1.014 GB, free: 5.918 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.6042, allocations: 0 / 1.014 GB, free: 5.918 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.731e-05/0.6043, allocations: 318.1 kB / 1.014 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.394e-06/0.6043, allocations: 0 / 1.014 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.62e-06/0.6043, allocations: 4 kB / 1.014 GB, free: 5.598 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.892e-05/0.6043, allocations: 7.984 kB / 1.014 GB, free: 5.59 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.6043, allocations: 0 / 1.014 GB, free: 5.59 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.124e-05/0.6044, allocations: 37.61 kB / 1.014 GB, free: 5.547 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.335e-06/0.6044, allocations: 4 kB / 1.014 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.6044, allocations: 0 / 1.014 GB, free: 5.543 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.6044, allocations: 3.938 kB / 1.014 GB, free: 5.539 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.745e-05/0.6045, allocations: 7.5 kB / 1.014 GB, free: 5.535 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.6045, allocations: 0 / 1.014 GB, free: 5.535 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.412e-05/0.6045, allocations: 4.078 kB / 1.014 GB, free: 5.531 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-06/0.6045, allocations: 8 kB / 1.014 GB, free: 5.523 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: 2 (fac,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.535e-05/0.6046, allocations: 101 kB / 1.015 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.584e-06/0.6046, allocations: 3.906 kB / 1.015 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.146e-05/0.6047, allocations: 48.78 kB / 1.015 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.6047, allocations: 0 / 1.015 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.6047, allocations: 0 / 1.015 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.6047, allocations: 0 / 1.015 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.999e-05/0.6048, allocations: 133.4 kB / 1.015 GB, free: 5.199 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.02e-07/0.6048, allocations: 4.031 kB / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.955e-05/0.6048, allocations: 0 / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.6048, allocations: 4 kB / 1.015 GB, free: 5.191 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.6048, allocations: 11.02 kB / 1.015 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.6048, allocations: 3.938 kB / 1.015 GB, free: 5.18 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.6048, allocations: 0 / 1.015 GB, free: 5.18 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.022e-05/0.6049, allocations: 56.7 kB / 1.015 GB, free: 5.109 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.312e-05/0.6049, allocations: 81.09 kB / 1.015 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.027e-05/0.605, allocations: 7.938 kB / 1.015 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.017e-05/0.605, allocations: 4 kB / 1.015 GB, free: 5 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.756e-05/0.605, allocations: 0 / 1.015 GB, free: 5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/0.605, allocations: 0 / 1.015 GB, free: 5 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.056e-05/0.605, allocations: 75.28 kB / 1.015 GB, free: 4.926 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001673/0.6052, allocations: 8 kB / 1.015 GB, free: 4.918 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: 2 (fac,n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001317/0.6053, allocations: 107.2 kB / 1.015 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 5.361e-05/0.6054, allocations: 19.5 kB / 1.015 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 9.72e-07/0.6054, allocations: 3.938 kB / 1.015 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.1e-05/0.6054, allocations: 4 kB / 1.015 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.792e-05/0.6055, allocations: 0 / 1.015 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001296/0.6056, allocations: 47.92 kB / 1.015 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.6058, allocations: 0.6831 MB / 1.016 GB, free: 4 MB / 0.6355 GB Notification: Performance of SimCode: time 2.3e-07/0.6058, allocations: 0 / 1.016 GB, free: 4 MB / 0.6355 GB Notification: Performance of Templates: time 0.001701/0.6075, allocations: 349.6 kB / 1.016 GB, free: 3.664 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches