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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004337/0.004337, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001298/0.001298, allocations: 202.2 kB / 16.68 MB, free: 5.969 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.816/2.816, allocations: 482.6 MB / 0.755 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 63.91 kB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2822, allocations: 162.3 MB / 1.242 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001376/0.2836, allocations: 0.5836 MB / 1.242 GB, free: 9.207 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002377/0.2838, allocations: 55.78 kB / 1.243 GB, free: 9.152 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.714e-05/0.2839, allocations: 3.938 kB / 1.243 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.064e-05/0.2839, allocations: 0 / 1.243 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.743e-06/0.2839, allocations: 3.938 kB / 1.243 GB, free: 9.145 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.2841, allocations: 19.97 kB / 1.243 GB, free: 9.125 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.457e-05/0.2842, allocations: 27.98 kB / 1.243 GB, free: 9.098 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.989e-05/0.2842, allocations: 0 / 1.243 GB, free: 9.098 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.91e-05/0.2843, allocations: 15.97 kB / 1.243 GB, free: 9.082 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.269e-05/0.2843, allocations: 8 kB / 1.243 GB, free: 9.074 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.2843, allocations: 8 kB / 1.243 GB, free: 9.066 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.13e-05/0.2844, allocations: 19.98 kB / 1.243 GB, free: 9.047 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.563e-05/0.2844, allocations: 15.97 kB / 1.243 GB, free: 9.031 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.614e-05/0.2845, allocations: 11.88 kB / 1.243 GB, free: 9.02 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 8.333e-05/0.2845, allocations: 31.89 kB / 1.243 GB, free: 8.988 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2846, allocations: 0 / 1.243 GB, free: 8.988 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2846, allocations: 0 / 1.243 GB, free: 8.988 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.2846, allocations: 0 / 1.243 GB, free: 8.988 MB / 0.9981 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.0003192/0.2849, allocations: 351.3 kB / 1.243 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.2849, allocations: 8.031 kB / 1.243 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.285, allocations: 38.75 kB / 1.243 GB, free: 8.539 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.22e-05/0.285, allocations: 4.938 kB / 1.243 GB, free: 8.535 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.911e-05/0.2851, allocations: 164.3 kB / 1.243 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.2851, allocations: 4.375 kB / 1.243 GB, free: 8.332 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.2851, allocations: 4.375 kB / 1.243 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.2852, allocations: 66.2 kB / 1.243 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-06/0.2853, allocations: 3.938 kB / 1.243 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.2853, allocations: 4 kB / 1.243 GB, free: 8.25 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2853, allocations: 4 kB / 1.243 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.2854, allocations: 103.8 kB / 1.243 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001689/0.2856, allocations: 177.6 kB / 1.244 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.2857, allocations: 74.48 kB / 1.244 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.434e-05/0.2858, allocations: 28.84 kB / 1.244 GB, free: 7.809 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003198/0.2861, allocations: 409.5 kB / 1.244 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.2862, allocations: 30.56 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 9.61e-07/0.2862, allocations: 0 / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0002141/0.2864, allocations: 117.8 kB / 1.244 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.2864, allocations: 59.41 kB / 1.244 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.438e-05/0.2865, allocations: 101.8 kB / 1.244 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.2865, allocations: 25.7 kB / 1.244 GB, free: 6.945 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.09e-05/0.2865, allocations: 84.14 kB / 1.244 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.2866, allocations: 15.84 kB / 1.244 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.818e-05/0.2866, allocations: 33.7 kB / 1.245 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.2867, allocations: 314.8 kB / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.144e-05/0.2868, allocations: 23.98 kB / 1.245 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.478e-05/0.2868, allocations: 23.98 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.148e-05/0.2869, allocations: 57.42 kB / 1.245 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2869, allocations: 4 kB / 1.245 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001382/0.2871, allocations: 97.5 kB / 1.245 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.2871, allocations: 13.03 kB / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-06/0.2871, allocations: 0 / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.267e-06/0.2871, allocations: 0 / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.727e-05/0.2872, allocations: 23.98 kB / 1.245 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.2872, allocations: 0 / 1.245 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.893e-05/0.2872, allocations: 4 kB / 1.245 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/0.2872, allocations: 4 kB / 1.245 GB, free: 6.234 MB / 0.9981 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.0001128/0.2874, allocations: 129.8 kB / 1.245 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.2874, allocations: 7.891 kB / 1.245 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002001/0.2876, allocations: 125.5 kB / 1.245 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.2876, allocations: 3.984 kB / 1.245 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2876, allocations: 0 / 1.245 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2876, allocations: 0 / 1.245 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000131/0.2877, allocations: 181.6 kB / 1.245 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.2877, allocations: 0 / 1.245 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.353e-05/0.2878, allocations: 19.92 kB / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.2878, allocations: 7.938 kB / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.2878, allocations: 0 / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2878, allocations: 0 / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.2878, allocations: 0 / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001528/0.288, allocations: 117.1 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.105e-05/0.288, allocations: 92.94 kB / 1.246 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.2881, allocations: 4 kB / 1.246 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.632e-05/0.2881, allocations: 11.92 kB / 1.246 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.932e-05/0.2881, allocations: 4 kB / 1.246 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.2881, allocations: 4 kB / 1.246 GB, free: 5.434 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.711e-05/0.2882, allocations: 79.27 kB / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.2882, allocations: 0 / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001762/0.2884, allocations: 15.94 kB / 1.246 GB, free: 5.34 MB / 0.9981 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.0004901/0.2889, allocations: 0.6676 MB / 1.246 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000126/0.289, allocations: 67.84 kB / 1.247 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.289, allocations: 0 / 1.247 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 5.058e-05/0.289, allocations: 36.62 kB / 1.247 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001134/0.2892, allocations: 4 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00034/0.2895, allocations: 178.4 kB / 1.247 GB, free: 4.324 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.2898, allocations: 0.6807 MB / 1.247 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.003e-05/0.2899, allocations: 39.92 kB / 1.247 GB, free: 3.578 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.78e-05/0.2899, allocations: 15.66 kB / 1.247 GB, free: 3.566 MB / 0.9981 GB Notification: Performance of SimCode: time 2.11e-07/0.2899, allocations: 0 / 1.247 GB, free: 3.566 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1012/0.3911, allocations: 1.568 MB / 1.249 GB, free: 2.109 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.977/8.368, allocations: 10.31 kB / 1.249 GB, free: 2.102 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > 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