Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001898/0.001898, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002132/0.002132, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.492/1.492, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.883/2.883, allocations: 469.8 MB / 0.742 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 78.23 kB / 0.908 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3032, allocations: 159.1 MB / 1.063 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001936/0.3052, allocations: 0.6472 MB / 1.064 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002443/0.3054, allocations: 47.84 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.672e-05/0.3054, allocations: 0 / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.412e-05/0.3055, allocations: 7.938 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.14e-06/0.3055, allocations: 0 / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.3057, allocations: 15.98 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.449e-05/0.3058, allocations: 0 / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.548e-05/0.3058, allocations: 4 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.307e-05/0.3058, allocations: 0 / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.079e-05/0.3059, allocations: 0 / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.157e-06/0.3059, allocations: 0 / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.866e-05/0.306, allocations: 15.98 kB / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.205e-05/0.306, allocations: 3.984 kB / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.754e-05/0.306, allocations: 0 / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.475e-05/0.3061, allocations: 11.94 kB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3061, allocations: 0 / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.234e-06/0.3061, allocations: 3.938 kB / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.3061, allocations: 0 / 1.064 GB, free: 13.83 MB / 0.8262 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.0003654/0.3065, allocations: 319.6 kB / 1.065 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3065, allocations: 12.03 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.805e-05/0.3066, allocations: 0.9375 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.3067, allocations: 164.4 kB / 1.065 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.3067, allocations: 384 / 1.065 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.3067, allocations: 384 / 1.065 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.736e-05/0.3068, allocations: 38.27 kB / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.3068, allocations: 192 / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.3069, allocations: 3.938 kB / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.3069, allocations: 0 / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.014e-05/0.3069, allocations: 4 kB / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001696/0.3071, allocations: 149.7 kB / 1.065 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.36e-05/0.3071, allocations: 26.55 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.093e-05/0.3072, allocations: 12.92 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001705/0.3073, allocations: 81.09 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/0.3074, allocations: 34.56 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 2.895e-06/0.3074, allocations: 3.984 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001512/0.3075, allocations: 49.52 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.3076, allocations: 55.39 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.748e-05/0.3077, allocations: 93.86 kB / 1.065 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.3077, allocations: 29.83 kB / 1.065 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.144e-05/0.3077, allocations: 84.14 kB / 1.065 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.3078, allocations: 3.906 kB / 1.065 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.3078, allocations: 13.72 kB / 1.065 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.308, allocations: 310.8 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.551e-05/0.308, allocations: 11.94 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.848e-05/0.308, allocations: 7.984 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.355e-05/0.3081, allocations: 12.92 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3081, allocations: 4 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.292e-05/0.3081, allocations: 41.64 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3082, allocations: 4 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.3082, allocations: 0 / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.3082, allocations: 3.938 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.138e-05/0.3082, allocations: 7.984 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.3083, allocations: 0 / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.252e-05/0.3083, allocations: 0 / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-06/0.3083, allocations: 0 / 1.066 GB, free: 12.04 MB / 0.8262 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 8.551e-05/0.3084, allocations: 113.9 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.133e-06/0.3084, allocations: 0 / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.3085, allocations: 49.03 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.3085, allocations: 0 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3085, allocations: 0 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.3085, allocations: 3.938 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.3086, allocations: 157.6 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.3087, allocations: 3.984 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2e-05/0.3087, allocations: 0 / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3087, allocations: 8.031 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.3087, allocations: 3.938 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.3087, allocations: 0 / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3087, allocations: 0 / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.761e-05/0.3088, allocations: 61.12 kB / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.3089, allocations: 77.11 kB / 1.066 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.3089, allocations: 7.938 kB / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.083e-05/0.3089, allocations: 0 / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.101e-05/0.309, allocations: 4.031 kB / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.309, allocations: 0 / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.84e-05/0.309, allocations: 77.12 kB / 1.066 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.309, allocations: 0 / 1.066 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000189/0.3092, allocations: 4 kB / 1.066 GB, free: 11.38 MB / 0.8262 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.0001864/0.3094, allocations: 119 kB / 1.066 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.506e-05/0.3095, allocations: 12 kB / 1.066 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3095, allocations: 4.062 kB / 1.066 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.516e-05/0.3095, allocations: 4 kB / 1.066 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.3097, allocations: 3.984 kB / 1.066 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000274/0.3099, allocations: 84.94 kB / 1.066 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.3103, allocations: 0.669 MB / 1.067 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.039e-05/0.3103, allocations: 11.98 kB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.666e-05/0.3103, allocations: 11.38 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3103, allocations: 0 / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of Templates: time 0.002723/0.3131, allocations: 321.5 kB / 1.067 GB, free: 10.09 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches