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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.008439/0.008439, allocations: 99.45 kB / 15.73 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.001554/0.001554, allocations: 191.9 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.672/2.672, allocations: 469.4 MB / 0.7422 GB, free: 3.496 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 67.91 kB / 1.064 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8296/0.831, allocations: 159.1 MB / 1.22 GB, free: 2.246 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001797/0.8328, allocations: 0.5782 MB / 1.22 GB, free: 1.668 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003994/0.8332, allocations: 109.6 kB / 1.22 GB, free: 1.562 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.96e-05/0.8333, allocations: 4 kB / 1.22 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.982e-05/0.8333, allocations: 3.938 kB / 1.22 GB, free: 1.555 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.604e-06/0.8333, allocations: 3.938 kB / 1.22 GB, free: 1.551 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.8337, allocations: 39.89 kB / 1.221 GB, free: 1.512 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.8339, allocations: 63.92 kB / 1.221 GB, free: 1.449 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.083e-05/0.8339, allocations: 4 kB / 1.221 GB, free: 1.445 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.436e-05/0.834, allocations: 19.98 kB / 1.221 GB, free: 1.426 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.344e-05/0.834, allocations: 23.95 kB / 1.221 GB, free: 1.402 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.942e-05/0.8341, allocations: 4 kB / 1.221 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.8342, allocations: 47.95 kB / 1.221 GB, free: 1.352 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.669e-05/0.8343, allocations: 27.91 kB / 1.221 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.8343, allocations: 19.92 kB / 1.221 GB, free: 1.305 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.8345, allocations: 67.83 kB / 1.221 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.8345, allocations: 0 / 1.221 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.674e-06/0.8345, allocations: 0 / 1.221 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.8345, allocations: 0 / 1.221 GB, free: 1.238 MB / 0.9356 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.0006062/0.8351, allocations: 379 kB / 1.221 GB, free: 0.8203 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.8352, allocations: 12.62 kB / 1.221 GB, free: 0.8086 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.737e-05/0.8353, allocations: 38.75 kB / 1.221 GB, free: 0.7617 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.668e-05/0.8353, allocations: 8.938 kB / 1.221 GB, free: 0.7539 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.8354, allocations: 164.4 kB / 1.221 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002978/0.8357, allocations: 285.5 kB / 1.222 GB, free: 220 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.8358, allocations: 4.375 kB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.836, allocations: 81.89 kB / 1.222 GB, free: 128 kB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.836, allocations: 0 / 1.222 GB, free: 128 kB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.8361, allocations: 4 kB / 1.222 GB, free: 124 kB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.8361, allocations: 4 kB / 1.222 GB, free: 120 kB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.8365, allocations: 139.8 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000188/0.8367, allocations: 185.5 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.837, allocations: 98.45 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.8372, allocations: 40.84 kB / 1.222 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.8372, allocations: 0 / 1.222 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.8372, allocations: 38.5 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.8373, allocations: 0 / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0006103/0.8379, allocations: 149.9 kB / 1.222 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.8379, allocations: 55.41 kB / 1.222 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.319e-05/0.838, allocations: 93.84 kB / 1.222 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.838, allocations: 29.7 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.191e-05/0.838, allocations: 80.14 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.53e-05/0.8381, allocations: 39.64 kB / 1.223 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.302e-05/0.8382, allocations: 29.64 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.8383, allocations: 318.8 kB / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.8384, allocations: 31.97 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.8386, allocations: 31.98 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.8389, allocations: 77.41 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.8389, allocations: 0 / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003479/0.8392, allocations: 121.5 kB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.8393, allocations: 7.938 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.8393, allocations: 0 / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.8393, allocations: 0 / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.8394, allocations: 27.92 kB / 1.223 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.8395, allocations: 0 / 1.223 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.98e-05/0.8395, allocations: 15.98 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.8396, allocations: 7.938 kB / 1.223 GB, free: 14.4 MB / 0.9512 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.826e-05/0.8397, allocations: 114.4 kB / 1.223 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.119e-05/0.8397, allocations: 11.88 kB / 1.223 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.531e-05/0.8397, allocations: 11.97 kB / 1.223 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.8398, allocations: 0 / 1.223 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.8398, allocations: 0 / 1.223 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.8398, allocations: 0 / 1.223 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.8399, allocations: 185.6 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.8399, allocations: 4 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.8401, allocations: 31.91 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.8401, allocations: 3.938 kB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.8401, allocations: 4 kB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.8401, allocations: 0 / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.8401, allocations: 0 / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003782/0.8405, allocations: 145 kB / 1.224 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.05e-05/0.8406, allocations: 85.05 kB / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.8406, allocations: 4 kB / 1.224 GB, free: 13.71 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.352e-05/0.8407, allocations: 4 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.8407, allocations: 15.97 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.8407, allocations: 4 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.02e-05/0.8408, allocations: 75.28 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2e-07/0.8408, allocations: 0 / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002442/0.841, allocations: 23.94 kB / 1.224 GB, free: 13.59 MB / 0.9512 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.0007626/0.8418, allocations: 0.702 MB / 1.225 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000393/0.8422, allocations: 87.88 kB / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.8422, allocations: 0 / 1.225 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.8424, allocations: 43.97 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001438/0.8425, allocations: 7.938 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005287/0.8431, allocations: 206.3 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.8433, allocations: 0.6922 MB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002029/0.8435, allocations: 39.95 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.042e-05/0.8436, allocations: 19.42 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of SimCode: time 5.51e-07/0.8436, allocations: 0 / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01969/0.8633, allocations: 2.04 MB / 1.228 GB, free: 9.754 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.728/8.591, allocations: 15.12 kB / 1.228 GB, free: 9.742 MB / 0.9512 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