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.004179/0.004179, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001247/0.001247, allocations: 195.3 kB / 16.67 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.813/2.813, allocations: 482.4 MB / 0.7548 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 66.88 kB / 1.083 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2753, allocations: 162.2 MB / 1.241 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.00159/0.2769, allocations: 0.5907 MB / 1.242 GB, free: 8.762 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002558/0.2772, allocations: 55.78 kB / 1.242 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.213e-05/0.2772, allocations: 4 kB / 1.242 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.416e-05/0.2773, allocations: 3.938 kB / 1.242 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.2773, allocations: 0 / 1.242 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.2775, allocations: 15.98 kB / 1.242 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.254e-05/0.2776, allocations: 35.95 kB / 1.242 GB, free: 8.648 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.504e-05/0.2777, allocations: 4 kB / 1.242 GB, free: 8.645 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.897e-05/0.2777, allocations: 4 kB / 1.242 GB, free: 8.641 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.239e-05/0.2777, allocations: 19.91 kB / 1.242 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.2778, allocations: 4 kB / 1.242 GB, free: 8.617 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.826e-05/0.2778, allocations: 19.98 kB / 1.242 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.405e-05/0.2779, allocations: 4 kB / 1.242 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.513e-05/0.2779, allocations: 15.92 kB / 1.242 GB, free: 8.578 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 9.974e-05/0.278, allocations: 40.09 kB / 1.242 GB, free: 8.539 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.278, allocations: 7.938 kB / 1.242 GB, free: 8.531 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.513e-06/0.278, allocations: 4 kB / 1.242 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.278, allocations: 0 / 1.242 GB, free: 8.527 MB / 0.9669 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.0003544/0.2784, allocations: 339.4 kB / 1.243 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.2784, allocations: 8.031 kB / 1.243 GB, free: 8.137 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.497e-05/0.2785, allocations: 38.69 kB / 1.243 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.526e-05/0.2785, allocations: 4.922 kB / 1.243 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.2786, allocations: 164.7 kB / 1.243 GB, free: 7.887 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.2787, allocations: 8.312 kB / 1.243 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.28e-05/0.2787, allocations: 4.375 kB / 1.243 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.2788, allocations: 62.23 kB / 1.243 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.2788, allocations: 3.938 kB / 1.243 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.2788, allocations: 7.938 kB / 1.243 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.2789, allocations: 7.984 kB / 1.243 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001548/0.279, allocations: 95.88 kB / 1.243 GB, free: 7.695 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001992/0.2792, allocations: 173.6 kB / 1.243 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/0.2794, allocations: 70.55 kB / 1.243 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.386e-05/0.2794, allocations: 28.84 kB / 1.243 GB, free: 7.367 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003608/0.2798, allocations: 405.9 kB / 1.244 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.2798, allocations: 42.48 kB / 1.244 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.2798, allocations: 3.938 kB / 1.244 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0002521/0.2801, allocations: 109.6 kB / 1.244 GB, free: 6.711 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.2801, allocations: 51.41 kB / 1.244 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.01e-05/0.2802, allocations: 101.8 kB / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.2802, allocations: 25.7 kB / 1.244 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.407e-05/0.2803, allocations: 84.14 kB / 1.244 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.596e-05/0.2803, allocations: 35.77 kB / 1.244 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.2804, allocations: 25.72 kB / 1.244 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2805, allocations: 322.8 kB / 1.244 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.325e-05/0.2806, allocations: 23.92 kB / 1.244 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.655e-05/0.2806, allocations: 16.42 kB / 1.244 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.2807, allocations: 68.92 kB / 1.245 GB, free: 5.922 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2807, allocations: 0 / 1.245 GB, free: 5.922 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001537/0.2809, allocations: 89.67 kB / 1.245 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.2809, allocations: 15.88 kB / 1.245 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2809, allocations: 3.984 kB / 1.245 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.2809, allocations: 0 / 1.245 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.8e-05/0.281, allocations: 19.98 kB / 1.245 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/0.281, allocations: 0 / 1.245 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.275e-05/0.2811, allocations: 7.891 kB / 1.245 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.2811, allocations: 4 kB / 1.245 GB, free: 5.777 MB / 0.9669 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.0001315/0.2812, allocations: 126.3 kB / 1.245 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.539e-05/0.2812, allocations: 11.94 kB / 1.245 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.2815, allocations: 117.6 kB / 1.245 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.2815, allocations: 0 / 1.245 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2815, allocations: 0 / 1.245 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.634e-06/0.2815, allocations: 0 / 1.245 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.2817, allocations: 181.5 kB / 1.245 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2817, allocations: 0 / 1.245 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.787e-05/0.2817, allocations: 23.92 kB / 1.245 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/0.2818, allocations: 7.938 kB / 1.245 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.2818, allocations: 3.938 kB / 1.245 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2818, allocations: 4 kB / 1.245 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2818, allocations: 4 kB / 1.245 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001681/0.282, allocations: 113.1 kB / 1.245 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.808e-05/0.282, allocations: 88.94 kB / 1.245 GB, free: 5 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.282, allocations: 8 kB / 1.245 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.737e-05/0.2821, allocations: 0 / 1.245 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.2821, allocations: 7.984 kB / 1.245 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.353e-06/0.2821, allocations: 4 kB / 1.245 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.96e-05/0.2822, allocations: 79.28 kB / 1.245 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2822, allocations: 3.938 kB / 1.245 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002019/0.2824, allocations: 12 kB / 1.245 GB, free: 4.887 MB / 0.9669 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.0005329/0.2829, allocations: 0.667 MB / 1.246 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001567/0.2831, allocations: 68.34 kB / 1.246 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.2831, allocations: 0 / 1.246 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.185e-05/0.2832, allocations: 40.08 kB / 1.246 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.2833, allocations: 8.219 kB / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003668/0.2837, allocations: 170.4 kB / 1.246 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.284, allocations: 0.6807 MB / 1.247 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.069e-05/0.2841, allocations: 43.92 kB / 1.247 GB, free: 3.121 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.835e-05/0.2841, allocations: 23.42 kB / 1.247 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of SimCode: time 2.5e-07/0.2841, allocations: 0 / 1.247 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.305, allocations: 1.549 MB / 1.249 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.441/7.746, allocations: 15 kB / 1.249 GB, free: 1.652 MB / 0.9669 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 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.csv","/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