Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007044/0.007044, allocations: 101.7 kB / 15.88 MB, free: 6.328 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.001557/0.001557, allocations: 194.2 kB / 16.79 MB, free: 6.254 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.414/1.414, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.685/2.685, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 63.72 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2764, allocations: 157.4 MB / 1.053 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002804/0.2793, allocations: 1.59 MB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003919/0.2797, allocations: 123.6 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.113e-05/0.2797, allocations: 8 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.92e-05/0.2798, allocations: 7.922 kB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.948e-05/0.2799, allocations: 0 / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.2801, allocations: 27.97 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.276e-05/0.2802, allocations: 35.86 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.378e-05/0.2803, allocations: 12 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.135e-05/0.2804, allocations: 7.984 kB / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.664e-05/0.2804, allocations: 19.91 kB / 1.055 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.2804, allocations: 8 kB / 1.055 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.096e-05/0.2805, allocations: 15.98 kB / 1.055 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.519e-05/0.2805, allocations: 7.938 kB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.894e-05/0.2806, allocations: 15.92 kB / 1.055 GB, free: 6.438 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001014/0.2807, allocations: 35.94 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2807, allocations: 0 / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2807, allocations: 0 / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.2807, allocations: 7.938 kB / 1.055 GB, free: 6.395 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004668/0.2812, allocations: 347.6 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2812, allocations: 15.97 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.685e-05/0.2813, allocations: 4.938 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.2814, allocations: 168.3 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.2814, allocations: 4.375 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.2814, allocations: 4.375 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.2816, allocations: 66.22 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.2817, allocations: 192 / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.2817, allocations: 7.922 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.2817, allocations: 4 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.2819, allocations: 51.89 kB / 1.055 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003828/0.2823, allocations: 280.7 kB / 1.056 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.2826, allocations: 62.52 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.2827, allocations: 28.91 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002725/0.283, allocations: 393.5 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.283, allocations: 42.48 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.283, allocations: 3.938 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003698/0.2834, allocations: 93.55 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.2834, allocations: 55.41 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.744e-05/0.2835, allocations: 105.8 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.2836, allocations: 29.7 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.676e-05/0.2836, allocations: 88.12 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.509e-05/0.2837, allocations: 7.969 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.702e-05/0.2837, allocations: 17.72 kB / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.2838, allocations: 318.8 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.716e-05/0.2839, allocations: 23.97 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.764e-05/0.284, allocations: 23.92 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.2841, allocations: 44.81 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2842, allocations: 0 / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002038/0.2844, allocations: 69.66 kB / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2844, allocations: 8 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.2844, allocations: 4 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.2844, allocations: 3.984 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.494e-05/0.2845, allocations: 8 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.2845, allocations: 0 / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.721e-05/0.2846, allocations: 7.984 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.2846, allocations: 0 / 1.057 GB, free: 3.73 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 (falFac.y,rea2Int.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.475e-05/0.2847, allocations: 125.7 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.2847, allocations: 3.906 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002577/0.285, allocations: 93.53 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.285, allocations: 0 / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.285, allocations: 0 / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.285, allocations: 0 / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.2851, allocations: 165.6 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2852, allocations: 0 / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.281e-05/0.2852, allocations: 11.98 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2852, allocations: 0 / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.2853, allocations: 4 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.2853, allocations: 4 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.2853, allocations: 0 / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002833/0.2856, allocations: 179.8 kB / 1.057 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.2856, allocations: 81.06 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.2856, allocations: 3.984 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.521e-05/0.2857, allocations: 11.98 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.838e-05/0.2858, allocations: 8 kB / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.2858, allocations: 4 kB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.893e-05/0.2858, allocations: 87.27 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2859, allocations: 0 / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000234/0.2861, allocations: 15.94 kB / 1.058 GB, free: 2.844 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 (rea2Int.y,falFac.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.0001582/0.2863, allocations: 103.2 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002268/0.2865, allocations: 47.89 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2865, allocations: 0 / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.285e-05/0.2866, allocations: 27.97 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.2869, allocations: 15.88 kB / 1.058 GB, free: 2.645 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003029/0.2872, allocations: 156.8 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.2874, allocations: 0.6848 MB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.946e-05/0.2875, allocations: 7.438 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of SimCode: time 3.11e-07/0.2875, allocations: 0 / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of Templates: time 0.002263/0.2897, allocations: 0.7873 MB / 1.059 GB, free: 0.9492 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches