Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falFac.1.|falFac.2.|falFac.3.|falFac.4.|falFac.5.|falFac.6.|falFac.7.|falFac.8.|falFac.9.|falFac.10.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001377/0.001377, 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.001318/0.001318, allocations: 197.9 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.363/1.363, 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.656/2.656, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 64.7 kB / 0.899 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.288, allocations: 157.4 MB / 1.053 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001888/0.2899, allocations: 0.6387 MB / 1.053 GB, free: 7.656 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002921/0.2902, allocations: 55.78 kB / 1.053 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.368e-05/0.2903, allocations: 3.938 kB / 1.053 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/0.2903, allocations: 4 kB / 1.053 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.799e-06/0.2903, allocations: 0 / 1.053 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.2906, allocations: 19.92 kB / 1.053 GB, free: 7.574 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.362e-05/0.2907, allocations: 27.97 kB / 1.053 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.276e-05/0.2907, allocations: 4 kB / 1.053 GB, free: 7.543 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.266e-05/0.2907, allocations: 11.98 kB / 1.054 GB, free: 7.531 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.896e-05/0.2908, allocations: 11.98 kB / 1.054 GB, free: 7.52 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.342e-05/0.2908, allocations: 0 / 1.054 GB, free: 7.52 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.585e-05/0.2909, allocations: 15.98 kB / 1.054 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.658e-05/0.2909, allocations: 11.98 kB / 1.054 GB, free: 7.492 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.35e-05/0.2909, allocations: 15.88 kB / 1.054 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.237e-05/0.291, allocations: 31.89 kB / 1.054 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.291, allocations: 0 / 1.054 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.22e-07/0.2911, allocations: 0 / 1.054 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.2911, allocations: 0 / 1.054 GB, free: 7.445 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003239/0.2914, allocations: 335.5 kB / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.2914, allocations: 11.97 kB / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.391e-05/0.2915, allocations: 4.938 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.338e-05/0.2916, allocations: 168.6 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.2916, allocations: 12.36 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.2916, allocations: 8.375 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001501/0.2918, allocations: 62.17 kB / 1.054 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.2918, allocations: 4.172 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.2918, allocations: 7.938 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.2918, allocations: 0 / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.292, allocations: 107.8 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.2921, allocations: 165.6 kB / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.2922, allocations: 74.53 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.746e-05/0.2923, allocations: 40.78 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003444/0.2927, allocations: 405.5 kB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.2927, allocations: 30.56 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.2927, allocations: 0 / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002452/0.2929, allocations: 121.8 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.293, allocations: 55.41 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.353e-05/0.293, allocations: 97.77 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.2931, allocations: 25.7 kB / 1.055 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.262e-05/0.2931, allocations: 84.14 kB / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.162e-05/0.2931, allocations: 19.75 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.2932, allocations: 33.7 kB / 1.055 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2933, allocations: 318.8 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.851e-05/0.2933, allocations: 19.92 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.408e-05/0.2934, allocations: 19.98 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.967e-05/0.2935, allocations: 56.84 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2935, allocations: 0 / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001403/0.2936, allocations: 101.5 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.2937, allocations: 8 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.2937, allocations: 7.938 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.2937, allocations: 0 / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.2938, allocations: 19.94 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.2938, allocations: 0 / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.282e-05/0.2938, allocations: 11.92 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.2938, allocations: 4 kB / 1.056 GB, free: 4.734 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: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001399/0.294, allocations: 117.8 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.571e-05/0.294, allocations: 11.89 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000209/0.2942, allocations: 133.3 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.2942, allocations: 4 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2942, allocations: 0 / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2942, allocations: 0 / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.2944, allocations: 173.6 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2944, allocations: 0 / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.561e-05/0.2945, allocations: 16 kB / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.2945, allocations: 7.938 kB / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.2945, allocations: 7.984 kB / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.2945, allocations: 0 / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2945, allocations: 0 / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001576/0.2947, allocations: 121.8 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.38e-05/0.2947, allocations: 89.03 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.18e-05/0.2947, allocations: 4 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.469e-05/0.2947, allocations: 0 / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.193e-05/0.2948, allocations: 11.98 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.2948, allocations: 4 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.518e-05/0.2948, allocations: 75.28 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2948, allocations: 0 / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002113/0.295, allocations: 16 kB / 1.057 GB, free: 3.855 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: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.00018/0.2952, allocations: 113.3 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001429/0.2954, allocations: 67.94 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2954, allocations: 4 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.483e-05/0.2954, allocations: 31.98 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.2956, allocations: 7.938 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002848/0.2959, allocations: 188.3 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.2961, allocations: 0.6848 MB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.799e-05/0.2962, allocations: 15.44 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of SimCode: time 2.6e-07/0.2962, allocations: 4 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of Templates: time 0.002315/0.2985, allocations: 0.9469 MB / 1.059 GB, free: 1.734 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches