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.002053/0.002053, allocations: 102.5 kB / 16.27 MB, free: 5.969 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.002304/0.002304, allocations: 191.8 kB / 17.2 MB, free: 5.594 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.479/1.479, allocations: 222.9 MB / 240.9 MB, free: 15.21 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.759/2.759, allocations: 469.8 MB / 0.743 GB, free: 3.438 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 65.34 kB / 0.9092 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3372, allocations: 159.1 MB / 1.065 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001989/0.3393, allocations: 0.5751 MB / 1.065 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002699/0.3396, allocations: 51.8 kB / 1.065 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.781e-05/0.3396, allocations: 3.938 kB / 1.065 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.096e-05/0.3396, allocations: 0 / 1.065 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.961e-06/0.3396, allocations: 0 / 1.065 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.3399, allocations: 23.92 kB / 1.065 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.36e-05/0.3399, allocations: 4 kB / 1.065 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.652e-05/0.34, allocations: 0 / 1.065 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.005e-05/0.34, allocations: 7.984 kB / 1.065 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 2.231e-05/0.34, allocations: 0 / 1.065 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.3401, allocations: 0 / 1.065 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.62e-05/0.3401, allocations: 11.98 kB / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.86e-05/0.3402, allocations: 0 / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.967e-05/0.3402, allocations: 0 / 1.065 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 8.384e-05/0.3403, allocations: 11.94 kB / 1.065 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3403, allocations: 0 / 1.065 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3403, allocations: 8 kB / 1.065 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.3403, allocations: 3.938 kB / 1.065 GB, free: 14.1 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.0003626/0.3407, allocations: 315.6 kB / 1.066 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3407, allocations: 8.625 kB / 1.066 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.3408, allocations: 0.9375 kB / 1.066 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.3409, allocations: 160.4 kB / 1.066 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.3409, allocations: 4.375 kB / 1.066 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.3409, allocations: 384 / 1.066 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.341, allocations: 42.19 kB / 1.066 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.341, allocations: 4.188 kB / 1.066 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.3411, allocations: 3.938 kB / 1.066 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3411, allocations: 0 / 1.066 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.296e-05/0.3411, allocations: 4 kB / 1.066 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001817/0.3413, allocations: 153.7 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.853e-05/0.3414, allocations: 18.61 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.322e-05/0.3414, allocations: 8.922 kB / 1.066 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001842/0.3416, allocations: 89.09 kB / 1.066 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.3416, allocations: 38.5 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.3416, allocations: 0 / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0001534/0.3418, allocations: 37.64 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.3418, allocations: 51.41 kB / 1.066 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.663e-05/0.3419, allocations: 101.8 kB / 1.066 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.3419, allocations: 25.7 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.505e-05/0.3419, allocations: 80.27 kB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.342, allocations: 7.906 kB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.342, allocations: 13.72 kB / 1.066 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3422, allocations: 314.8 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.298e-05/0.3422, allocations: 4 kB / 1.067 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.207e-06/0.3422, allocations: 4 kB / 1.067 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.933e-05/0.3422, allocations: 20.78 kB / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.3422, allocations: 0 / 1.067 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.803e-05/0.3423, allocations: 41.77 kB / 1.067 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.3423, allocations: 4 kB / 1.067 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3423, allocations: 4 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.3424, allocations: 3.938 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.67e-05/0.3424, allocations: 0 / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.3424, allocations: 11.97 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.308e-05/0.3425, allocations: 0 / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.087e-06/0.3425, allocations: 0 / 1.067 GB, free: 12.31 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 7.986e-05/0.3426, allocations: 105.8 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.736e-06/0.3426, allocations: 8.016 kB / 1.067 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.3427, allocations: 52.97 kB / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3427, allocations: 0 / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3427, allocations: 7.938 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.3427, allocations: 0 / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.3428, allocations: 149.6 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3428, allocations: 0 / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.689e-05/0.3429, allocations: 7.984 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3429, allocations: 0 / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.3429, allocations: 3.938 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3429, allocations: 4.031 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3429, allocations: 0 / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.782e-05/0.343, allocations: 69.06 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.332e-05/0.3431, allocations: 77.11 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.3431, allocations: 3.938 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.087e-05/0.3431, allocations: 0 / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.375e-05/0.3431, allocations: 4 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.3431, allocations: 4.031 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.269e-05/0.3432, allocations: 75.28 kB / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.51e-07/0.3432, allocations: 0 / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001958/0.3434, allocations: 4 kB / 1.067 GB, free: 11.64 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.0001716/0.3436, allocations: 111.2 kB / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 8.653e-05/0.3437, allocations: 8 kB / 1.067 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3437, allocations: 0 / 1.067 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.526e-05/0.3437, allocations: 12 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.3438, allocations: 2.188 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002382/0.3441, allocations: 114.6 kB / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.3444, allocations: 0.6729 MB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.744e-05/0.3444, allocations: 7.438 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.3444, allocations: 0 / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of Templates: time 0.002064/0.3465, allocations: 459.7 kB / 1.069 GB, free: 10.2 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