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.008083/0.008083, allocations: 101.2 kB / 15.73 MB, free: 6.445 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.001804/0.001804, allocations: 196.3 kB / 16.68 MB, free: 6.355 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.649/2.649, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 72.11 kB / 1.054 GB, free: 7.652 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3135, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003127/0.3167, allocations: 1.528 MB / 1.209 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000503/0.3172, allocations: 179.3 kB / 1.209 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.023e-05/0.3173, allocations: 4 kB / 1.209 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.029e-05/0.3173, allocations: 0 / 1.209 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.713e-05/0.3174, allocations: 3.938 kB / 1.209 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003766/0.3178, allocations: 51.88 kB / 1.209 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.466e-05/0.3179, allocations: 35.92 kB / 1.209 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.318, allocations: 15.98 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.276e-05/0.318, allocations: 19.92 kB / 1.209 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.488e-05/0.3181, allocations: 19.91 kB / 1.209 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.3181, allocations: 8 kB / 1.209 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.3182, allocations: 47.97 kB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.959e-05/0.3182, allocations: 7.984 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.934e-05/0.3183, allocations: 23.81 kB / 1.209 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.3184, allocations: 55.84 kB / 1.209 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3185, allocations: 0 / 1.209 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3185, allocations: 4 kB / 1.209 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.3185, allocations: 0 / 1.209 GB, free: 8.129 MB / 0.9669 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.0004955/0.319, allocations: 369.8 kB / 1.21 GB, free: 7.719 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.319, allocations: 12.62 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.319e-05/0.3191, allocations: 30.75 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.043e-05/0.3191, allocations: 8.844 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.3192, allocations: 160.4 kB / 1.21 GB, free: 7.465 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.3193, allocations: 4.375 kB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.3193, allocations: 4.375 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002009/0.3195, allocations: 70.16 kB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.3195, allocations: 7.938 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.3195, allocations: 0 / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3195, allocations: 4 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002018/0.3197, allocations: 43.95 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000401/0.3201, allocations: 280.7 kB / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.3205, allocations: 58.55 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.3206, allocations: 32.83 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002299/0.3209, allocations: 170.2 kB / 1.21 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.3209, allocations: 30.56 kB / 1.21 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3209, allocations: 0 / 1.21 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0004053/0.3213, allocations: 97.62 kB / 1.211 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.3213, allocations: 59.34 kB / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.7e-05/0.3214, allocations: 110 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.3215, allocations: 25.7 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.516e-05/0.3215, allocations: 92.05 kB / 1.211 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.53e-05/0.3215, allocations: 4.062 kB / 1.211 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.3216, allocations: 21.7 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.3217, allocations: 314.8 kB / 1.211 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.3218, allocations: 23.98 kB / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.177e-05/0.3219, allocations: 23.97 kB / 1.211 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.3221, allocations: 40.81 kB / 1.211 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3221, allocations: 0 / 1.211 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002412/0.3224, allocations: 77.56 kB / 1.211 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.3224, allocations: 7.938 kB / 1.211 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3224, allocations: 8 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3224, allocations: 3.938 kB / 1.211 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.964e-05/0.3225, allocations: 11.98 kB / 1.211 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.3225, allocations: 4.062 kB / 1.211 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.385e-05/0.3226, allocations: 7.984 kB / 1.211 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.3226, allocations: 0 / 1.211 GB, free: 5.684 MB / 0.9669 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 9.576e-05/0.3227, allocations: 117.8 kB / 1.211 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.3227, allocations: 0 / 1.211 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.323, allocations: 89.55 kB / 1.212 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.323, allocations: 0 / 1.212 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3231, allocations: 0 / 1.212 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3231, allocations: 0 / 1.212 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.3233, allocations: 169.5 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3233, allocations: 3.938 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.242e-05/0.3233, allocations: 11.98 kB / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3234, allocations: 0 / 1.212 GB, free: 5.227 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.3234, allocations: 7.984 kB / 1.212 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3234, allocations: 0 / 1.212 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3234, allocations: 0 / 1.212 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.3237, allocations: 175.5 kB / 1.212 GB, free: 5.031 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.14e-05/0.3237, allocations: 81.53 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.3238, allocations: 0 / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.484e-05/0.3239, allocations: 11.98 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.214e-05/0.3239, allocations: 11.98 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.3239, allocations: 0 / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.647e-05/0.324, allocations: 83.28 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.2e-07/0.324, allocations: 0 / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000269/0.3243, allocations: 27.92 kB / 1.212 GB, free: 4.801 MB / 0.9669 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.0006937/0.325, allocations: 0.7317 MB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000254/0.3252, allocations: 43.95 kB / 1.213 GB, free: 4 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3253, allocations: 3.938 kB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.3254, allocations: 31.91 kB / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.3257, allocations: 9.719 kB / 1.213 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.3273, allocations: 1.288 MB / 1.214 GB, free: 2.59 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.3276, allocations: 0.6846 MB / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.326e-05/0.3277, allocations: 0 / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.3277, allocations: 19.44 kB / 1.215 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.3277, allocations: 0 / 1.215 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/0.3485, allocations: 1.935 MB / 1.217 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.964/8.313, allocations: 6.844 kB / 1.217 GB, free: 15.99 MB / 0.9825 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,bin.y Variables in the result:bin.k,bin.n,bin.y,k.duration,k.height,k.offset,k.startTime,k.y,n.k,n.y,rea2Int.u,rea2Int.y,time