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/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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008196/0.008195, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001541/0.001542, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.584/2.584, allocations: 472.6 MB / 0.7453 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.00138, allocations: 71.91 kB / 1.07 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8864/0.8878, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001676/0.8895, allocations: 0.5874 MB / 1.226 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0002658/0.8898, allocations: 53.75 kB / 1.226 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.573e-05/0.8899, allocations: 0 / 1.226 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.489e-05/0.8899, allocations: 0 / 1.226 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.8899, allocations: 3.938 kB / 1.226 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.8901, allocations: 15.88 kB / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 4.386e-05/0.8902, allocations: 4 kB / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.223e-05/0.8902, allocations: 0 / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 1.712e-05/0.8903, allocations: 4 kB / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 2.601e-05/0.8903, allocations: 11.97 kB / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 9.337e-06/0.8903, allocations: 0 / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.342e-05/0.8904, allocations: 8 kB / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.756e-06/0.8904, allocations: 0 / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 1.68e-05/0.8904, allocations: 0 / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 9.862e-05/0.8905, allocations: 11.92 kB / 1.226 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.8905, allocations: 0 / 1.226 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.363e-06/0.8906, allocations: 4 kB / 1.226 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.8906, allocations: 0 / 1.226 GB, free: 12.84 MB / 0.9512 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.000323/0.8909, allocations: 323.5 kB / 1.227 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.8909, allocations: 8.031 kB / 1.227 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.113e-05/0.891, allocations: 0.9375 kB / 1.227 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.859e-05/0.8911, allocations: 160.4 kB / 1.227 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.8911, allocations: 384 / 1.227 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.8911, allocations: 8.312 kB / 1.227 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.808e-05/0.8912, allocations: 30.27 kB / 1.227 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.8912, allocations: 192 / 1.227 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.8912, allocations: 7.922 kB / 1.227 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.8912, allocations: 4 kB / 1.227 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.213e-05/0.8913, allocations: 4 kB / 1.227 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.8914, allocations: 150.7 kB / 1.227 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 4.744e-05/0.8915, allocations: 26.59 kB / 1.227 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.976e-05/0.8915, allocations: 16.86 kB / 1.227 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001647/0.8917, allocations: 81.11 kB / 1.227 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.8917, allocations: 38.55 kB / 1.227 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.8917, allocations: 0 / 1.227 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001413/0.8919, allocations: 45.62 kB / 1.227 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.8919, allocations: 51.41 kB / 1.227 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.032e-05/0.892, allocations: 89.86 kB / 1.227 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.892, allocations: 25.7 kB / 1.227 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.436e-05/0.892, allocations: 84.27 kB / 1.227 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.892, allocations: 8 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.471e-05/0.8921, allocations: 9.719 kB / 1.227 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.23e-05/0.8922, allocations: 318.8 kB / 1.228 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.495e-05/0.8922, allocations: 3.938 kB / 1.228 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.426e-06/0.8922, allocations: 7.938 kB / 1.228 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.31e-05/0.8922, allocations: 12.86 kB / 1.228 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.8922, allocations: 0 / 1.228 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.87e-05/0.8923, allocations: 53.64 kB / 1.228 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.8923, allocations: 6.031 kB / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.8923, allocations: 0 / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.8923, allocations: 3.938 kB / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.389e-05/0.8924, allocations: 4 kB / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.8924, allocations: 0 / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.426e-05/0.8924, allocations: 0 / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-06/0.8924, allocations: 7.938 kB / 1.228 GB, free: 11.04 MB / 0.9512 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 6.603e-05/0.8925, allocations: 113.4 kB / 1.228 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-06/0.8925, allocations: 0 / 1.228 GB, free: 10.92 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.441e-05/0.8926, allocations: 48.75 kB / 1.228 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.8926, allocations: 0 / 1.228 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.8926, allocations: 0 / 1.228 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.8926, allocations: 0 / 1.228 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.392e-05/0.8927, allocations: 149.7 kB / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.8928, allocations: 0 / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.124e-05/0.8928, allocations: 4 kB / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.8928, allocations: 0 / 1.228 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.8928, allocations: 7.969 kB / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.8928, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.8928, allocations: 0 / 1.228 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001137/0.893, allocations: 69.06 kB / 1.228 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.838e-05/0.893, allocations: 81.11 kB / 1.228 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.893, allocations: 3.938 kB / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.55e-05/0.8931, allocations: 0 / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.724e-05/0.8931, allocations: 7.984 kB / 1.228 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-06/0.8931, allocations: 8.031 kB / 1.228 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.756e-05/0.8932, allocations: 75.28 kB / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2e-07/0.8932, allocations: 0 / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002245/0.8934, allocations: 4 kB / 1.228 GB, free: 10.38 MB / 0.9512 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.0001772/0.8936, allocations: 109.4 kB / 1.229 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 8.577e-05/0.8937, allocations: 19.92 kB / 1.229 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.8937, allocations: 0 / 1.229 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.661e-05/0.8937, allocations: 8.062 kB / 1.229 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.8939, allocations: 0 / 1.229 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001898/0.8941, allocations: 84.97 kB / 1.229 GB, free: 10.12 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.8943, allocations: 0.6768 MB / 1.229 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.386e-05/0.8943, allocations: 0 / 1.229 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.442e-05/0.8943, allocations: 7.438 kB / 1.229 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of SimCode: time 2.4e-07/0.8943, allocations: 0 / 1.229 GB, free: 9.414 MB / 0.9512 GB Notification: Performance of Templates: time 0.002123/0.8965, allocations: 333.7 kB / 1.23 GB, free: 9.09 MB / 0.9512 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches