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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001124/0.001124, allocations: 108 kB / 15.61 MB, free: 152 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.001116/0.001117, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.964/2.964, allocations: 472.7 MB / 0.7451 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 68.33 kB / 0.912 GB, free: 33.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2872, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.00306/0.2903, allocations: 1.539 MB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003526/0.2907, allocations: 135.6 kB / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.15e-05/0.2907, allocations: 0 / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.704e-05/0.2907, allocations: 3.938 kB / 1.07 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.175e-05/0.2908, allocations: 7.922 kB / 1.07 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.2911, allocations: 27.91 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.554e-05/0.2911, allocations: 35.92 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.287e-05/0.2912, allocations: 15.98 kB / 1.07 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.888e-05/0.2913, allocations: 19.92 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.885e-05/0.2913, allocations: 15.92 kB / 1.07 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.467e-05/0.2913, allocations: 4 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.896e-05/0.2914, allocations: 19.98 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.647e-05/0.2914, allocations: 11.92 kB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.689e-05/0.2915, allocations: 15.94 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001064/0.2916, allocations: 47.86 kB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2916, allocations: 0 / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2916, allocations: 0 / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.481e-06/0.2916, allocations: 0 / 1.07 GB, free: 8.508 MB / 0.8262 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.0004259/0.292, allocations: 351.7 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.2921, allocations: 12.03 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.149e-05/0.2921, allocations: 0.9375 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.2922, allocations: 172.3 kB / 1.071 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.2923, allocations: 4.375 kB / 1.071 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.2923, allocations: 8.375 kB / 1.071 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/0.2925, allocations: 58.23 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.652e-06/0.2925, allocations: 4.125 kB / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.2925, allocations: 7.938 kB / 1.071 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.2925, allocations: 7.938 kB / 1.071 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.2927, allocations: 47.94 kB / 1.071 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003586/0.2931, allocations: 280.7 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.2934, allocations: 70.45 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.2935, allocations: 24.91 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002445/0.2938, allocations: 401.5 kB / 1.071 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.2938, allocations: 34.55 kB / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.2938, allocations: 0 / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003827/0.2942, allocations: 93.64 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.2943, allocations: 55.41 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.389e-05/0.2943, allocations: 109.8 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.2944, allocations: 25.7 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.86e-05/0.2944, allocations: 88.12 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.295e-05/0.2944, allocations: 7.906 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.614e-05/0.2945, allocations: 17.72 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.2946, allocations: 318.8 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.755e-05/0.2947, allocations: 23.97 kB / 1.072 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.013e-05/0.2948, allocations: 15.98 kB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.2949, allocations: 48.81 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.295, allocations: 0 / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002253/0.2952, allocations: 77.56 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.2952, allocations: 4 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.2952, allocations: 0 / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.2952, allocations: 0 / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.211e-05/0.2953, allocations: 15.92 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.2953, allocations: 0 / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.2e-05/0.2954, allocations: 11.98 kB / 1.072 GB, free: 5.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-06/0.2954, allocations: 4 kB / 1.072 GB, free: 5.836 MB / 0.8262 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 6.863e-05/0.2955, allocations: 114.3 kB / 1.072 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.827e-05/0.2955, allocations: 4 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002666/0.2958, allocations: 81.55 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2958, allocations: 3.984 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2958, allocations: 4 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2958, allocations: 0 / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.296, allocations: 169.5 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.296, allocations: 0 / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.963e-05/0.2961, allocations: 23.92 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2961, allocations: 0 / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.2961, allocations: 0 / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2961, allocations: 0 / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2961, allocations: 320 / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.2964, allocations: 175.7 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.417e-05/0.2964, allocations: 85.14 kB / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.2964, allocations: 8 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.8e-05/0.2965, allocations: 4 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.607e-05/0.2966, allocations: 7.984 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.5e-06/0.2966, allocations: 4 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.537e-05/0.2967, allocations: 95.19 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2967, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002327/0.2969, allocations: 8 kB / 1.073 GB, free: 4.957 MB / 0.8262 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.0001543/0.2971, allocations: 115 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002322/0.2973, allocations: 47.95 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2973, allocations: 0 / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.2974, allocations: 27.97 kB / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.2977, allocations: 7.875 kB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002862/0.298, allocations: 133.4 kB / 1.073 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.2982, allocations: 0.6845 MB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.147e-05/0.2982, allocations: 4 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.717e-05/0.2983, allocations: 11.44 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2983, allocations: 0 / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of Templates: time 0.00285/0.3011, allocations: 0.7628 MB / 1.075 GB, free: 3.113 MB / 0.8262 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches