Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_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.001645/0.001645, allocations: 113.1 kB / 15.99 MB, free: 6.348 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.001819/0.001819, allocations: 192.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.419/1.419, allocations: 222.9 MB / 240.6 MB, free: 13.71 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.753/2.753, allocations: 469.8 MB / 0.7427 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 68.42 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3211, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002879/0.324, allocations: 1.582 MB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003274/0.3243, allocations: 119.6 kB / 1.066 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.267e-05/0.3244, allocations: 0 / 1.066 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.077e-05/0.3244, allocations: 0 / 1.066 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.449e-05/0.3245, allocations: 3.984 kB / 1.066 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002003/0.3247, allocations: 27.92 kB / 1.066 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.707e-05/0.3248, allocations: 23.98 kB / 1.066 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.3249, allocations: 15.92 kB / 1.066 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.928e-05/0.3249, allocations: 15.94 kB / 1.066 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.473e-05/0.325, allocations: 19.91 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.325, allocations: 4 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.292e-05/0.3251, allocations: 8 kB / 1.066 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.648e-05/0.3251, allocations: 7.984 kB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.503e-05/0.3251, allocations: 11.94 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 7.867e-05/0.3252, allocations: 19.95 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3252, allocations: 0 / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3252, allocations: 4 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.3252, allocations: 0 / 1.066 GB, free: 13.25 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005047/0.3257, allocations: 355.8 kB / 1.066 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.3258, allocations: 8.031 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.5e-05/0.3258, allocations: 4.844 kB / 1.066 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.3259, allocations: 164.4 kB / 1.066 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.326, allocations: 384 / 1.066 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.326, allocations: 384 / 1.066 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.3262, allocations: 62.22 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.3262, allocations: 192 / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.3263, allocations: 11.88 kB / 1.067 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.3263, allocations: 11.92 kB / 1.067 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.3265, allocations: 35.95 kB / 1.067 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004486/0.3269, allocations: 260.9 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.3273, allocations: 66.41 kB / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.3274, allocations: 24.91 kB / 1.067 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/0.3275, allocations: 89.03 kB / 1.067 GB, free: 12 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.3276, allocations: 34.56 kB / 1.067 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/0.3276, allocations: 0 / 1.067 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0004205/0.328, allocations: 93.62 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.3281, allocations: 51.41 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.034e-05/0.3281, allocations: 101.9 kB / 1.067 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.3282, allocations: 25.7 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.971e-05/0.3282, allocations: 84.12 kB / 1.067 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.3283, allocations: 11.84 kB / 1.067 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/0.3283, allocations: 13.72 kB / 1.067 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3284, allocations: 318.8 kB / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.244e-05/0.3285, allocations: 23.91 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.487e-05/0.3286, allocations: 19.98 kB / 1.068 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.3288, allocations: 44.81 kB / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.3288, allocations: 7.938 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002213/0.3291, allocations: 73.66 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.3291, allocations: 4 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3291, allocations: 0 / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.3291, allocations: 4 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.301e-05/0.3292, allocations: 11.98 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.3292, allocations: 3.984 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.016e-05/0.3293, allocations: 7.984 kB / 1.068 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.3293, allocations: 3.938 kB / 1.068 GB, free: 11.01 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 (rea2Int.y,fac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.143e-05/0.3294, allocations: 109.8 kB / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.675e-05/0.3294, allocations: 11.91 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.3297, allocations: 81.66 kB / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3297, allocations: 0 / 1.068 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.3297, allocations: 7.984 kB / 1.068 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3297, allocations: 7.938 kB / 1.068 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.3299, allocations: 157.6 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3299, allocations: 0 / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.976e-05/0.33, allocations: 16.03 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.33, allocations: 3.984 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.33, allocations: 3.984 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.33, allocations: 4 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/0.33, allocations: 3.938 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002825/0.3303, allocations: 167.5 kB / 1.068 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.285e-05/0.3304, allocations: 81.11 kB / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.3304, allocations: 4 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.764e-05/0.3305, allocations: 7.984 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/0.3306, allocations: 11.92 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-06/0.3306, allocations: 4 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.229e-05/0.3306, allocations: 79.28 kB / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3306, allocations: 0 / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002293/0.3309, allocations: 11.91 kB / 1.069 GB, free: 10.14 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.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 (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.0001574/0.331, allocations: 103.2 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002494/0.3313, allocations: 51.89 kB / 1.069 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.3313, allocations: 0 / 1.069 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.561e-05/0.3314, allocations: 19.98 kB / 1.069 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.3317, allocations: 10.05 kB / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003481/0.332, allocations: 151.2 kB / 1.069 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.3324, allocations: 0.6768 MB / 1.07 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.889e-05/0.3324, allocations: 11.44 kB / 1.07 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.3324, allocations: 0 / 1.07 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of Templates: time 0.002354/0.3348, allocations: 0.7425 MB / 1.07 GB, free: 8.32 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches