Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.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.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial",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.004283/0.004283, allocations: 106.1 kB / 15.74 MB, free: 6.02 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.001245/0.001245, allocations: 192.4 kB / 16.68 MB, free: 5.938 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.755/2.755, allocations: 482.4 MB / 0.7548 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 74.5 kB / 1.083 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2787, allocations: 162.2 MB / 1.241 GB, free: 9.207 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001593/0.2803, allocations: 0.5913 MB / 1.242 GB, free: 8.617 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003645/0.2807, allocations: 115.9 kB / 1.242 GB, free: 8.504 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.718e-05/0.2807, allocations: 0 / 1.242 GB, free: 8.504 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.34e-05/0.2808, allocations: 0 / 1.242 GB, free: 8.504 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.731e-06/0.2808, allocations: 0 / 1.242 GB, free: 8.504 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.2811, allocations: 39.89 kB / 1.242 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001251/0.2812, allocations: 67.88 kB / 1.242 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.901e-05/0.2813, allocations: 8 kB / 1.242 GB, free: 8.391 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.898e-05/0.2813, allocations: 27.91 kB / 1.242 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.116e-05/0.2814, allocations: 19.97 kB / 1.242 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.2814, allocations: 4 kB / 1.242 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.2815, allocations: 47.95 kB / 1.242 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.227e-05/0.2816, allocations: 23.95 kB / 1.242 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.2816, allocations: 15.92 kB / 1.242 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.2818, allocations: 76.05 kB / 1.242 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2818, allocations: 4 kB / 1.242 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of FrontEnd: time 4.628e-06/0.2818, allocations: 0 / 1.242 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.2818, allocations: 3.938 kB / 1.243 GB, free: 8.172 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.000522/0.2823, allocations: 375.4 kB / 1.243 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.2824, allocations: 12.03 kB / 1.243 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.152e-05/0.2824, allocations: 34.75 kB / 1.243 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.277e-05/0.2824, allocations: 8.938 kB / 1.243 GB, free: 7.691 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.2826, allocations: 168.3 kB / 1.243 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002817/0.2829, allocations: 277.6 kB / 1.243 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.2829, allocations: 12.38 kB / 1.243 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002558/0.2831, allocations: 85.88 kB / 1.243 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.2832, allocations: 0 / 1.243 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.208e-06/0.2832, allocations: 0 / 1.243 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.2832, allocations: 4 kB / 1.243 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003702/0.2836, allocations: 131.8 kB / 1.244 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001995/0.2838, allocations: 181.5 kB / 1.244 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.2841, allocations: 90.52 kB / 1.244 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.2843, allocations: 56.77 kB / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.2843, allocations: 0 / 1.244 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.2843, allocations: 34.5 kB / 1.244 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 8.42e-07/0.2843, allocations: 4 kB / 1.244 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0005498/0.2849, allocations: 137.9 kB / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.2849, allocations: 55.41 kB / 1.244 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.681e-05/0.285, allocations: 97.8 kB / 1.244 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.285, allocations: 29.7 kB / 1.244 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.906e-05/0.285, allocations: 84.08 kB / 1.244 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.046e-05/0.2851, allocations: 35.69 kB / 1.244 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.292e-05/0.2852, allocations: 29.7 kB / 1.244 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.2853, allocations: 310.8 kB / 1.245 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.2855, allocations: 39.91 kB / 1.245 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.2856, allocations: 31.97 kB / 1.245 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002893/0.2859, allocations: 77.47 kB / 1.245 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2859, allocations: 0 / 1.245 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003614/0.2863, allocations: 121.5 kB / 1.245 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.2863, allocations: 7.938 kB / 1.245 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-06/0.2863, allocations: 0 / 1.245 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2863, allocations: 4 kB / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001514/0.2865, allocations: 27.91 kB / 1.245 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.2865, allocations: 0 / 1.245 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.39e-05/0.2866, allocations: 7.938 kB / 1.245 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.2866, allocations: 4 kB / 1.245 GB, free: 5.352 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: 1 (n) * 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 9.04e-05/0.2867, allocations: 122.4 kB / 1.245 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.958e-05/0.2867, allocations: 11.89 kB / 1.245 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.038e-05/0.2867, allocations: 11.97 kB / 1.245 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2867, allocations: 0 / 1.245 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.2868, allocations: 0 / 1.245 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2868, allocations: 4 kB / 1.245 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.2869, allocations: 177.6 kB / 1.245 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2869, allocations: 0 / 1.245 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001336/0.2871, allocations: 23.97 kB / 1.245 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.686e-06/0.2871, allocations: 11.88 kB / 1.245 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.2871, allocations: 8 kB / 1.245 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2871, allocations: 3.984 kB / 1.245 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.2871, allocations: 0 / 1.245 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.2875, allocations: 137 kB / 1.245 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.258e-05/0.2876, allocations: 85.05 kB / 1.246 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.2876, allocations: 4 kB / 1.246 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.356e-05/0.2876, allocations: 7.984 kB / 1.246 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/0.2877, allocations: 11.98 kB / 1.246 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.2877, allocations: 11.98 kB / 1.246 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.191e-05/0.2878, allocations: 75.28 kB / 1.246 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2878, allocations: 0 / 1.246 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002218/0.288, allocations: 19.94 kB / 1.246 GB, free: 4.535 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: 1 (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.0007725/0.2888, allocations: 0.7059 MB / 1.246 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003679/0.2891, allocations: 83.88 kB / 1.246 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2892, allocations: 3.938 kB / 1.246 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.2893, allocations: 55.89 kB / 1.246 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000131/0.2895, allocations: 4 kB / 1.246 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005008/0.29, allocations: 194.4 kB / 1.247 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.2903, allocations: 0.6923 MB / 1.247 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001361/0.2904, allocations: 39.95 kB / 1.247 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.922e-05/0.2905, allocations: 19.42 kB / 1.247 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of SimCode: time 2.61e-07/0.2905, allocations: 0 / 1.247 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02018/0.3107, allocations: 2.033 MB / 1.249 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/7.936, allocations: 10.28 kB / 1.249 GB, free: 0.707 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv --start-time 0 --stop-time 15.9 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00636 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches