Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_10_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_10_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 107.3 kB / 16.41 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 188.9 kB / 17.34 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.421/2.421, allocations: 437 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 67.91 kB / 1.019 GB, free: 9.379 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8844/0.8857, allocations: 151.6 MB / 1.167 GB, free: 3.82 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001681/0.8875, allocations: 0.5855 MB / 1.168 GB, free: 3.242 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0002769/0.8878, allocations: 47.8 kB / 1.168 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.689e-05/0.8878, allocations: 0 / 1.168 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.293e-05/0.8878, allocations: 0 / 1.168 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.582e-06/0.8878, allocations: 0 / 1.168 GB, free: 3.195 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.888, allocations: 15.98 kB / 1.168 GB, free: 3.18 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.355e-05/0.8881, allocations: 7.984 kB / 1.168 GB, free: 3.172 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.233e-05/0.8882, allocations: 3.938 kB / 1.168 GB, free: 3.168 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.714e-05/0.8882, allocations: 3.938 kB / 1.168 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.836e-05/0.8882, allocations: 15.98 kB / 1.168 GB, free: 3.148 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 9.397e-06/0.8882, allocations: 0 / 1.168 GB, free: 3.148 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.21e-05/0.8883, allocations: 4 kB / 1.168 GB, free: 3.145 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.729e-06/0.8883, allocations: 0 / 1.168 GB, free: 3.145 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.638e-05/0.8884, allocations: 4 kB / 1.168 GB, free: 3.141 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 9.438e-05/0.8885, allocations: 11.97 kB / 1.168 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.8885, allocations: 0 / 1.168 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.232e-06/0.8885, allocations: 0 / 1.168 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.8885, allocations: 0 / 1.168 GB, free: 3.129 MB / 0.8887 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.0003379/0.8888, allocations: 323.5 kB / 1.168 GB, free: 2.762 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.8889, allocations: 12.92 kB / 1.168 GB, free: 2.75 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.022e-05/0.8889, allocations: 4.922 kB / 1.168 GB, free: 2.746 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.825e-05/0.889, allocations: 160.4 kB / 1.168 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.729e-06/0.889, allocations: 384 / 1.168 GB, free: 2.551 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.889, allocations: 4.375 kB / 1.169 GB, free: 2.547 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.8891, allocations: 26.27 kB / 1.169 GB, free: 2.516 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.8892, allocations: 192 / 1.169 GB, free: 2.516 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.8892, allocations: 7.938 kB / 1.169 GB, free: 2.508 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.8892, allocations: 0 / 1.169 GB, free: 2.508 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.799e-05/0.8892, allocations: 11.92 kB / 1.169 GB, free: 2.496 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001401/0.8894, allocations: 149.7 kB / 1.169 GB, free: 2.301 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 5.569e-05/0.8894, allocations: 26.59 kB / 1.169 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.797e-05/0.8895, allocations: 8.922 kB / 1.169 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001589/0.8896, allocations: 81.11 kB / 1.169 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.8897, allocations: 30.56 kB / 1.169 GB, free: 2.117 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 2.535e-06/0.8897, allocations: 4 kB / 1.169 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001457/0.8898, allocations: 49.56 kB / 1.169 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.8899, allocations: 51.41 kB / 1.169 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.15e-05/0.8899, allocations: 89.86 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.372e-05/0.8899, allocations: 29.64 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.018e-05/0.89, allocations: 84.14 kB / 1.169 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.89, allocations: 3.906 kB / 1.169 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.72e-05/0.89, allocations: 13.72 kB / 1.169 GB, free: 1.754 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.8901, allocations: 323 kB / 1.169 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.016e-05/0.8901, allocations: 0 / 1.169 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.286e-06/0.8902, allocations: 4 kB / 1.169 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.56e-05/0.8902, allocations: 12.86 kB / 1.169 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.8902, allocations: 0 / 1.169 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.738e-05/0.8903, allocations: 41.62 kB / 1.17 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.8903, allocations: 4 kB / 1.17 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.8903, allocations: 0 / 1.17 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.8903, allocations: 4.031 kB / 1.17 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.023e-05/0.8904, allocations: 8 kB / 1.17 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.8904, allocations: 3.938 kB / 1.17 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.279e-05/0.8904, allocations: 0 / 1.17 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.8904, allocations: 8 kB / 1.17 GB, free: 1.336 MB / 0.8887 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.8905, allocations: 105.8 kB / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.392e-06/0.8905, allocations: 0 / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.605e-05/0.8906, allocations: 52.69 kB / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.8906, allocations: 0 / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.8906, allocations: 4.031 kB / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.8906, allocations: 0 / 1.17 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.977e-05/0.8907, allocations: 153.5 kB / 1.17 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.8908, allocations: 3.984 kB / 1.17 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.208e-05/0.8908, allocations: 8 kB / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.8908, allocations: 0 / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.8908, allocations: 3.938 kB / 1.17 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.8908, allocations: 0 / 1.17 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.8908, allocations: 0 / 1.17 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001229/0.8909, allocations: 69.12 kB / 1.17 GB, free: 0.8594 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 3.259e-05/0.891, allocations: 77.11 kB / 1.17 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.891, allocations: 3.938 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.234e-05/0.891, allocations: 7.938 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.21e-05/0.891, allocations: 3.984 kB / 1.17 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-06/0.891, allocations: 4 kB / 1.17 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.738e-05/0.8911, allocations: 77.75 kB / 1.17 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8911, allocations: 0 / 1.17 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0001772/0.8913, allocations: 8.031 kB / 1.17 GB, free: 0.6641 MB / 0.8887 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002095/0.8915, allocations: 99.25 kB / 1.17 GB, free: 0.5547 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 7.397e-05/0.8916, allocations: 11.98 kB / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.8916, allocations: 0 / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 1.346e-05/0.8916, allocations: 11.94 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.8917, allocations: 2.234 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002576/0.892, allocations: 115.9 kB / 1.17 GB, free: 396 kB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.8922, allocations: 0.6807 MB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.693e-05/0.8923, allocations: 7.438 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of SimCode: time 2.6e-07/0.8923, allocations: 3.938 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of Templates: time 0.001791/0.8941, allocations: 447.6 kB / 1.171 GB, free: 15.23 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches