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: "" <> 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.001235/0.001235, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001104/0.001104, allocations: 187.8 kB / 16.14 MB, free: 6.645 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.279/1.279, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.548/2.548, allocations: 461.9 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 66.61 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2871, allocations: 157.4 MB / 1.052 GB, free: 8.168 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.001863/0.289, allocations: 0.6561 MB / 1.053 GB, free: 7.508 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002843/0.2893, allocations: 63.72 kB / 1.053 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.189e-05/0.2894, allocations: 0 / 1.053 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.696e-05/0.2894, allocations: 0 / 1.053 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.829e-06/0.2894, allocations: 0 / 1.053 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.2897, allocations: 15.98 kB / 1.053 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.16e-05/0.2897, allocations: 31.97 kB / 1.053 GB, free: 7.398 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.743e-05/0.2898, allocations: 0 / 1.053 GB, free: 7.398 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.2e-05/0.2898, allocations: 11.98 kB / 1.053 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.802e-05/0.2898, allocations: 11.98 kB / 1.053 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.2899, allocations: 4 kB / 1.053 GB, free: 7.371 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.91e-05/0.2899, allocations: 15.98 kB / 1.053 GB, free: 7.355 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.692e-05/0.29, allocations: 7.984 kB / 1.053 GB, free: 7.348 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.084e-05/0.29, allocations: 15.88 kB / 1.053 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.82e-05/0.2901, allocations: 35.89 kB / 1.053 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2901, allocations: 0 / 1.053 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.71e-07/0.2901, allocations: 4 kB / 1.053 GB, free: 7.293 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.2901, allocations: 0 / 1.053 GB, free: 7.293 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.0002953/0.2904, allocations: 331.6 kB / 1.053 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.2905, allocations: 15.97 kB / 1.053 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.805e-05/0.2905, allocations: 34.75 kB / 1.053 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.641e-05/0.2905, allocations: 4.938 kB / 1.053 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.108e-05/0.2906, allocations: 172.5 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.2907, allocations: 8.375 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-06/0.2907, allocations: 4.312 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001323/0.2908, allocations: 66.23 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.2908, allocations: 3.938 kB / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.2908, allocations: 0 / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-06/0.2908, allocations: 0 / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001411/0.291, allocations: 111.8 kB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001545/0.2911, allocations: 173.5 kB / 1.054 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001082/0.2913, allocations: 78.53 kB / 1.054 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.629e-05/0.2913, allocations: 32.84 kB / 1.054 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003103/0.2916, allocations: 405.5 kB / 1.054 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.2917, allocations: 34.56 kB / 1.054 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.472e-06/0.2917, allocations: 0 / 1.054 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0002382/0.2919, allocations: 125.7 kB / 1.055 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.2919, allocations: 51.41 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.023e-05/0.292, allocations: 101.8 kB / 1.055 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.292, allocations: 25.7 kB / 1.055 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.175e-05/0.292, allocations: 80.14 kB / 1.055 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.869e-05/0.2921, allocations: 23.75 kB / 1.055 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-05/0.2921, allocations: 33.7 kB / 1.055 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.644e-05/0.2922, allocations: 314.8 kB / 1.055 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.682e-05/0.2923, allocations: 19.98 kB / 1.055 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.139e-05/0.2923, allocations: 19.98 kB / 1.055 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.154e-05/0.2924, allocations: 56.84 kB / 1.055 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2924, allocations: 0 / 1.055 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001367/0.2925, allocations: 101.4 kB / 1.055 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.2926, allocations: 7.938 kB / 1.055 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2926, allocations: 4 kB / 1.055 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2926, allocations: 4 kB / 1.055 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.2927, allocations: 16 kB / 1.055 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.2927, allocations: 7.984 kB / 1.055 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.9e-05/0.2927, allocations: 0 / 1.055 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.2928, allocations: 4 kB / 1.055 GB, free: 4.543 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.0001235/0.2929, allocations: 117.8 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/0.2929, allocations: 11.83 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002016/0.2931, allocations: 133.4 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2931, allocations: 4 kB / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2931, allocations: 0 / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2931, allocations: 0 / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.2933, allocations: 173.5 kB / 1.056 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2933, allocations: 3.938 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.698e-05/0.2933, allocations: 23.98 kB / 1.056 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.2933, allocations: 3.938 kB / 1.056 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.2934, allocations: 11.98 kB / 1.056 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.2934, allocations: 0 / 1.056 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2934, allocations: 3.938 kB / 1.056 GB, free: 4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.2935, allocations: 113.9 kB / 1.056 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.507e-05/0.2936, allocations: 92.97 kB / 1.056 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.2936, allocations: 4 kB / 1.056 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.494e-05/0.2936, allocations: 0 / 1.056 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.428e-05/0.2936, allocations: 7.984 kB / 1.056 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/0.2937, allocations: 12 kB / 1.056 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.597e-05/0.2937, allocations: 75.28 kB / 1.056 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2937, allocations: 0 / 1.056 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001947/0.2939, allocations: 16 kB / 1.056 GB, free: 3.648 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.0004505/0.2943, allocations: 0.6787 MB / 1.057 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001264/0.2945, allocations: 63.89 kB / 1.057 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2945, allocations: 3.938 kB / 1.057 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.879e-05/0.2945, allocations: 31.98 kB / 1.057 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.2947, allocations: 4 kB / 1.057 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003522/0.295, allocations: 188.3 kB / 1.057 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002134/0.2953, allocations: 0.6888 MB / 1.058 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.208e-05/0.2953, allocations: 35.8 kB / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.409e-05/0.2954, allocations: 19.44 kB / 1.058 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.2954, allocations: 3.938 kB / 1.058 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01068/0.3061, allocations: 1.416 MB / 1.059 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/0.3063, allocations: 216.4 kB / 1.059 GB, free: 296 kB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.579/1.886, allocations: 4.062 kB / 1.059 GB, free: 292 kB / 0.8106 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=50 --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