Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_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.0018/0.0018, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.002115/0.002115, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.529/1.529, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.647/2.647, allocations: 437 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 63.91 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.05/1.052, allocations: 151.6 MB / 1.167 GB, free: 4.035 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003036/1.055, allocations: 1.514 MB / 1.169 GB, free: 2.512 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004096/1.056, allocations: 128.5 kB / 1.169 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.775e-05/1.056, allocations: 0 / 1.169 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.306e-05/1.056, allocations: 7.875 kB / 1.169 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.505e-05/1.056, allocations: 7.938 kB / 1.169 GB, free: 2.367 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002638/1.056, allocations: 23.91 kB / 1.169 GB, free: 2.344 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.405e-05/1.056, allocations: 27.92 kB / 1.169 GB, free: 2.316 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/1.056, allocations: 11.98 kB / 1.169 GB, free: 2.305 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.87e-05/1.056, allocations: 8 kB / 1.169 GB, free: 2.297 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.682e-05/1.056, allocations: 23.91 kB / 1.169 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/1.056, allocations: 0 / 1.169 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.162e-05/1.056, allocations: 15.98 kB / 1.169 GB, free: 2.258 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.04e-05/1.057, allocations: 7.938 kB / 1.169 GB, free: 2.25 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.367e-05/1.057, allocations: 15.92 kB / 1.169 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001395/1.057, allocations: 35.89 kB / 1.169 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/1.057, allocations: 0 / 1.169 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.693e-06/1.057, allocations: 0 / 1.169 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.4e-06/1.057, allocations: 0 / 1.169 GB, free: 2.199 MB / 0.8887 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.0005115/1.057, allocations: 344.4 kB / 1.169 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/1.057, allocations: 12.92 kB / 1.169 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.289e-05/1.057, allocations: 8.875 kB / 1.169 GB, free: 1.793 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/1.057, allocations: 164.3 kB / 1.17 GB, free: 1.594 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/1.058, allocations: 4.375 kB / 1.17 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.372e-05/1.058, allocations: 4.375 kB / 1.17 GB, free: 1.586 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002101/1.058, allocations: 58.23 kB / 1.17 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/1.058, allocations: 192 / 1.17 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/1.058, allocations: 7.922 kB / 1.17 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/1.058, allocations: 0 / 1.17 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/1.058, allocations: 39.97 kB / 1.17 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000427/1.058, allocations: 268.9 kB / 1.17 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003588/1.059, allocations: 62.47 kB / 1.17 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.968e-05/1.059, allocations: 24.91 kB / 1.17 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001329/1.059, allocations: 85.09 kB / 1.17 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/1.059, allocations: 34.56 kB / 1.17 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.834e-06/1.059, allocations: 0 / 1.17 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0004063/1.06, allocations: 93.53 kB / 1.17 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/1.06, allocations: 55.41 kB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.242e-05/1.06, allocations: 97.84 kB / 1.17 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/1.06, allocations: 29.7 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.43e-05/1.06, allocations: 84.14 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/1.06, allocations: 11.89 kB / 1.171 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/1.06, allocations: 21.7 kB / 1.171 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001115/1.06, allocations: 310.8 kB / 1.171 GB, free: 184 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.789e-05/1.06, allocations: 23.97 kB / 1.171 GB, free: 160 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.058e-05/1.06, allocations: 16.36 kB / 1.171 GB, free: 144 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/1.06, allocations: 52.89 kB / 1.171 GB, free: 88 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.06, allocations: 3.938 kB / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002417/1.061, allocations: 85.55 kB / 1.171 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/1.061, allocations: 4 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/1.061, allocations: 0 / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/1.061, allocations: 0 / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.504e-05/1.061, allocations: 11.98 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/1.061, allocations: 0 / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.054e-05/1.061, allocations: 15.94 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/1.061, allocations: 4 kB / 1.171 GB, free: 15.95 MB / 0.9044 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 7.71e-05/1.061, allocations: 113.8 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/1.061, allocations: 0 / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00028/1.061, allocations: 85.08 kB / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/1.061, allocations: 0 / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/1.061, allocations: 0 / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.254e-05/1.061, allocations: 81.11 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/1.061, allocations: 3.984 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.749e-05/1.061, allocations: 4 kB / 1.171 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.864e-05/1.061, allocations: 15.92 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002868/1.062, allocations: 152.9 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003019/1.062, allocations: 250.7 kB / 1.172 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001027/1.062, allocations: 23.98 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.742e-05/1.062, allocations: 83.27 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of Backend: time 6.01e-07/1.062, allocations: 0 / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004846/1.063, allocations: 106.7 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of SimCode: time 0.000525/1.063, allocations: 0.5647 MB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of Templates: time 0.003369/1.067, allocations: 0.8105 MB / 1.173 GB, free: 13.57 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches