Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.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.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.354/2.354, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001291/0.001292, allocations: 191.9 kB / 0.4902 GB, free: 2.246 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.649/1.649, allocations: 223.2 MB / 0.7992 GB, free: 14.71 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.0009828/0.0009829, allocations: 92.31 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000384/0.0003841, allocations: 10.38 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.348, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.5502, allocations: 149.3 MB / 1.375 GB, free: 4.25 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003283/0.5506, allocations: 75.94 kB / 1.375 GB, free: 4.176 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.001567/0.5522, allocations: 0.524 MB / 1.376 GB, free: 3.648 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.394e-06/0.5522, allocations: 0 / 1.376 GB, free: 3.648 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.5522, allocations: 0 / 1.376 GB, free: 3.648 MB / 0.8698 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.0003517/0.5526, allocations: 315.4 kB / 1.376 GB, free: 3.293 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.103e-05/0.5527, allocations: 8.031 kB / 1.376 GB, free: 3.285 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.5527, allocations: 0 / 1.376 GB, free: 3.285 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.5528, allocations: 163.9 kB / 1.376 GB, free: 3.086 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.5529, allocations: 8 kB / 1.376 GB, free: 3.078 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.5529, allocations: 4 kB / 1.376 GB, free: 3.074 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001305/0.553, allocations: 33.69 kB / 1.376 GB, free: 3.035 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.553, allocations: 3.938 kB / 1.376 GB, free: 3.031 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.553, allocations: 0 / 1.376 GB, free: 3.031 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.5531, allocations: 0 / 1.376 GB, free: 3.031 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.291e-05/0.5531, allocations: 7.938 kB / 1.376 GB, free: 3.023 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000159/0.5533, allocations: 153.6 kB / 1.376 GB, free: 2.824 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.6e-05/0.5533, allocations: 22.59 kB / 1.376 GB, free: 2.793 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001529/0.5535, allocations: 85.17 kB / 1.376 GB, free: 2.691 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.5535, allocations: 34.56 kB / 1.376 GB, free: 2.648 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.603e-06/0.5535, allocations: 0 / 1.376 GB, free: 2.648 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.000174/0.5537, allocations: 45.62 kB / 1.376 GB, free: 2.598 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.5538, allocations: 51.41 kB / 1.377 GB, free: 2.535 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.755e-05/0.5538, allocations: 89 kB / 1.377 GB, free: 2.441 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.5539, allocations: 25.7 kB / 1.377 GB, free: 2.41 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.51e-05/0.5539, allocations: 84.27 kB / 1.377 GB, free: 2.324 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.5539, allocations: 3.906 kB / 1.377 GB, free: 2.32 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-06/0.5539, allocations: 0 / 1.377 GB, free: 2.32 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.5541, allocations: 314.8 kB / 1.377 GB, free: 2.004 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.071e-05/0.5541, allocations: 0 / 1.377 GB, free: 2.004 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.267e-06/0.5541, allocations: 3.984 kB / 1.377 GB, free: 2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.388e-05/0.5541, allocations: 8 kB / 1.377 GB, free: 1.992 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.5541, allocations: 3.953 kB / 1.377 GB, free: 1.988 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.383e-05/0.5542, allocations: 41.7 kB / 1.377 GB, free: 1.941 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.5542, allocations: 5.719 kB / 1.377 GB, free: 1.938 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.5542, allocations: 0 / 1.377 GB, free: 1.938 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.5543, allocations: 4 kB / 1.377 GB, free: 1.934 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.114e-05/0.5543, allocations: 7.922 kB / 1.377 GB, free: 1.926 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.5543, allocations: 0 / 1.377 GB, free: 1.926 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.575e-05/0.5544, allocations: 4 kB / 1.377 GB, free: 1.922 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.5544, allocations: 3.938 kB / 1.377 GB, free: 1.918 MB / 0.8698 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 () * Number of clocked 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 8.125e-05/0.5545, allocations: 111.5 kB / 1.377 GB, free: 1.801 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.266e-05/0.5545, allocations: 11.97 kB / 1.377 GB, free: 1.789 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.667e-05/0.5546, allocations: 44.81 kB / 1.377 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.5546, allocations: 0 / 1.377 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.5546, allocations: 0 / 1.377 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.5546, allocations: 4 kB / 1.377 GB, free: 1.738 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001013/0.5547, allocations: 141.7 kB / 1.377 GB, free: 1.551 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.5547, allocations: 3.984 kB / 1.377 GB, free: 1.547 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.655e-05/0.5548, allocations: 7.953 kB / 1.377 GB, free: 1.539 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.5548, allocations: 3.938 kB / 1.377 GB, free: 1.535 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.5548, allocations: 0 / 1.377 GB, free: 1.535 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5548, allocations: 4.031 kB / 1.377 GB, free: 1.531 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.5548, allocations: 0 / 1.377 GB, free: 1.531 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.056e-05/0.5549, allocations: 65.12 kB / 1.377 GB, free: 1.449 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.585e-05/0.5549, allocations: 77.11 kB / 1.378 GB, free: 1.355 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.555, allocations: 3.953 kB / 1.378 GB, free: 1.352 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.063e-05/0.555, allocations: 0 / 1.378 GB, free: 1.352 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/0.555, allocations: 0 / 1.378 GB, free: 1.352 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.555, allocations: 8.031 kB / 1.378 GB, free: 1.344 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.32e-05/0.5551, allocations: 75.28 kB / 1.378 GB, free: 1.27 MB / 0.8698 GB Notification: Performance of sort global known variables: time 3.31e-07/0.5551, allocations: 0 / 1.378 GB, free: 1.27 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002158/0.5553, allocations: 11.98 kB / 1.378 GB, free: 1.258 MB / 0.8698 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 () * Number of clocked 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.0002247/0.5555, allocations: 115.2 kB / 1.378 GB, free: 1.137 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 7.66e-05/0.5556, allocations: 7.938 kB / 1.378 GB, free: 1.129 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5556, allocations: 0 / 1.378 GB, free: 1.129 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 3.474e-05/0.5556, allocations: 8.047 kB / 1.378 GB, free: 1.121 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000107/0.5558, allocations: 12.06 kB / 1.378 GB, free: 1.109 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002229/0.556, allocations: 74.98 kB / 1.378 GB, free: 1.008 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.5564, allocations: 0.677 MB / 1.379 GB, free: 312 kB / 0.8698 GB Notification: Performance of simCode: alias equations: time 2.12e-05/0.5564, allocations: 8 kB / 1.379 GB, free: 304 kB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.871e-05/0.5564, allocations: 7.438 kB / 1.379 GB, free: 296 kB / 0.8698 GB Notification: Performance of SimCode: time 6.11e-07/0.5564, allocations: 0 / 1.379 GB, free: 296 kB / 0.8698 GB Notification: Performance of Templates: time 0.002404/0.5588, allocations: 304.1 kB / 1.379 GB, free: 15.99 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches