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.0018/0.0018, allocations: 105.6 kB / 15.98 MB, free: 6.336 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.001754/0.001754, allocations: 193.1 kB / 16.91 MB, free: 6.188 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.476/1.476, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.709/2.709, allocations: 469.8 MB / 0.7427 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 72.34 kB / 0.9087 GB, free: 14.2 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3283, allocations: 159.1 MB / 1.064 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001953/0.3303, allocations: 0.6542 MB / 1.065 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002711/0.3306, allocations: 47.8 kB / 1.065 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.377e-05/0.3306, allocations: 0 / 1.065 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.746e-05/0.3306, allocations: 4 kB / 1.065 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.3e-06/0.3307, allocations: 0 / 1.065 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.3309, allocations: 12 kB / 1.065 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.105e-05/0.331, allocations: 3.984 kB / 1.065 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.457e-05/0.331, allocations: 4 kB / 1.065 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.655e-05/0.331, allocations: 4 kB / 1.065 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.461e-05/0.3311, allocations: 3.984 kB / 1.065 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.706e-06/0.3311, allocations: 0 / 1.065 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.439e-05/0.3312, allocations: 4 kB / 1.065 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.307e-06/0.3312, allocations: 0 / 1.065 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.16e-05/0.3312, allocations: 8 kB / 1.065 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 7.159e-05/0.3313, allocations: 11.86 kB / 1.065 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3313, allocations: 0 / 1.065 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.988e-06/0.3313, allocations: 8 kB / 1.065 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.878e-06/0.3313, allocations: 0 / 1.065 GB, free: 14.31 MB / 0.8419 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.0003783/0.3317, allocations: 311.6 kB / 1.065 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.3317, allocations: 8.031 kB / 1.065 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.432e-05/0.3318, allocations: 0.9375 kB / 1.065 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.3319, allocations: 160.4 kB / 1.065 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.3319, allocations: 8.375 kB / 1.065 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.332, allocations: 384 / 1.065 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.3321, allocations: 34.25 kB / 1.065 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3321, allocations: 4.188 kB / 1.065 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.3321, allocations: 3.938 kB / 1.065 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.3321, allocations: 0 / 1.065 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.824e-05/0.3322, allocations: 7.938 kB / 1.065 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001886/0.3323, allocations: 149.6 kB / 1.066 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 6.289e-05/0.3324, allocations: 26.59 kB / 1.066 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.875e-05/0.3325, allocations: 12.92 kB / 1.066 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001971/0.3327, allocations: 85.11 kB / 1.066 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.3327, allocations: 30.56 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3327, allocations: 0 / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0001685/0.3329, allocations: 49.56 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.3329, allocations: 51.41 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.299e-05/0.333, allocations: 89.86 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.333, allocations: 29.7 kB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.884e-05/0.3331, allocations: 80.27 kB / 1.066 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.3331, allocations: 7.906 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.3332, allocations: 17.7 kB / 1.066 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3333, allocations: 314.8 kB / 1.066 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.318e-05/0.3334, allocations: 0 / 1.066 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.072e-05/0.3334, allocations: 4 kB / 1.066 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.181e-05/0.3334, allocations: 12.86 kB / 1.066 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.3334, allocations: 0 / 1.066 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.478e-05/0.3335, allocations: 49.62 kB / 1.066 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.3335, allocations: 4 kB / 1.066 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3336, allocations: 0 / 1.066 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.3336, allocations: 11.92 kB / 1.066 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.487e-05/0.3337, allocations: 0 / 1.066 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3337, allocations: 0 / 1.066 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.452e-05/0.3337, allocations: 4 kB / 1.066 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.3337, allocations: 3.984 kB / 1.066 GB, free: 12.52 MB / 0.8419 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.000139/0.3339, allocations: 109.8 kB / 1.066 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.778e-06/0.3339, allocations: 8.016 kB / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.334, allocations: 41.05 kB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.334, allocations: 3.938 kB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.334, allocations: 0 / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.3341, allocations: 4 kB / 1.067 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001931/0.3343, allocations: 161.6 kB / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3343, allocations: 0 / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.38e-05/0.3343, allocations: 4 kB / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3343, allocations: 0 / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.3343, allocations: 3.938 kB / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3343, allocations: 4.031 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3343, allocations: 3.984 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001123/0.3345, allocations: 61.14 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.985e-05/0.3345, allocations: 77.11 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.3346, allocations: 11.86 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.092e-05/0.3346, allocations: 0 / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.3346, allocations: 4 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.3346, allocations: 4.031 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.013e-05/0.3347, allocations: 75.28 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3347, allocations: 3.938 kB / 1.067 GB, free: 11.85 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002266/0.335, allocations: 8 kB / 1.067 GB, free: 11.84 MB / 0.8419 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.0002865/0.3353, allocations: 103.2 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001295/0.3354, allocations: 11.98 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.3354, allocations: 0 / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.15e-05/0.3354, allocations: 12 kB / 1.067 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/0.3356, allocations: 4 kB / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002621/0.3358, allocations: 110.6 kB / 1.067 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.3362, allocations: 0.6729 MB / 1.068 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.997e-05/0.3362, allocations: 11.38 kB / 1.068 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.3362, allocations: 0 / 1.068 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of Templates: time 0.002399/0.3387, allocations: 459.8 kB / 1.068 GB, free: 10.4 MB / 0.8419 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/jenkins1/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