Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_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.005812/0.005812, allocations: 101.9 kB / 15.73 MB, free: 6.465 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.001234/0.001234, allocations: 189.4 kB / 16.67 MB, free: 6.379 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.385/2.385, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 67.77 kB / 0.9504 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2802, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002825/0.2831, allocations: 1.53 MB / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0004342/0.2836, allocations: 136.4 kB / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.833e-05/0.2836, allocations: 0 / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.435e-05/0.2837, allocations: 0 / 1.089 GB, free: 320 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.97e-05/0.2838, allocations: 7.938 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.2841, allocations: 31.91 kB / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.95e-05/0.2842, allocations: 35.91 kB / 1.089 GB, free: 244 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.2843, allocations: 15.98 kB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.73e-05/0.2843, allocations: 15.92 kB / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.882e-05/0.2844, allocations: 19.92 kB / 1.089 GB, free: 192 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.2844, allocations: 4 kB / 1.089 GB, free: 188 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 7.929e-05/0.2845, allocations: 19.98 kB / 1.089 GB, free: 168 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.618e-05/0.2845, allocations: 7.938 kB / 1.089 GB, free: 160 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.667e-05/0.2846, allocations: 23.91 kB / 1.089 GB, free: 136 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.2847, allocations: 39.89 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2847, allocations: 0 / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.993e-06/0.2847, allocations: 0 / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.2847, allocations: 0 / 1.089 GB, free: 96 kB / 0.8419 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.0005117/0.2853, allocations: 354.3 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.2853, allocations: 11.97 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.592e-05/0.2853, allocations: 38.75 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.858e-05/0.2854, allocations: 0.9375 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.2855, allocations: 181.1 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.2855, allocations: 384 / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.2856, allocations: 4.375 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.2858, allocations: 66.2 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.2858, allocations: 3.938 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.2858, allocations: 4 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2858, allocations: 0 / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002073/0.286, allocations: 47.89 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003819/0.2864, allocations: 280.8 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003228/0.2867, allocations: 58.48 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.2869, allocations: 28.89 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002757/0.2871, allocations: 401.5 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.2872, allocations: 38.5 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.2872, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004028/0.2876, allocations: 93.53 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.2876, allocations: 51.41 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.163e-05/0.2877, allocations: 113.8 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.2878, allocations: 29.7 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.312e-05/0.2878, allocations: 84.14 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.2878, allocations: 7.906 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.651e-05/0.2879, allocations: 13.7 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.288, allocations: 322.8 kB / 1.091 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.63e-05/0.2881, allocations: 19.97 kB / 1.091 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.254e-05/0.2882, allocations: 19.92 kB / 1.091 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001764/0.2884, allocations: 52.81 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2884, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002349/0.2886, allocations: 73.66 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.2886, allocations: 4 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.2886, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.2887, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.232e-05/0.2887, allocations: 11.98 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.2888, allocations: 4 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.087e-05/0.2888, allocations: 11.89 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-06/0.2888, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 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.857e-05/0.2889, allocations: 125.7 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.774e-05/0.289, allocations: 4.328 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000271/0.2892, allocations: 81.53 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2892, allocations: 4 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2893, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2893, allocations: 4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.2894, allocations: 169.7 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.2894, allocations: 11.98 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.549e-05/0.2895, allocations: 4 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.2895, allocations: 4 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.2895, allocations: 3.984 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2896, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2896, allocations: 320 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.2898, allocations: 184.7 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.2899, allocations: 81.05 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.2899, allocations: 7.984 kB / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.344e-05/0.29, allocations: 0 / 1.092 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.042e-05/0.29, allocations: 11.92 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.2901, allocations: 0 / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.603e-05/0.2901, allocations: 95.27 kB / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of sort global known variables: time 5.41e-07/0.2901, allocations: 0 / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002399/0.2904, allocations: 15.98 kB / 1.092 GB, free: 12.49 MB / 0.8575 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.0005815/0.291, allocations: 0.7123 MB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002395/0.2912, allocations: 47.95 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2912, allocations: 0 / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.2913, allocations: 23.98 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.2916, allocations: 9.234 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.2931, allocations: 1.284 MB / 1.094 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.2934, allocations: 0.6807 MB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.36e-05/0.2934, allocations: 0 / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.985e-05/0.2935, allocations: 19.42 kB / 1.095 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of SimCode: time 2.465e-06/0.2935, allocations: 0 / 1.095 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.3123, allocations: 1.728 MB / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.381/7.694, allocations: 0 / 1.097 GB, free: 7.949 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,falFac.y Variables in the result:falFac.k,falFac.n,falFac.y,k.duration,k.height,k.offset,k.startTime,k.y,n.k,n.y,rea2Int.u,rea2Int.y,time