Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_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.001479/0.001479, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001871/0.001872, allocations: 192.6 kB / 16.14 MB, free: 6.711 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.559/1.559, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.888/2.888, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 66.44 kB / 0.8984 GB, free: 37.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3339, allocations: 157.4 MB / 1.052 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002908/0.3368, allocations: 1.57 MB / 1.054 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004443/0.3373, allocations: 127.7 kB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.462e-05/0.3373, allocations: 0 / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.363e-05/0.3374, allocations: 4 kB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.172e-05/0.3374, allocations: 11.92 kB / 1.054 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001786/0.3376, allocations: 16 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.326e-05/0.3377, allocations: 31.86 kB / 1.054 GB, free: 7.109 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.3378, allocations: 7.984 kB / 1.054 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.215e-05/0.3378, allocations: 8 kB / 1.054 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.904e-05/0.3379, allocations: 19.91 kB / 1.054 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.487e-05/0.3379, allocations: 4 kB / 1.054 GB, free: 7.07 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.057e-05/0.338, allocations: 7.984 kB / 1.054 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.418e-05/0.338, allocations: 8 kB / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.523e-05/0.338, allocations: 11.94 kB / 1.054 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001086/0.3381, allocations: 39.88 kB / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3382, allocations: 0 / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.42e-07/0.3382, allocations: 0 / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.476e-06/0.3382, allocations: 3.938 kB / 1.054 GB, free: 7 MB / 0.8106 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.0004894/0.3387, allocations: 343.7 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.3387, allocations: 12.03 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.3388, allocations: 8.844 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.3389, allocations: 168.4 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.339, allocations: 384 / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.339, allocations: 4.312 kB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.3392, allocations: 62.17 kB / 1.054 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.3392, allocations: 192 / 1.054 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.3392, allocations: 3.938 kB / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3392, allocations: 0 / 1.054 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002213/0.3395, allocations: 47.95 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003757/0.3398, allocations: 257 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.3402, allocations: 70.39 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.3403, allocations: 24.91 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001235/0.3404, allocations: 85.11 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.3405, allocations: 34.55 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3405, allocations: 0 / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003955/0.3409, allocations: 89.55 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.3409, allocations: 55.34 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.82e-05/0.341, allocations: 109.8 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.341, allocations: 25.7 kB / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.3411, allocations: 84.14 kB / 1.055 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.3411, allocations: 7.844 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/0.3412, allocations: 21.7 kB / 1.055 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.3413, allocations: 310.8 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.695e-05/0.3414, allocations: 19.98 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.553e-05/0.3415, allocations: 23.97 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.3416, allocations: 44.81 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3417, allocations: 3.938 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002306/0.3419, allocations: 73.66 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.3419, allocations: 7.938 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.3419, allocations: 0 / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.3419, allocations: 0 / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.329e-05/0.342, allocations: 15.98 kB / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.8e-06/0.342, allocations: 0 / 1.056 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.96e-05/0.3421, allocations: 7.984 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.3421, allocations: 4 kB / 1.056 GB, free: 4.77 MB / 0.8106 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 8.163e-05/0.3422, allocations: 113.8 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.808e-05/0.3422, allocations: 7.906 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002649/0.3425, allocations: 85.08 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3425, allocations: 0 / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.3425, allocations: 3.938 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.3425, allocations: 0.5625 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/0.3427, allocations: 169.6 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3428, allocations: 7.938 kB / 1.056 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.723e-05/0.3428, allocations: 11.98 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.3428, allocations: 0 / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.3429, allocations: 4 kB / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.3429, allocations: 0 / 1.056 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3429, allocations: 4 kB / 1.056 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/0.3431, allocations: 175.4 kB / 1.056 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.137e-05/0.3432, allocations: 81.11 kB / 1.056 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.3432, allocations: 0 / 1.056 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.621e-05/0.3433, allocations: 7.984 kB / 1.056 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.3434, allocations: 4 kB / 1.056 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.146e-06/0.3434, allocations: 11.98 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.629e-05/0.3434, allocations: 75.28 kB / 1.057 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3434, allocations: 4 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002221/0.3436, allocations: 4 kB / 1.057 GB, free: 3.914 MB / 0.8106 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.000146/0.3438, allocations: 103.2 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002299/0.344, allocations: 43.95 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3441, allocations: 8 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.811e-05/0.3442, allocations: 23.97 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.3445, allocations: 7.938 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003473/0.3448, allocations: 123.1 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.3451, allocations: 0.6809 MB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.414e-05/0.3452, allocations: 7.984 kB / 1.058 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.724e-05/0.3452, allocations: 11.44 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of SimCode: time 3.41e-07/0.3452, allocations: 0 / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of Templates: time 0.002901/0.3481, allocations: 0.6159 MB / 1.058 GB, free: 2.23 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches