Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2/2, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001076/0.001076, allocations: 181.2 kB / 487 MB, free: 5.379 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.319/1.319, allocations: 221.3 MB / 0.7819 GB, free: 1.398 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.0009258/0.0009258, allocations: 93.5 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.606e-06/8.626e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2393, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6877/0.9271, allocations: 147.7 MB / 1.35 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.9274, allocations: 71.73 kB / 1.35 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.001012/0.9284, allocations: 211.7 kB / 1.35 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.9284, allocations: 0.5938 kB / 1.35 GB, free: 15.79 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000188/0.9286, allocations: 312.4 kB / 1.35 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.9287, allocations: 9.438 kB / 1.35 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.9287, allocations: 1.344 kB / 1.35 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.04e-05/0.9288, allocations: 167.1 kB / 1.35 GB, free: 15.25 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.9288, allocations: 4.656 kB / 1.35 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.745e-06/0.9288, allocations: 5.172 kB / 1.35 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.941e-05/0.9289, allocations: 8.469 kB / 1.35 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.501e-05/0.929, allocations: 34.84 kB / 1.35 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.929, allocations: 0 / 1.35 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.255e-06/0.929, allocations: 0 / 1.35 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.929, allocations: 0.5625 kB / 1.35 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.704e-05/0.9291, allocations: 128.2 kB / 1.35 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.231e-05/0.9292, allocations: 30.72 kB / 1.35 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.729e-05/0.9292, allocations: 7.109 kB / 1.35 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001285/0.9293, allocations: 91.61 kB / 1.351 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.404e-05/0.9293, allocations: 32.41 kB / 1.351 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.9293, allocations: 3.938 kB / 1.351 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0001456/0.9295, allocations: 36.55 kB / 1.351 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.332e-05/0.9295, allocations: 54 kB / 1.351 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.881e-05/0.9296, allocations: 85 kB / 1.351 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 6.732e-06/0.9296, allocations: 25.7 kB / 1.351 GB, free: 14.65 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.083e-05/0.9296, allocations: 80.14 kB / 1.351 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.9296, allocations: 8.938 kB / 1.351 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.154e-06/0.9296, allocations: 1.219 kB / 1.351 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.753e-05/0.9297, allocations: 316 kB / 1.351 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.047e-06/0.9297, allocations: 1.906 kB / 1.351 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.404e-06/0.9297, allocations: 5.344 kB / 1.351 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.12e-05/0.9297, allocations: 7.812 kB / 1.351 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.9297, allocations: 0 / 1.351 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.366e-05/0.9298, allocations: 35.48 kB / 1.351 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.9298, allocations: 9.25 kB / 1.351 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.9298, allocations: 0 / 1.351 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.9298, allocations: 1.125 kB / 1.351 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.371e-05/0.9299, allocations: 3.734 kB / 1.351 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.9299, allocations: 0.875 kB / 1.351 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.242e-05/0.9299, allocations: 0 / 1.351 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.9299, allocations: 1.156 kB / 1.351 GB, free: 14.21 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 (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 7.215e-05/0.93, allocations: 107.3 kB / 1.351 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.347e-06/0.93, allocations: 4.375 kB / 1.351 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.9302, allocations: 46.53 kB / 1.351 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.9302, allocations: 1.312 kB / 1.351 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.9302, allocations: 0.9688 kB / 1.351 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.9302, allocations: 0 / 1.351 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.945e-05/0.9302, allocations: 130.5 kB / 1.351 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.9302, allocations: 0 / 1.351 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.498e-05/0.9303, allocations: 5.812 kB / 1.351 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.9303, allocations: 1.406 kB / 1.351 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.9303, allocations: 4.031 kB / 1.352 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.9303, allocations: 0 / 1.352 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.9303, allocations: 4.938 kB / 1.352 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.877e-05/0.9304, allocations: 64.53 kB / 1.352 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.45e-05/0.9304, allocations: 78.28 kB / 1.352 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.9304, allocations: 5.219 kB / 1.352 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.061e-05/0.9304, allocations: 0 / 1.352 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.9305, allocations: 2.844 kB / 1.352 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.9305, allocations: 1.438 kB / 1.352 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.948e-05/0.9305, allocations: 83.25 kB / 1.352 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001879/0.9307, allocations: 5.75 kB / 1.352 GB, free: 13.65 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 (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.0001696/0.9309, allocations: 112.9 kB / 1.352 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 7.569e-05/0.9309, allocations: 6.984 kB / 1.352 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.931, allocations: 4.688 kB / 1.352 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 1.366e-05/0.931, allocations: 4.031 kB / 1.352 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.364e-05/0.9311, allocations: 3.906 kB / 1.352 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001369/0.9312, allocations: 52.42 kB / 1.352 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/0.9315, allocations: 0.6839 MB / 1.353 GB, free: 28.78 MB / 0.823 GB Notification: Performance of SimCode: time 2.4e-07/0.9315, allocations: 0 / 1.353 GB, free: 28.78 MB / 0.823 GB Notification: Performance of Templates: time 0.002013/0.9335, allocations: 341.7 kB / 1.353 GB, free: 28.73 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches