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.006294/0.006295, allocations: 99.59 kB / 15.73 MB, free: 6.035 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.001366/0.001367, allocations: 193.3 kB / 16.67 MB, free: 5.961 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.84/2.84, allocations: 472.7 MB / 0.7453 GB, free: 4.539 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 67.89 kB / 1.069 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2839, allocations: 159.9 MB / 1.225 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001852/0.2858, allocations: 0.5972 MB / 1.226 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003734/0.2862, allocations: 107.6 kB / 1.226 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.22e-05/0.2863, allocations: 4 kB / 1.226 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.942e-05/0.2863, allocations: 0 / 1.226 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.69e-06/0.2863, allocations: 0 / 1.226 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.2867, allocations: 39.91 kB / 1.226 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.2868, allocations: 67.92 kB / 1.226 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.223e-05/0.2869, allocations: 3.984 kB / 1.226 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.615e-05/0.2869, allocations: 19.98 kB / 1.226 GB, free: 8.758 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.589e-05/0.287, allocations: 27.95 kB / 1.226 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.287, allocations: 0 / 1.226 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001296/0.2871, allocations: 47.91 kB / 1.226 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.433e-05/0.2872, allocations: 23.95 kB / 1.226 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.659e-05/0.2872, allocations: 31.8 kB / 1.226 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.2874, allocations: 63.84 kB / 1.226 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2874, allocations: 0 / 1.226 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2874, allocations: 0 / 1.226 GB, free: 8.566 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.2874, allocations: 4 kB / 1.226 GB, free: 8.562 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004848/0.2879, allocations: 379.3 kB / 1.227 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2879, allocations: 8.031 kB / 1.227 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.245e-05/0.288, allocations: 38.75 kB / 1.227 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.816e-05/0.288, allocations: 8.922 kB / 1.227 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.22e-05/0.2881, allocations: 164.4 kB / 1.227 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/0.2884, allocations: 281.6 kB / 1.227 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.383e-05/0.2884, allocations: 4.375 kB / 1.227 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/0.2886, allocations: 89.81 kB / 1.227 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2887, allocations: 4 kB / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.2887, allocations: 0 / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2887, allocations: 0 / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003513/0.289, allocations: 131.8 kB / 1.227 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001835/0.2892, allocations: 185.5 kB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.2896, allocations: 98.52 kB / 1.228 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.2897, allocations: 40.83 kB / 1.228 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.2897, allocations: 4 kB / 1.228 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.2898, allocations: 42.44 kB / 1.228 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.2898, allocations: 0 / 1.228 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0005465/0.2903, allocations: 141.9 kB / 1.228 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.2904, allocations: 59.41 kB / 1.228 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.807e-05/0.2904, allocations: 89.86 kB / 1.228 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.2905, allocations: 29.7 kB / 1.228 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.892e-05/0.2905, allocations: 80.14 kB / 1.228 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/0.2905, allocations: 35.69 kB / 1.228 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-05/0.2906, allocations: 29.7 kB / 1.228 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.2907, allocations: 314.8 kB / 1.228 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.2909, allocations: 31.97 kB / 1.228 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.291, allocations: 35.97 kB / 1.228 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.2913, allocations: 84.69 kB / 1.229 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2913, allocations: 0 / 1.229 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003313/0.2916, allocations: 110.2 kB / 1.229 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.2916, allocations: 11.94 kB / 1.229 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2917, allocations: 3.938 kB / 1.229 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2917, allocations: 0 / 1.229 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.2918, allocations: 27.97 kB / 1.229 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.2919, allocations: 0 / 1.229 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.838e-05/0.2919, allocations: 11.94 kB / 1.229 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.2919, allocations: 4 kB / 1.229 GB, free: 5.738 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: 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 8.448e-05/0.292, allocations: 118.4 kB / 1.229 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.2921, allocations: 11.89 kB / 1.229 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.898e-05/0.2921, allocations: 15.95 kB / 1.229 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2921, allocations: 0 / 1.229 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2921, allocations: 0 / 1.229 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2921, allocations: 4 kB / 1.229 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.2923, allocations: 185.5 kB / 1.229 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2923, allocations: 4 kB / 1.229 GB, free: 5.34 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.2924, allocations: 23.98 kB / 1.229 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.2924, allocations: 3.938 kB / 1.229 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.2924, allocations: 3.984 kB / 1.229 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.2924, allocations: 0 / 1.229 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2925, allocations: 0 / 1.229 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003507/0.2928, allocations: 149 kB / 1.229 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.168e-05/0.2928, allocations: 81.05 kB / 1.229 GB, free: 5.047 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.2929, allocations: 7.984 kB / 1.229 GB, free: 5.039 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.933e-05/0.2929, allocations: 8 kB / 1.229 GB, free: 5.031 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.391e-05/0.293, allocations: 7.984 kB / 1.229 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.293, allocations: 7.984 kB / 1.229 GB, free: 5.016 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.245e-05/0.293, allocations: 79.22 kB / 1.229 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.293, allocations: 0 / 1.229 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002303/0.2933, allocations: 27.94 kB / 1.229 GB, free: 4.91 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: 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.0006777/0.294, allocations: 0.6943 MB / 1.23 GB, free: 4.188 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003427/0.2943, allocations: 91.86 kB / 1.23 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2943, allocations: 0 / 1.23 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.2945, allocations: 47.91 kB / 1.23 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.2947, allocations: 8 kB / 1.23 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005149/0.2952, allocations: 188.7 kB / 1.23 GB, free: 3.82 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.2954, allocations: 0.6884 MB / 1.231 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001691/0.2956, allocations: 35.97 kB / 1.231 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.357e-05/0.2956, allocations: 23.42 kB / 1.231 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.2957, allocations: 0 / 1.231 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01971/0.3154, allocations: 2.047 MB / 1.233 GB, free: 1.098 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.769/8.084, allocations: 15.98 kB / 1.233 GB, free: 1.082 MB / 0.9825 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 50 --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