Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_10_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_10_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.001402/0.001402, allocations: 109.8 kB / 16.41 MB, free: 6.449 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.001599/0.001599, allocations: 188.3 kB / 17.35 MB, free: 5.738 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.458/1.458, allocations: 222.9 MB / 241.1 MB, free: 15.15 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.656/2.656, allocations: 437 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 63.91 kB / 1.019 GB, free: 9.348 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9804/0.982, allocations: 151.6 MB / 1.167 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002253/0.9843, allocations: 0.5944 MB / 1.168 GB, free: 3.207 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004436/0.9847, allocations: 43.86 kB / 1.168 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.629e-05/0.9848, allocations: 0 / 1.168 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.359e-05/0.9848, allocations: 0 / 1.168 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.608e-06/0.9848, allocations: 0 / 1.168 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.9852, allocations: 15.94 kB / 1.168 GB, free: 3.148 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.473e-05/0.9853, allocations: 7.984 kB / 1.168 GB, free: 3.141 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 8.76e-05/0.9854, allocations: 7.984 kB / 1.168 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.504e-05/0.9854, allocations: 3.938 kB / 1.168 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 3.871e-05/0.9855, allocations: 0 / 1.168 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.9855, allocations: 4 kB / 1.168 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.9856, allocations: 11.98 kB / 1.168 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.282e-05/0.9856, allocations: 0 / 1.168 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.832e-05/0.9857, allocations: 0 / 1.168 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.9858, allocations: 11.98 kB / 1.168 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.9858, allocations: 0 / 1.168 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.255e-06/0.9858, allocations: 0 / 1.168 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.9858, allocations: 4 kB / 1.168 GB, free: 3.098 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004272/0.9863, allocations: 323.5 kB / 1.168 GB, free: 2.73 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 7.606e-05/0.9863, allocations: 12.62 kB / 1.168 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.33e-05/0.9864, allocations: 0.9375 kB / 1.168 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/0.9866, allocations: 160.4 kB / 1.169 GB, free: 2.523 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.9866, allocations: 384 / 1.169 GB, free: 2.523 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.9866, allocations: 384 / 1.169 GB, free: 2.523 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.9868, allocations: 38.19 kB / 1.169 GB, free: 2.48 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.9868, allocations: 192 / 1.169 GB, free: 2.48 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.9869, allocations: 7.938 kB / 1.169 GB, free: 2.473 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.9869, allocations: 3.938 kB / 1.169 GB, free: 2.469 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.409e-05/0.9869, allocations: 4 kB / 1.169 GB, free: 2.465 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002782/0.9872, allocations: 153.7 kB / 1.169 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 6.303e-05/0.9873, allocations: 18.58 kB / 1.169 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.26e-05/0.9873, allocations: 8.859 kB / 1.169 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002662/0.9876, allocations: 89.09 kB / 1.169 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.9877, allocations: 34.56 kB / 1.169 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.9877, allocations: 0 / 1.169 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001823/0.9878, allocations: 45.64 kB / 1.169 GB, free: 2.027 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.9879, allocations: 51.41 kB / 1.169 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.959e-05/0.988, allocations: 89.86 kB / 1.169 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.988, allocations: 29.69 kB / 1.169 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.006e-05/0.988, allocations: 80.14 kB / 1.169 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.584e-05/0.988, allocations: 3.906 kB / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.391e-05/0.9881, allocations: 21.84 kB / 1.169 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.9882, allocations: 310.8 kB / 1.169 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.394e-05/0.9882, allocations: 4 kB / 1.169 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.706e-06/0.9883, allocations: 3.938 kB / 1.169 GB, free: 1.398 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.549e-05/0.9883, allocations: 16.84 kB / 1.169 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.9883, allocations: 0 / 1.169 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.909e-05/0.9884, allocations: 37.7 kB / 1.17 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.9884, allocations: 8.094 kB / 1.17 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.9884, allocations: 0 / 1.17 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.9884, allocations: 3.938 kB / 1.17 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.039e-05/0.9885, allocations: 4 kB / 1.17 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.9885, allocations: 0 / 1.17 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.866e-05/0.9885, allocations: 3.984 kB / 1.17 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.9885, allocations: 3.938 kB / 1.17 GB, free: 1.312 MB / 0.8887 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 8.483e-05/0.9886, allocations: 113.8 kB / 1.17 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.979e-06/0.9886, allocations: 7.922 kB / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.525e-05/0.9887, allocations: 48.81 kB / 1.17 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.9888, allocations: 3.938 kB / 1.17 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.9888, allocations: 0 / 1.17 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 3.881e-05/0.9888, allocations: 80.91 kB / 1.17 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.097e-05/0.9888, allocations: 0 / 1.17 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.9888, allocations: 0 / 1.17 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.138e-05/0.9889, allocations: 4 kB / 1.17 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.419e-05/0.989, allocations: 120.9 kB / 1.17 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001443/0.9891, allocations: 218.8 kB / 1.17 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.384e-05/0.9892, allocations: 4 kB / 1.17 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.574e-05/0.9892, allocations: 77.75 kB / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of Backend: time 3.11e-07/0.9892, allocations: 0 / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0005004/0.9897, allocations: 90.33 kB / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of SimCode: time 0.0006313/0.9903, allocations: 0.5293 MB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of Templates: time 0.003324/0.9937, allocations: 358.8 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches