Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_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.001122/0.001122, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 195.5 kB / 16.54 MB, free: 6.672 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.798/2.798, allocations: 469.4 MB / 0.742 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 71.53 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2677, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003056/0.2708, allocations: 1.538 MB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004871/0.2713, allocations: 173.1 kB / 1.065 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.292e-05/0.2714, allocations: 0 / 1.065 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.078e-05/0.2714, allocations: 3.938 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.078e-05/0.2715, allocations: 3.938 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.2719, allocations: 51.88 kB / 1.065 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.454e-05/0.2719, allocations: 35.92 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.983e-05/0.272, allocations: 15.98 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.909e-05/0.2721, allocations: 19.92 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.895e-05/0.2721, allocations: 23.91 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.2722, allocations: 4 kB / 1.065 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.2723, allocations: 39.97 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.978e-05/0.2723, allocations: 4 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.3e-05/0.2724, allocations: 27.84 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.2725, allocations: 59.84 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2725, allocations: 4 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.393e-06/0.2725, allocations: 0 / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.2726, allocations: 4 kB / 1.066 GB, free: 12.54 MB / 0.8262 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.0004825/0.273, allocations: 351.7 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.2731, allocations: 8.031 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.279e-05/0.2731, allocations: 42.67 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.078e-05/0.2732, allocations: 4.938 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.2733, allocations: 172.2 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.2733, allocations: 4.375 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.2734, allocations: 4.375 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.2736, allocations: 66.22 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.2736, allocations: 3.938 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.2736, allocations: 4 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2736, allocations: 0 / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001927/0.2738, allocations: 39.95 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000381/0.2742, allocations: 288.7 kB / 1.067 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003276/0.2745, allocations: 58.52 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.2747, allocations: 24.91 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002127/0.2749, allocations: 170.2 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.129e-05/0.2749, allocations: 30.56 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.2749, allocations: 8 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003882/0.2753, allocations: 93.48 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.2753, allocations: 55.39 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.655e-05/0.2754, allocations: 109.9 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.2754, allocations: 29.7 kB / 1.067 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.053e-05/0.2755, allocations: 92.12 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.322e-05/0.2755, allocations: 7.906 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/0.2756, allocations: 13.72 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.2757, allocations: 322.8 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.253e-05/0.2758, allocations: 19.98 kB / 1.068 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.677e-05/0.2759, allocations: 19.97 kB / 1.068 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.276, allocations: 44.77 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.276, allocations: 4 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002227/0.2763, allocations: 81.55 kB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.2763, allocations: 8 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.2763, allocations: 0 / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/0.2763, allocations: 4 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.459e-05/0.2764, allocations: 11.98 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.2764, allocations: 0 / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.209e-05/0.2765, allocations: 8 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.2765, allocations: 320 / 1.068 GB, free: 10.1 MB / 0.8262 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 (bin.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 8.125e-05/0.2766, allocations: 125.7 kB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.612e-05/0.2766, allocations: 0 / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002603/0.2769, allocations: 85.48 kB / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2769, allocations: 0 / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2769, allocations: 0 / 1.068 GB, free: 9.875 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2769, allocations: 4 kB / 1.068 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.2771, allocations: 173.5 kB / 1.068 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2771, allocations: 0 / 1.068 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.552e-05/0.2772, allocations: 11.98 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2772, allocations: 0 / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.2772, allocations: 0 / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2772, allocations: 0 / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2772, allocations: 4 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002699/0.2775, allocations: 187.7 kB / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.2775, allocations: 81.14 kB / 1.068 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.2776, allocations: 0 / 1.068 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.6e-05/0.2777, allocations: 7.984 kB / 1.068 GB, free: 9.332 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/0.2777, allocations: 4 kB / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.2777, allocations: 0 / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.525e-05/0.2778, allocations: 95.25 kB / 1.068 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2778, allocations: 0 / 1.068 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002493/0.278, allocations: 27.94 kB / 1.068 GB, free: 9.207 MB / 0.8262 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,bin.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.0005705/0.2786, allocations: 0.7206 MB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002297/0.2788, allocations: 51.95 kB / 1.069 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2789, allocations: 0 / 1.069 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.279, allocations: 27.97 kB / 1.069 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.2793, allocations: 5.25 kB / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.2808, allocations: 1.288 MB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.281, allocations: 0.6768 MB / 1.071 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.282e-05/0.2811, allocations: 4 kB / 1.071 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.714e-05/0.2811, allocations: 19.52 kB / 1.071 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.2811, allocations: 3.938 kB / 1.071 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.2991, allocations: 1.91 MB / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.177/7.476, allocations: 9.125 kB / 1.073 GB, free: 4.422 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_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_Binomial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches