Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_9_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.006051/0.006052, allocations: 103.1 kB / 15.74 MB, free: 6.059 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.001373/0.001373, allocations: 190.6 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.272/2.272, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 63.91 kB / 0.9504 GB, free: 8.105 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8304/0.8319, allocations: 140.4 MB / 1.088 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001642/0.8335, allocations: 0.5928 MB / 1.088 GB, free: 4.898 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003265/0.8339, allocations: 102.4 kB / 1.088 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.152e-05/0.8339, allocations: 1.062 kB / 1.088 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.242e-05/0.8339, allocations: 0 / 1.088 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.901e-06/0.834, allocations: 0 / 1.088 GB, free: 4.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.8343, allocations: 46.12 kB / 1.088 GB, free: 4.816 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.8344, allocations: 69.23 kB / 1.088 GB, free: 4.797 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.627e-05/0.8344, allocations: 2.469 kB / 1.088 GB, free: 4.797 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.35e-05/0.8345, allocations: 21.94 kB / 1.088 GB, free: 4.793 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.204e-05/0.8345, allocations: 24.5 kB / 1.088 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.8345, allocations: 3.125 kB / 1.088 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.8347, allocations: 49.23 kB / 1.088 GB, free: 4.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.945e-05/0.8347, allocations: 21.88 kB / 1.088 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.304e-05/0.8348, allocations: 26.83 kB / 1.088 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.8349, allocations: 64.14 kB / 1.088 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.8349, allocations: 0 / 1.088 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.453e-06/0.8349, allocations: 5.094 kB / 1.089 GB, free: 4.727 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.8349, allocations: 0.7969 kB / 1.089 GB, free: 4.727 MB / 0.8575 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.0004488/0.8354, allocations: 376.8 kB / 1.089 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.8354, allocations: 9.438 kB / 1.089 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.676e-05/0.8355, allocations: 39.14 kB / 1.089 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.945e-05/0.8355, allocations: 10.83 kB / 1.089 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.336e-05/0.8356, allocations: 162.2 kB / 1.089 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/0.8358, allocations: 281.4 kB / 1.089 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.8358, allocations: 6.781 kB / 1.089 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002454/0.8361, allocations: 88.91 kB / 1.089 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.8361, allocations: 0 / 1.089 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.8361, allocations: 5.156 kB / 1.089 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.8361, allocations: 1.781 kB / 1.089 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003724/0.8365, allocations: 129 kB / 1.09 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001372/0.8366, allocations: 179.3 kB / 1.09 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.8369, allocations: 98.41 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.8371, allocations: 49.73 kB / 1.09 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.8371, allocations: 9.281 kB / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.8371, allocations: 40.59 kB / 1.09 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.8371, allocations: 0 / 1.09 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005364/0.8377, allocations: 148 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/0.8377, allocations: 52.53 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.653e-05/0.8377, allocations: 90.38 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.8378, allocations: 26.39 kB / 1.09 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.075e-05/0.8378, allocations: 84.83 kB / 1.09 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.449e-05/0.8378, allocations: 35.33 kB / 1.09 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.023e-05/0.8379, allocations: 30.44 kB / 1.09 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.8379, allocations: 318.3 kB / 1.091 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.8381, allocations: 37.72 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.8382, allocations: 30.38 kB / 1.091 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.8385, allocations: 74.05 kB / 1.091 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.8385, allocations: 4 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000332/0.8388, allocations: 113.4 kB / 1.091 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.8389, allocations: 8.688 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.8389, allocations: 1.547 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.8389, allocations: 4.656 kB / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.8391, allocations: 26.72 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.8391, allocations: 1.531 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.324e-05/0.8391, allocations: 8.953 kB / 1.091 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.8392, allocations: 8.094 kB / 1.091 GB, free: 2.582 MB / 0.8575 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 5.864e-05/0.8392, allocations: 116.6 kB / 1.091 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.8392, allocations: 5.938 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.842e-05/0.8393, allocations: 13.61 kB / 1.091 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.8393, allocations: 1.688 kB / 1.091 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.8393, allocations: 0 / 1.091 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.8393, allocations: 5.562 kB / 1.091 GB, free: 2.441 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.775e-05/0.8394, allocations: 184.3 kB / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.8394, allocations: 0 / 1.091 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.8396, allocations: 32.28 kB / 1.091 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.8396, allocations: 4.938 kB / 1.091 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.8396, allocations: 10.48 kB / 1.091 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.8396, allocations: 1.891 kB / 1.091 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.8396, allocations: 0 / 1.091 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003517/0.84, allocations: 136.8 kB / 1.091 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.959e-05/0.84, allocations: 87.98 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.84, allocations: 5.094 kB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.454e-05/0.8401, allocations: 5.156 kB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.016e-05/0.8402, allocations: 13.34 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.8402, allocations: 9.266 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.328e-06/0.8402, allocations: 75.28 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.8402, allocations: 1.25 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002353/0.8404, allocations: 25.11 kB / 1.092 GB, free: 1.938 MB / 0.8575 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.0006444/0.8411, allocations: 0.7005 MB / 1.092 GB, free: 17.31 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003617/0.8415, allocations: 84.91 kB / 1.092 GB, free: 17.3 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.8415, allocations: 0 / 1.092 GB, free: 17.3 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.8416, allocations: 47.5 kB / 1.092 GB, free: 17.29 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.8418, allocations: 5.125 kB / 1.092 GB, free: 17.29 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004961/0.8423, allocations: 205.1 kB / 1.093 GB, free: 17.11 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002061/0.8425, allocations: 0.6879 MB / 1.093 GB, free: 16.41 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001696/0.8427, allocations: 38.47 kB / 1.093 GB, free: 16.41 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.205e-05/0.8427, allocations: 21.53 kB / 1.093 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of SimCode: time 2.61e-07/0.8428, allocations: 0.6875 kB / 1.093 GB, free: 16.39 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.8602, allocations: 2.026 MB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.612/8.472, allocations: 3.688 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches