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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_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.007859/0.007859, allocations: 96.7 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.001886/0.001886, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.746/2.746, allocations: 469.4 MB / 0.7421 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 67.83 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2845, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002543/0.287, allocations: 1.54 MB / 1.221 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003717/0.2874, allocations: 131.6 kB / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.822e-05/0.2875, allocations: 0 / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.887e-05/0.2875, allocations: 0 / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.956e-05/0.2876, allocations: 7.922 kB / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002902/0.2879, allocations: 35.91 kB / 1.221 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.845e-05/0.288, allocations: 35.91 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.9e-05/0.2881, allocations: 8 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.741e-05/0.2881, allocations: 23.91 kB / 1.221 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.365e-05/0.2882, allocations: 19.92 kB / 1.221 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.2882, allocations: 4 kB / 1.221 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.449e-05/0.2883, allocations: 15.98 kB / 1.222 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.824e-05/0.2883, allocations: 8 kB / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.73e-05/0.2883, allocations: 23.86 kB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.2885, allocations: 47.81 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2885, allocations: 0 / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2885, allocations: 3.938 kB / 1.222 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.2885, allocations: 0 / 1.222 GB, free: 12.75 MB / 0.9825 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.0004474/0.289, allocations: 351.3 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.289, allocations: 12.03 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.289, allocations: 38.69 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.745e-05/0.2891, allocations: 4.938 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.777e-05/0.2892, allocations: 168.3 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.2892, allocations: 384 / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.2892, allocations: 4.375 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.2894, allocations: 70.14 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.2894, allocations: 3.938 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.2895, allocations: 4 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.2895, allocations: 0 / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.2897, allocations: 55.88 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003637/0.29, allocations: 276.8 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003153/0.2904, allocations: 54.55 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.2905, allocations: 28.89 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00028/0.2908, allocations: 401.5 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.2908, allocations: 38.5 kB / 1.223 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.213e-06/0.2908, allocations: 0 / 1.223 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003897/0.2912, allocations: 93.77 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.2912, allocations: 55.41 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.164e-05/0.2913, allocations: 109.8 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.2913, allocations: 29.7 kB / 1.223 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.2914, allocations: 88.14 kB / 1.223 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.515e-05/0.2914, allocations: 7.953 kB / 1.223 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.2914, allocations: 17.7 kB / 1.223 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.703e-05/0.2915, allocations: 318.8 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.441e-05/0.2916, allocations: 19.97 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.964e-05/0.2917, allocations: 23.97 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.2919, allocations: 52.75 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2919, allocations: 0 / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002201/0.2922, allocations: 77.61 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.2922, allocations: 5.25 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2922, allocations: 4 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.2922, allocations: 4 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.024e-05/0.2923, allocations: 7.984 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.2923, allocations: 8 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.27e-05/0.2924, allocations: 7.984 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.2924, allocations: 0 / 1.224 GB, free: 10.04 MB / 0.9825 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.684e-05/0.2925, allocations: 118.2 kB / 1.224 GB, free: 9.91 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.841e-05/0.2925, allocations: 4 kB / 1.224 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002553/0.2928, allocations: 81.48 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.2928, allocations: 11.94 kB / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2928, allocations: 0 / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.2928, allocations: 0 / 1.224 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/0.293, allocations: 173.5 kB / 1.224 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.293, allocations: 3.984 kB / 1.224 GB, free: 9.578 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.641e-05/0.2931, allocations: 8 kB / 1.224 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2931, allocations: 0 / 1.224 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.2931, allocations: 3.984 kB / 1.224 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2931, allocations: 0 / 1.224 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2931, allocations: 0 / 1.224 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002532/0.2934, allocations: 175.4 kB / 1.224 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.499e-05/0.2934, allocations: 81.11 kB / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.2934, allocations: 3.984 kB / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.875e-05/0.2935, allocations: 8 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.2936, allocations: 3.984 kB / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.2936, allocations: 4 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.823e-05/0.2936, allocations: 87.28 kB / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2936, allocations: 0 / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002508/0.2939, allocations: 15.92 kB / 1.225 GB, free: 9.16 MB / 0.9825 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.0005392/0.2944, allocations: 0.7244 MB / 1.225 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002249/0.2947, allocations: 47.94 kB / 1.225 GB, free: 8.363 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2947, allocations: 4 kB / 1.225 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.2948, allocations: 19.98 kB / 1.225 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.2951, allocations: 9.703 kB / 1.225 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.2966, allocations: 1.292 MB / 1.227 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.2969, allocations: 0.6807 MB / 1.227 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.848e-05/0.2969, allocations: 4 kB / 1.227 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.391e-05/0.297, allocations: 19.42 kB / 1.227 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.297, allocations: 0 / 1.227 GB, free: 6.23 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0178/0.3148, allocations: 1.708 MB / 1.229 GB, free: 4.617 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.623/7.938, allocations: 3.938 kB / 1.229 GB, free: 4.613 MB / 0.9825 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches