Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_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_latest_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.009596/0.009596, allocations: 100.7 kB / 15.73 MB, free: 6.035 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.002192/0.002192, allocations: 191.7 kB / 16.67 MB, free: 5.973 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.847/2.847, allocations: 461.9 MB / 0.7348 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 68.11 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3424, allocations: 157.4 MB / 1.208 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001581/0.344, allocations: 0.5836 MB / 1.208 GB, free: 9.055 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002276/0.3443, allocations: 55.84 kB / 1.208 GB, free: 9 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.314e-05/0.3443, allocations: 3.938 kB / 1.208 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.141e-05/0.3443, allocations: 0 / 1.208 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.701e-06/0.3444, allocations: 0 / 1.208 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001916/0.3445, allocations: 15.92 kB / 1.208 GB, free: 8.98 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 3.508e-05/0.3446, allocations: 4 kB / 1.208 GB, free: 8.977 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.134e-05/0.3446, allocations: 0 / 1.208 GB, free: 8.977 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.181e-05/0.3447, allocations: 4 kB / 1.208 GB, free: 8.973 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 1.64e-05/0.3447, allocations: 4 kB / 1.208 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.733e-06/0.3447, allocations: 4 kB / 1.208 GB, free: 8.965 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.842e-05/0.3448, allocations: 7.984 kB / 1.208 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.131e-05/0.3448, allocations: 7.984 kB / 1.208 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.285e-05/0.3448, allocations: 0 / 1.208 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 6.637e-05/0.3449, allocations: 7.938 kB / 1.208 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.3449, allocations: 3.938 kB / 1.208 GB, free: 8.938 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.22e-07/0.3449, allocations: 0 / 1.208 GB, free: 8.938 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.3449, allocations: 0 / 1.208 GB, free: 8.938 MB / 0.9669 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.000242/0.3451, allocations: 321.8 kB / 1.209 GB, free: 8.574 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.3452, allocations: 12.62 kB / 1.209 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.182e-05/0.3452, allocations: 0.9375 kB / 1.209 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.151e-05/0.3453, allocations: 164.4 kB / 1.209 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.827e-06/0.3453, allocations: 4.375 kB / 1.209 GB, free: 8.359 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.3453, allocations: 384 / 1.209 GB, free: 8.359 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.135e-05/0.3454, allocations: 34.2 kB / 1.209 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.039e-06/0.3454, allocations: 192 / 1.209 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.3454, allocations: 3.938 kB / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.3454, allocations: 4 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.857e-05/0.3455, allocations: 8 kB / 1.209 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001188/0.3456, allocations: 149.7 kB / 1.209 GB, free: 8.109 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.176e-05/0.3456, allocations: 22.61 kB / 1.209 GB, free: 8.078 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.619e-05/0.3457, allocations: 8.922 kB / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001251/0.3458, allocations: 81.09 kB / 1.209 GB, free: 7.969 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.3458, allocations: 38.5 kB / 1.209 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.3458, allocations: 4 kB / 1.209 GB, free: 7.918 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001119/0.3459, allocations: 41.64 kB / 1.209 GB, free: 7.871 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/0.346, allocations: 55.39 kB / 1.209 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.744e-05/0.346, allocations: 89.86 kB / 1.209 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.346, allocations: 25.7 kB / 1.209 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.264e-05/0.3461, allocations: 80.14 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.3461, allocations: 7.906 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.751e-05/0.3461, allocations: 13.72 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.901e-05/0.3462, allocations: 318.9 kB / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.3462, allocations: 4 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.533e-06/0.3462, allocations: 0 / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.219e-05/0.3463, allocations: 24.78 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.3463, allocations: 0 / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.125e-05/0.3463, allocations: 33.7 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/0.3464, allocations: 4 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.3464, allocations: 0 / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3464, allocations: 8.031 kB / 1.21 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.917e-05/0.3464, allocations: 15.97 kB / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.955e-06/0.3464, allocations: 0 / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.191e-05/0.3465, allocations: 0 / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.3465, allocations: 4 kB / 1.21 GB, free: 7.145 MB / 0.9669 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 5.394e-05/0.3465, allocations: 105.8 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-06/0.3465, allocations: 0 / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.97e-05/0.3466, allocations: 56.62 kB / 1.21 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3466, allocations: 4.031 kB / 1.21 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.3466, allocations: 0 / 1.21 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-06/0.3466, allocations: 0 / 1.21 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.089e-05/0.3467, allocations: 153.6 kB / 1.21 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3467, allocations: 3.984 kB / 1.21 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-05/0.3468, allocations: 4 kB / 1.21 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.3468, allocations: 0 / 1.21 GB, free: 6.762 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-06/0.3468, allocations: 3.938 kB / 1.21 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3468, allocations: 0 / 1.21 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.3468, allocations: 4 kB / 1.21 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.831e-05/0.3469, allocations: 69.06 kB / 1.21 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 2.981e-05/0.3469, allocations: 85.11 kB / 1.21 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.024e-05/0.3469, allocations: 3.938 kB / 1.21 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.009e-05/0.3469, allocations: 0 / 1.21 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.269e-05/0.347, allocations: 0 / 1.21 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.347, allocations: 0 / 1.21 GB, free: 6.562 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 2.827e-05/0.347, allocations: 79.28 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.347, allocations: 0 / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002164/0.3472, allocations: 8.031 kB / 1.211 GB, free: 6.477 MB / 0.9669 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.0001428/0.3474, allocations: 108.2 kB / 1.211 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 6.502e-05/0.3475, allocations: 12 kB / 1.211 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3475, allocations: 0 / 1.211 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.678e-05/0.3475, allocations: 7.938 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001603/0.3477, allocations: 3.984 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000164/0.3478, allocations: 96.97 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.348, allocations: 0.669 MB / 1.211 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 1.112e-05/0.348, allocations: 4 kB / 1.211 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.36e-05/0.3481, allocations: 11.42 kB / 1.211 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of SimCode: time 2.5e-07/0.3481, allocations: 0 / 1.211 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of Templates: time 0.002/0.3501, allocations: 317 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches