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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009284/0.0009284, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0009515/0.0009516, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.379/2.379, allocations: 390.9 MB / 0.666 GB, free: 2.516 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005205/0.0005205, allocations: 16 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6869/0.6875, allocations: 142.4 MB / 0.9544 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001334/0.6888, allocations: 1.212 MB / 0.9556 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002871/0.6891, allocations: 127.2 kB / 0.9557 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.785e-05/0.6892, allocations: 1.188 kB / 0.9557 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.6892, allocations: 4 kB / 0.9557 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.197e-05/0.6893, allocations: 5.047 kB / 0.9557 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001671/0.6894, allocations: 17.23 kB / 0.9558 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.692e-05/0.6895, allocations: 25.2 kB / 0.9558 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.7e-05/0.6896, allocations: 11.42 kB / 0.9558 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.615e-05/0.6896, allocations: 4.281 kB / 0.9558 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.589e-05/0.6897, allocations: 20.59 kB / 0.9558 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.6897, allocations: 1.031 kB / 0.9558 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.899e-05/0.6897, allocations: 4.875 kB / 0.9558 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.6898, allocations: 14.17 kB / 0.9558 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.585e-05/0.6898, allocations: 26.61 kB / 0.9559 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.876e-05/0.6899, allocations: 22.5 kB / 0.9559 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.6899, allocations: 0 / 0.9559 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6899, allocations: 0 / 0.9559 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.6899, allocations: 5.125 kB / 0.9559 GB, free: 6.5 MB / 0.7169 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.0003375/0.6902, allocations: 338.9 kB / 0.9562 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.6903, allocations: 13.44 kB / 0.9562 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.757e-05/0.6903, allocations: 5.391 kB / 0.9562 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.026e-05/0.6904, allocations: 173.5 kB / 0.9564 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.6904, allocations: 4 kB / 0.9564 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.6904, allocations: 2.688 kB / 0.9564 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.6906, allocations: 56.33 kB / 0.9565 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.6906, allocations: 0 / 0.9565 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.6906, allocations: 1.219 kB / 0.9565 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.6906, allocations: 4 kB / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.6908, allocations: 60.31 kB / 0.9565 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002818/0.6911, allocations: 274.7 kB / 0.9568 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003004/0.6914, allocations: 65.92 kB / 0.9568 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.353e-05/0.6915, allocations: 29.5 kB / 0.9569 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.438e-05/0.6916, allocations: 84.11 kB / 0.957 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.306e-05/0.6916, allocations: 36.23 kB / 0.957 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.6916, allocations: 0 / 0.957 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003473/0.692, allocations: 114.9 kB / 0.9571 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.971e-05/0.692, allocations: 52.53 kB / 0.9571 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.674e-05/0.6921, allocations: 102.6 kB / 0.9572 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.224e-06/0.6921, allocations: 26.89 kB / 0.9573 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.236e-05/0.6921, allocations: 81.27 kB / 0.9574 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.202e-05/0.6921, allocations: 4.812 kB / 0.9574 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.778e-06/0.6921, allocations: 4 kB / 0.9574 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.917e-05/0.6922, allocations: 320.2 kB / 0.9577 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.599e-05/0.6923, allocations: 27.86 kB / 0.9577 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.533e-05/0.6924, allocations: 23.91 kB / 0.9577 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.33e-05/0.6924, allocations: 27.33 kB / 0.9577 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.6925, allocations: 0 / 0.9577 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001953/0.6927, allocations: 88.78 kB / 0.9578 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.6927, allocations: 6.281 kB / 0.9578 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.6927, allocations: 0 / 0.9578 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.6927, allocations: 3.953 kB / 0.9578 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.812e-05/0.6928, allocations: 18.08 kB / 0.9579 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.6928, allocations: 0 / 0.9579 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.51e-05/0.6929, allocations: 10.73 kB / 0.9579 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.6929, allocations: 1.375 kB / 0.9579 GB, free: 4.555 MB / 0.7169 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,rea2Int.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.76e-05/0.6929, allocations: 112.4 kB / 0.958 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.43e-05/0.6929, allocations: 1.406 kB / 0.958 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.6932, allocations: 99.55 kB / 0.9581 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.6932, allocations: 0.7812 kB / 0.9581 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6932, allocations: 7.891 kB / 0.9581 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.6932, allocations: 1.062 kB / 0.9581 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.6933, allocations: 163.8 kB / 0.9582 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.6933, allocations: 7.938 kB / 0.9582 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.303e-05/0.6934, allocations: 13.7 kB / 0.9583 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.6934, allocations: 1.375 kB / 0.9583 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.6934, allocations: 0.5625 kB / 0.9583 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.6935, allocations: 1.188 kB / 0.9583 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.6935, allocations: 3.984 kB / 0.9583 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002163/0.6937, allocations: 188 kB / 0.9584 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.587e-05/0.6937, allocations: 86.3 kB / 0.9585 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.6937, allocations: 1.25 kB / 0.9585 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.408e-05/0.6938, allocations: 9.484 kB / 0.9585 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.251e-05/0.6939, allocations: 11.02 kB / 0.9585 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.6939, allocations: 5.562 kB / 0.9585 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.062e-05/0.6939, allocations: 86.23 kB / 0.9586 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6939, allocations: 0 / 0.9586 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002309/0.6941, allocations: 7.438 kB / 0.9586 GB, free: 3.777 MB / 0.7169 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,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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.0001103/0.6943, allocations: 110.6 kB / 0.9587 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002099/0.6945, allocations: 55.33 kB / 0.9588 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.6945, allocations: 0 / 0.9588 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.932e-05/0.6946, allocations: 27.67 kB / 0.9588 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.6948, allocations: 1.812 kB / 0.9588 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002246/0.6951, allocations: 128.5 kB / 0.9589 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.6952, allocations: 0.6742 MB / 0.9596 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.365e-05/0.6952, allocations: 10.55 kB / 0.9596 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.309e-05/0.6953, allocations: 9.938 kB / 0.9596 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6953, allocations: 0 / 0.9596 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of Templates: time 0.002579/0.6978, allocations: 0.5915 MB / 0.9602 GB, free: 2.504 MB / 0.7169 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches