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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001402/0.001402, allocations: 100.1 kB / 15.88 MB, free: 12 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.001508/0.001508, allocations: 199 kB / 16.79 MB, free: 6.809 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.418/1.418, allocations: 222.9 MB / 240.5 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.76/2.76, allocations: 461.8 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 62.05 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2721, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002931/0.2751, allocations: 1.574 MB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004406/0.2755, allocations: 123.6 kB / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.173e-05/0.2756, allocations: 0 / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.373e-05/0.2756, allocations: 0 / 1.054 GB, free: 6.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.338e-05/0.2757, allocations: 3.938 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001919/0.2759, allocations: 19.98 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.841e-05/0.276, allocations: 35.91 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.662e-05/0.2761, allocations: 8 kB / 1.054 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.054e-05/0.2761, allocations: 11.92 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.074e-05/0.2762, allocations: 19.92 kB / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.2762, allocations: 0 / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.845e-05/0.2763, allocations: 8 kB / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.224e-05/0.2763, allocations: 4 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.098e-05/0.2763, allocations: 19.91 kB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.722e-05/0.2764, allocations: 15.97 kB / 1.055 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2764, allocations: 4 kB / 1.055 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.91e-07/0.2764, allocations: 0 / 1.055 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.2764, allocations: 0 / 1.055 GB, free: 6.434 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.0004997/0.2769, allocations: 353.4 kB / 1.055 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.277, allocations: 19.91 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.277, allocations: 4.844 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.2771, allocations: 164.4 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.2772, allocations: 8.375 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.2772, allocations: 384 / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001925/0.2774, allocations: 62.23 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.2774, allocations: 4.125 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.2774, allocations: 3.938 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.2774, allocations: 0 / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001955/0.2776, allocations: 39.95 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003722/0.278, allocations: 265 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003263/0.2784, allocations: 62.45 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.878e-05/0.2785, allocations: 28.84 kB / 1.056 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001233/0.2786, allocations: 89.03 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.2786, allocations: 34.56 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.173e-06/0.2786, allocations: 4 kB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003795/0.279, allocations: 89.55 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.2791, allocations: 51.41 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.181e-05/0.2791, allocations: 101.8 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.2792, allocations: 29.7 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.955e-05/0.2792, allocations: 80.14 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.01e-05/0.2792, allocations: 19.83 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.2793, allocations: 17.7 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.2794, allocations: 314.8 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.271e-05/0.2795, allocations: 19.92 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.421e-05/0.2796, allocations: 23.97 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.2798, allocations: 48.81 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2798, allocations: 3.938 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002152/0.28, allocations: 69.66 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.28, allocations: 4 kB / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.28, allocations: 0 / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2801, allocations: 0 / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.497e-05/0.2801, allocations: 15.98 kB / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.2802, allocations: 3.938 kB / 1.056 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.96e-05/0.2802, allocations: 11.98 kB / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/0.2802, allocations: 4 kB / 1.056 GB, free: 4.18 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.038e-05/0.2803, allocations: 109.8 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.2804, allocations: 3.906 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002556/0.2806, allocations: 85.14 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2806, allocations: 0 / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2806, allocations: 0 / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2806, allocations: 4 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.2808, allocations: 170.1 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.2808, allocations: 0 / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.537e-05/0.2809, allocations: 11.98 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.2809, allocations: 4 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.2809, allocations: 0 / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2809, allocations: 7.875 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2809, allocations: 0 / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/0.2812, allocations: 183.4 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.403e-05/0.2813, allocations: 77.11 kB / 1.057 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.2813, allocations: 4 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.428e-05/0.2814, allocations: 7.984 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5e-05/0.2814, allocations: 3.984 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.2814, allocations: 4 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.447e-05/0.2815, allocations: 79.28 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2815, allocations: 0 / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002261/0.2817, allocations: 12 kB / 1.057 GB, free: 3.328 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.0001501/0.2819, allocations: 99.25 kB / 1.057 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002339/0.2821, allocations: 47.89 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2821, allocations: 0 / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.865e-05/0.2822, allocations: 27.97 kB / 1.057 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.2825, allocations: 11.94 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.2828, allocations: 136.9 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002683/0.2831, allocations: 0.6809 MB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.324e-05/0.2831, allocations: 19.36 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of SimCode: time 3.4e-07/0.2831, allocations: 0 / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of Templates: time 0.002143/0.2853, allocations: 0.7339 MB / 1.059 GB, free: 1.504 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches