Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 115.1 kB / 16.42 MB, free: 6.516 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.001794/0.001794, allocations: 187.9 kB / 17.35 MB, free: 5.738 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.463/1.463, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.387/2.387, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 71.89 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8802/0.8817, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002338/0.8841, allocations: 1.508 MB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003202/0.8844, allocations: 128.3 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.541e-05/0.8845, allocations: 0 / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.627e-05/0.8845, allocations: 5.688 kB / 1.09 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.62e-05/0.8846, allocations: 4.547 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002278/0.8848, allocations: 22.89 kB / 1.09 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.288e-05/0.8849, allocations: 32.67 kB / 1.09 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.885, allocations: 17.86 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.365e-05/0.8851, allocations: 11.05 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.223e-05/0.8851, allocations: 16.84 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.8851, allocations: 2.438 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.206e-05/0.8852, allocations: 8.688 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.445e-05/0.8852, allocations: 6.328 kB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.615e-05/0.8853, allocations: 16.53 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.8854, allocations: 30.86 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.8854, allocations: 4.812 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.82e-07/0.8854, allocations: 0 / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.8854, allocations: 4 kB / 1.09 GB, free: 4.301 MB / 0.8575 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.0004361/0.8859, allocations: 340.7 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.8859, allocations: 12.59 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/0.886, allocations: 7.297 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.912e-05/0.8861, allocations: 167.6 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.8861, allocations: 1.344 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.536e-05/0.8861, allocations: 2.5 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001926/0.8863, allocations: 62.94 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.8863, allocations: 192 / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.8863, allocations: 8.938 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.954e-06/0.8864, allocations: 0.7031 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.8866, allocations: 41.8 kB / 1.091 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003315/0.8869, allocations: 264.8 kB / 1.091 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/0.8873, allocations: 64.25 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.8874, allocations: 27.19 kB / 1.091 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.8875, allocations: 80.52 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.8876, allocations: 32.31 kB / 1.091 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 2.284e-06/0.8876, allocations: 1.219 kB / 1.091 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004177/0.888, allocations: 103.2 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.191e-05/0.888, allocations: 53.23 kB / 1.092 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.134e-05/0.8881, allocations: 101.3 kB / 1.092 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.8881, allocations: 25.7 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.413e-05/0.8881, allocations: 82.06 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.8882, allocations: 12.44 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/0.8882, allocations: 14.53 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.419e-05/0.8883, allocations: 320.7 kB / 1.092 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.981e-05/0.8884, allocations: 15.89 kB / 1.092 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.043e-05/0.8885, allocations: 20.91 kB / 1.092 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.8887, allocations: 49.5 kB / 1.092 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.8887, allocations: 0 / 1.092 GB, free: 2.516 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000238/0.8889, allocations: 77.95 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.8889, allocations: 8.25 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.8889, allocations: 0.7031 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.889, allocations: 0.6875 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.463e-05/0.8891, allocations: 10.8 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.8891, allocations: 0.625 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.111e-05/0.8891, allocations: 10.48 kB / 1.092 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.8891, allocations: 1.656 kB / 1.092 GB, free: 2.469 MB / 0.8575 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.882e-05/0.8892, allocations: 121.2 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.8892, allocations: 4.688 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.8895, allocations: 86.7 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.8895, allocations: 4.688 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.8895, allocations: 1.031 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.594e-05/0.8895, allocations: 78.78 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.8896, allocations: 5.828 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.8897, allocations: 8.984 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.019e-05/0.8897, allocations: 9.75 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002646/0.89, allocations: 159.1 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002494/0.8902, allocations: 244.7 kB / 1.093 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001057/0.8904, allocations: 27.53 kB / 1.093 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.318e-05/0.8904, allocations: 80.03 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of Backend: time 2.9e-07/0.8904, allocations: 0 / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004617/0.8909, allocations: 106.2 kB / 1.093 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0003468/0.8912, allocations: 0.5682 MB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of Templates: time 0.003372/0.8946, allocations: 0.8159 MB / 1.095 GB, free: 1.004 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches