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.001465/0.001465, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 183.1 kB / 16.66 MB, free: 6.602 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.389/1.389, 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 10.1.1-maint.10.0.x/package.mo): time 2.65/2.65, allocations: 437 MB / 0.7105 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.91 kB / 1.019 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3114, allocations: 151.6 MB / 1.167 GB, free: 6.824 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002447/0.3139, allocations: 1.505 MB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003215/0.3142, allocations: 128.4 kB / 1.168 GB, free: 5.172 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.026e-05/0.3143, allocations: 4 kB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.55e-05/0.3143, allocations: 0 / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.521e-05/0.3144, allocations: 3.938 kB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001916/0.3146, allocations: 27.91 kB / 1.168 GB, free: 5.137 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.52e-05/0.3146, allocations: 27.97 kB / 1.168 GB, free: 5.109 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.264e-05/0.3147, allocations: 8 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.911e-05/0.3148, allocations: 15.92 kB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.519e-05/0.3148, allocations: 19.92 kB / 1.168 GB, free: 5.066 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.3148, allocations: 4 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 5.383e-05/0.3149, allocations: 4 kB / 1.168 GB, free: 5.059 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.41e-05/0.3149, allocations: 19.91 kB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.654e-05/0.315, allocations: 11.94 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.3151, allocations: 43.83 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3151, allocations: 4 kB / 1.168 GB, free: 4.98 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3151, allocations: 0 / 1.168 GB, free: 4.98 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.3151, allocations: 0 / 1.168 GB, free: 4.98 MB / 0.92 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.0004173/0.3155, allocations: 339.5 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.3156, allocations: 11.97 kB / 1.169 GB, free: 4.586 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.3156, allocations: 4.891 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.411e-05/0.3157, allocations: 168.3 kB / 1.169 GB, free: 4.379 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.3157, allocations: 4.375 kB / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.3157, allocations: 8.375 kB / 1.169 GB, free: 4.367 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.3159, allocations: 54.22 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.3159, allocations: 4.125 kB / 1.169 GB, free: 4.305 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.316, allocations: 7.938 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.316, allocations: 4 kB / 1.169 GB, free: 4.293 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.3161, allocations: 35.95 kB / 1.169 GB, free: 4.258 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000321/0.3165, allocations: 265 kB / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.3168, allocations: 62.47 kB / 1.169 GB, free: 3.879 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.3169, allocations: 32.83 kB / 1.169 GB, free: 3.844 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.317, allocations: 81.11 kB / 1.169 GB, free: 3.746 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.3171, allocations: 34.56 kB / 1.169 GB, free: 3.703 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.203e-06/0.3171, allocations: 0 / 1.169 GB, free: 3.703 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003634/0.3174, allocations: 97.58 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.3175, allocations: 51.41 kB / 1.17 GB, free: 3.539 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.371e-05/0.3175, allocations: 105.8 kB / 1.17 GB, free: 3.426 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.3176, allocations: 25.7 kB / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.891e-05/0.3176, allocations: 84.08 kB / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/0.3176, allocations: 15.95 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-05/0.3177, allocations: 9.719 kB / 1.17 GB, free: 3.277 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.3178, allocations: 318.8 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.792e-05/0.3179, allocations: 19.92 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.374e-05/0.318, allocations: 19.98 kB / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001662/0.3181, allocations: 48.81 kB / 1.17 GB, free: 2.867 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3181, allocations: 7.938 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002027/0.3184, allocations: 65.66 kB / 1.17 GB, free: 2.789 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.3184, allocations: 7.984 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.3184, allocations: 4 kB / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.3184, allocations: 0 / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.984e-05/0.3185, allocations: 11.98 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.3185, allocations: 3.938 kB / 1.17 GB, free: 2.762 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.99e-05/0.3186, allocations: 15.95 kB / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.3186, allocations: 0 / 1.17 GB, free: 2.746 MB / 0.92 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.655e-05/0.3187, allocations: 113.8 kB / 1.17 GB, free: 2.625 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.52e-05/0.3187, allocations: 4 kB / 1.17 GB, free: 2.621 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000256/0.3189, allocations: 77.14 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.319, allocations: 0 / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.319, allocations: 0 / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.319, allocations: 8 kB / 1.171 GB, free: 2.531 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.3191, allocations: 173.5 kB / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3191, allocations: 4.562 kB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.431e-05/0.3192, allocations: 11.98 kB / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3192, allocations: 0 / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.635e-06/0.3192, allocations: 0 / 1.171 GB, free: 2.297 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3193, allocations: 7.938 kB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3193, allocations: 0 / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002492/0.3195, allocations: 175.4 kB / 1.171 GB, free: 2.102 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.183e-05/0.3196, allocations: 85.05 kB / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.378e-05/0.3196, allocations: 4 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.271e-05/0.3197, allocations: 4 kB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.3197, allocations: 7.984 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.3197, allocations: 0 / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.999e-05/0.3198, allocations: 83.28 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3198, allocations: 3.938 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002243/0.32, allocations: 12 kB / 1.171 GB, free: 1.887 MB / 0.92 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.0001267/0.3201, allocations: 103.2 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002298/0.3204, allocations: 47.89 kB / 1.171 GB, free: 1.727 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3204, allocations: 0 / 1.171 GB, free: 1.727 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.6e-05/0.3205, allocations: 27.97 kB / 1.171 GB, free: 1.699 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.3207, allocations: 7.938 kB / 1.171 GB, free: 1.691 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002722/0.321, allocations: 109.4 kB / 1.171 GB, free: 1.559 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.3212, allocations: 0.6768 MB / 1.172 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.997e-05/0.3213, allocations: 4 kB / 1.172 GB, free: 0.8516 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.578e-05/0.3213, allocations: 11.44 kB / 1.172 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of SimCode: time 2.31e-07/0.3213, allocations: 0 / 1.172 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of Templates: time 0.002762/0.3241, allocations: 0.7072 MB / 1.173 GB, free: 136 kB / 0.92 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches