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.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.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.008523/0.008523, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001825/0.001825, allocations: 190.2 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.401/1.401, 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.724/2.724, allocations: 469.4 MB / 0.7422 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002351/0.002351, allocations: 63.91 kB / 1.064 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9304/0.9328, allocations: 159.1 MB / 1.22 GB, free: 2.25 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.00326/0.9361, allocations: 1.521 MB / 1.221 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0005526/0.9367, allocations: 183.4 kB / 1.221 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.115e-05/0.9368, allocations: 0 / 1.221 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.098e-05/0.9368, allocations: 7.938 kB / 1.221 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.988e-05/0.9369, allocations: 7.922 kB / 1.221 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004052/0.9373, allocations: 51.89 kB / 1.221 GB, free: 484 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.664e-05/0.9374, allocations: 35.91 kB / 1.222 GB, free: 448 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.9375, allocations: 8 kB / 1.222 GB, free: 440 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.098e-05/0.9376, allocations: 19.92 kB / 1.222 GB, free: 420 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.892e-05/0.9376, allocations: 19.92 kB / 1.222 GB, free: 400 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.9377, allocations: 4 kB / 1.222 GB, free: 396 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.9378, allocations: 51.94 kB / 1.222 GB, free: 344 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/0.9378, allocations: 8 kB / 1.222 GB, free: 336 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.297e-05/0.9379, allocations: 19.86 kB / 1.222 GB, free: 316 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.9381, allocations: 58.53 kB / 1.222 GB, free: 260 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.9381, allocations: 0 / 1.222 GB, free: 260 kB / 0.9356 GB Notification: Performance of FrontEnd: time 3.517e-06/0.9381, allocations: 7.922 kB / 1.222 GB, free: 252 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.531e-06/0.9381, allocations: 4 kB / 1.222 GB, free: 248 kB / 0.9356 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.0005696/0.9387, allocations: 356.3 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.9387, allocations: 12.62 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/0.9388, allocations: 34.75 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.553e-05/0.9388, allocations: 8.875 kB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.939, allocations: 180.2 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.939, allocations: 4.375 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.417e-05/0.939, allocations: 384 / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.9392, allocations: 62.22 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.9392, allocations: 7.938 kB / 1.222 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.9393, allocations: 0 / 1.222 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.9393, allocations: 0 / 1.222 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.9395, allocations: 47.95 kB / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.9399, allocations: 272.8 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.9402, allocations: 62.52 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.9403, allocations: 28.91 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002277/0.9406, allocations: 166.2 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.9406, allocations: 38.55 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.9406, allocations: 0 / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0003957/0.941, allocations: 101.5 kB / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.095e-05/0.941, allocations: 55.41 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.24e-05/0.9411, allocations: 109.8 kB / 1.223 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.9412, allocations: 25.7 kB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.049e-05/0.9412, allocations: 96.06 kB / 1.223 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.595e-05/0.9412, allocations: 3.953 kB / 1.223 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.299e-05/0.9413, allocations: 17.72 kB / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.9415, allocations: 314.8 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.9416, allocations: 23.97 kB / 1.224 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.9417, allocations: 23.98 kB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.9419, allocations: 48.75 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.9419, allocations: 0 / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002493/0.9422, allocations: 73.61 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.9422, allocations: 4 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.9422, allocations: 4 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.9423, allocations: 4 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.74e-05/0.9423, allocations: 15.98 kB / 1.224 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.9424, allocations: 0 / 1.224 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.126e-05/0.9424, allocations: 11.92 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-06/0.9424, allocations: 0 / 1.224 GB, free: 13.8 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: 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.63e-05/0.9425, allocations: 114.3 kB / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.9426, allocations: 0 / 1.224 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002818/0.9429, allocations: 97.42 kB / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.9429, allocations: 0 / 1.224 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.9429, allocations: 3.984 kB / 1.224 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.9429, allocations: 0 / 1.224 GB, free: 13.56 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.9431, allocations: 173.6 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.9431, allocations: 0 / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.032e-05/0.9432, allocations: 15.98 kB / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.9432, allocations: 0 / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.9432, allocations: 0 / 1.224 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.9432, allocations: 4 kB / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.9432, allocations: 0 / 1.224 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.9435, allocations: 179.7 kB / 1.224 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.9435, allocations: 81.11 kB / 1.224 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.9436, allocations: 0 / 1.224 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.619e-05/0.9436, allocations: 4 kB / 1.224 GB, free: 13.03 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-05/0.9437, allocations: 15.98 kB / 1.224 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.9437, allocations: 4 kB / 1.224 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.759e-05/0.9438, allocations: 87.27 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9438, allocations: 4 kB / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002571/0.944, allocations: 15.94 kB / 1.225 GB, free: 12.91 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: 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.0006206/0.9447, allocations: 0.7202 MB / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002463/0.9449, allocations: 55.88 kB / 1.225 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.9449, allocations: 0 / 1.225 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.9451, allocations: 19.98 kB / 1.225 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.9454, allocations: 4 kB / 1.225 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001562/0.9469, allocations: 1.295 MB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.9472, allocations: 0.6846 MB / 1.227 GB, free: 9.996 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.514e-05/0.9473, allocations: 4 kB / 1.227 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.657e-05/0.9473, allocations: 19.42 kB / 1.227 GB, free: 9.973 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.9473, allocations: 0 / 1.227 GB, free: 9.973 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02106/0.9684, allocations: 1.932 MB / 1.229 GB, free: 8.117 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.651/8.619, allocations: 13.67 kB / 1.229 GB, free: 8.109 MB / 0.9512 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