Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.294/2.294, allocations: 390.3 MB / 402.8 MB, free: 6.711 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.001103/0.001103, allocations: 176.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 221.3 MB / 0.7915 GB, free: 5.438 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.0008934/0.0008934, allocations: 99.95 kB / 0.9318 GB, free: 5.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.442e-05/3.452e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3308, allocations: 143 MB / 1.219 GB, free: 13.52 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9239/1.255, allocations: 150.3 MB / 1.365 GB, free: 3.758 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/1.255, allocations: 74.75 kB / 1.366 GB, free: 3.715 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00264/1.258, allocations: 0.9422 MB / 1.366 GB, free: 2.871 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.873e-06/1.258, allocations: 0 / 1.366 GB, free: 2.871 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.605e-06/1.258, allocations: 0 / 1.366 GB, free: 2.871 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003656/1.258, allocations: 348 kB / 1.367 GB, free: 2.492 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/1.258, allocations: 8.031 kB / 1.367 GB, free: 2.484 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/1.258, allocations: 8.562 kB / 1.367 GB, free: 2.477 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/1.258, allocations: 166.9 kB / 1.367 GB, free: 2.273 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/1.258, allocations: 4 kB / 1.367 GB, free: 2.27 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/1.258, allocations: 0 / 1.367 GB, free: 2.27 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/1.259, allocations: 49.19 kB / 1.367 GB, free: 2.223 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/1.259, allocations: 0 / 1.367 GB, free: 2.223 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/1.259, allocations: 0 / 1.367 GB, free: 2.223 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/1.259, allocations: 4 kB / 1.367 GB, free: 2.219 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.492e-05/1.259, allocations: 19.3 kB / 1.367 GB, free: 2.203 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/1.259, allocations: 279.5 kB / 1.367 GB, free: 1.895 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002481/1.259, allocations: 54.23 kB / 1.367 GB, free: 1.84 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.467e-05/1.259, allocations: 12.67 kB / 1.367 GB, free: 1.828 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/1.26, allocations: 85.09 kB / 1.367 GB, free: 1.727 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/1.26, allocations: 30.56 kB / 1.368 GB, free: 1.688 MB / 0.823 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/1.26, allocations: 0 / 1.368 GB, free: 1.688 MB / 0.823 GB Notification: Performance of matching and sorting (n=3): time 0.000183/1.26, allocations: 52.28 kB / 1.368 GB, free: 1.637 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/1.26, allocations: 67.3 kB / 1.368 GB, free: 1.559 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.7e-05/1.26, allocations: 100.6 kB / 1.368 GB, free: 1.457 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/1.26, allocations: 25.7 kB / 1.368 GB, free: 1.426 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.376e-05/1.26, allocations: 84.05 kB / 1.368 GB, free: 1.34 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/1.26, allocations: 7.906 kB / 1.368 GB, free: 1.332 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.079e-06/1.26, allocations: 3.688 kB / 1.368 GB, free: 1.332 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001119/1.26, allocations: 310.8 kB / 1.368 GB, free: 1.02 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.374e-05/1.26, allocations: 7.5 kB / 1.368 GB, free: 1.016 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.914e-05/1.26, allocations: 7.984 kB / 1.368 GB, free: 1.008 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.54e-05/1.26, allocations: 11.81 kB / 1.368 GB, free: 1 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/1.26, allocations: 0 / 1.368 GB, free: 1 MB / 0.823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.663e-05/1.26, allocations: 56.62 kB / 1.368 GB, free: 0.9453 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/1.26, allocations: 4 kB / 1.368 GB, free: 0.9414 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/1.26, allocations: 1.812 kB / 1.368 GB, free: 0.9414 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/1.26, allocations: 0 / 1.368 GB, free: 0.9414 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.37e-05/1.261, allocations: 15.98 kB / 1.368 GB, free: 0.9258 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/1.261, allocations: 0 / 1.368 GB, free: 0.9258 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.8e-05/1.261, allocations: 23.88 kB / 1.368 GB, free: 0.9023 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/1.261, allocations: 0 / 1.368 GB, free: 0.9023 MB / 0.823 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.y,fac.u) * 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 7.838e-05/1.261, allocations: 101 kB / 1.368 GB, free: 0.7969 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.406e-05/1.261, allocations: 4 kB / 1.368 GB, free: 0.793 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001489/1.261, allocations: 63.73 kB / 1.368 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/1.261, allocations: 0 / 1.368 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/1.261, allocations: 0 / 1.368 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/1.261, allocations: 0 / 1.368 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001773/1.261, allocations: 169 kB / 1.369 GB, free: 0.5234 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/1.261, allocations: 0 / 1.369 GB, free: 0.5234 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.885e-05/1.261, allocations: 8.875 kB / 1.369 GB, free: 0.5156 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/1.261, allocations: 7.984 kB / 1.369 GB, free: 0.5078 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/1.261, allocations: 0 / 1.369 GB, free: 0.5078 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/1.261, allocations: 0 / 1.369 GB, free: 0.5078 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/1.261, allocations: 0 / 1.369 GB, free: 0.5078 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001534/1.261, allocations: 158 kB / 1.369 GB, free: 356 kB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.461e-05/1.261, allocations: 77.11 kB / 1.369 GB, free: 260 kB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/1.261, allocations: 4 kB / 1.369 GB, free: 256 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.318e-05/1.262, allocations: 11.98 kB / 1.369 GB, free: 244 kB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/1.262, allocations: 11.3 kB / 1.369 GB, free: 236 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.002e-06/1.262, allocations: 4 kB / 1.369 GB, free: 232 kB / 0.823 GB Notification: Performance of sorting global known variables: time 5.242e-05/1.262, allocations: 79.7 kB / 1.369 GB, free: 152 kB / 0.823 GB Notification: Performance of sort global known variables: time 1.31e-07/1.262, allocations: 0 / 1.369 GB, free: 152 kB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002178/1.262, allocations: 11.94 kB / 1.369 GB, free: 140 kB / 0.823 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.y,fac.u) * 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.0001839/1.262, allocations: 114.7 kB / 1.369 GB, free: 20 kB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000113/1.262, allocations: 27.94 kB / 1.369 GB, free: 15.99 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/1.262, allocations: 4 kB / 1.369 GB, free: 15.99 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.447e-05/1.262, allocations: 15 kB / 1.369 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/1.263, allocations: 8.578 kB / 1.369 GB, free: 15.97 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002357/1.263, allocations: 68.59 kB / 1.369 GB, free: 15.89 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/1.263, allocations: 0.6848 MB / 1.37 GB, free: 15.18 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.364e-05/1.263, allocations: 4 kB / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.493e-05/1.263, allocations: 7.438 kB / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of SimCode: time 3.51e-07/1.263, allocations: 0 / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of Templates: time 0.002659/1.266, allocations: 0.5927 MB / 1.37 GB, free: 14.59 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches