Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.Binomial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_10_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.004488/0.004488, allocations: 102.4 kB / 15.73 MB, free: 6.441 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.001196/0.001197, allocations: 195.1 kB / 16.67 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.652/2.652, allocations: 437 MB / 0.7105 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 67.89 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2654, allocations: 151.6 MB / 1.166 GB, free: 7.281 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002592/0.2681, allocations: 1.534 MB / 1.168 GB, free: 5.727 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0004314/0.2685, allocations: 176.2 kB / 1.168 GB, free: 5.551 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.614e-05/0.2686, allocations: 0 / 1.168 GB, free: 5.551 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.764e-05/0.2686, allocations: 7.984 kB / 1.168 GB, free: 5.543 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.723e-05/0.2687, allocations: 3.938 kB / 1.168 GB, free: 5.539 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.269, allocations: 47.88 kB / 1.168 GB, free: 5.492 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.181e-05/0.2691, allocations: 43.86 kB / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.013e-05/0.2692, allocations: 15.98 kB / 1.168 GB, free: 5.434 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.305e-05/0.2692, allocations: 11.94 kB / 1.168 GB, free: 5.422 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.195e-05/0.2692, allocations: 19.91 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.427e-05/0.2693, allocations: 4 kB / 1.168 GB, free: 5.398 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.2694, allocations: 47.95 kB / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.426e-05/0.2694, allocations: 4 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.774e-05/0.2694, allocations: 23.84 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.2696, allocations: 75.78 kB / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.2696, allocations: 0 / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2696, allocations: 0 / 1.168 GB, free: 5.25 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.2696, allocations: 0 / 1.168 GB, free: 5.25 MB / 0.92 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.0004393/0.2701, allocations: 350.3 kB / 1.168 GB, free: 4.859 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2701, allocations: 8.031 kB / 1.168 GB, free: 4.852 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.228e-05/0.2701, allocations: 42.73 kB / 1.168 GB, free: 4.801 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.447e-05/0.2702, allocations: 0.9375 kB / 1.168 GB, free: 4.801 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.2703, allocations: 173.1 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.2703, allocations: 4.359 kB / 1.169 GB, free: 4.59 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.2703, allocations: 8.375 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.2705, allocations: 62.16 kB / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2705, allocations: 3.938 kB / 1.169 GB, free: 4.512 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.2706, allocations: 4 kB / 1.169 GB, free: 4.508 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2706, allocations: 0 / 1.169 GB, free: 4.508 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.2708, allocations: 43.95 kB / 1.169 GB, free: 4.465 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003483/0.2711, allocations: 284.7 kB / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003044/0.2714, allocations: 58.47 kB / 1.169 GB, free: 4.07 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.2715, allocations: 28.84 kB / 1.169 GB, free: 4.039 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002073/0.2718, allocations: 178.2 kB / 1.169 GB, free: 3.828 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.987e-05/0.2718, allocations: 34.56 kB / 1.169 GB, free: 3.785 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.2718, allocations: 0 / 1.169 GB, free: 3.785 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003646/0.2722, allocations: 85.64 kB / 1.169 GB, free: 3.695 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.2722, allocations: 55.34 kB / 1.169 GB, free: 3.629 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.389e-05/0.2723, allocations: 117.8 kB / 1.17 GB, free: 3.504 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.2723, allocations: 29.7 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.923e-05/0.2724, allocations: 88.12 kB / 1.17 GB, free: 3.379 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.2724, allocations: 7.906 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.2724, allocations: 13.72 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.926e-05/0.2725, allocations: 326.7 kB / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.353e-05/0.2726, allocations: 19.98 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.723e-05/0.2727, allocations: 11.98 kB / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.2729, allocations: 52.81 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2729, allocations: 0 / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002132/0.2731, allocations: 77.56 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2731, allocations: 11.92 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.2731, allocations: 0 / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.2731, allocations: 0 / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.192e-05/0.2732, allocations: 11.98 kB / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.309e-06/0.2732, allocations: 4 kB / 1.17 GB, free: 2.828 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.815e-05/0.2733, allocations: 8 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.2733, allocations: 4 kB / 1.17 GB, free: 2.816 MB / 0.92 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 6.768e-05/0.2734, allocations: 113.8 kB / 1.17 GB, free: 2.695 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.2734, allocations: 7.984 kB / 1.17 GB, free: 2.688 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002593/0.2737, allocations: 77.88 kB / 1.17 GB, free: 2.602 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2737, allocations: 8.031 kB / 1.17 GB, free: 2.594 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2737, allocations: 0 / 1.17 GB, free: 2.594 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.2737, allocations: 4 kB / 1.17 GB, free: 2.59 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.2739, allocations: 165.6 kB / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.2739, allocations: 7.938 kB / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.581e-05/0.274, allocations: 7.984 kB / 1.171 GB, free: 2.363 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.274, allocations: 4 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-06/0.274, allocations: 3.938 kB / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.274, allocations: 0 / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.274, allocations: 0 / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.2743, allocations: 183.3 kB / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.377e-05/0.2743, allocations: 81.05 kB / 1.171 GB, free: 2.062 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.2743, allocations: 4 kB / 1.171 GB, free: 2.059 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.552e-05/0.2744, allocations: 3.984 kB / 1.171 GB, free: 2.055 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/0.2745, allocations: 4 kB / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.2745, allocations: 0 / 1.171 GB, free: 2.051 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.854e-05/0.2745, allocations: 95.27 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2745, allocations: 0 / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002543/0.2748, allocations: 20 kB / 1.171 GB, free: 1.938 MB / 0.92 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.0005475/0.2753, allocations: 0.724 MB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002214/0.2756, allocations: 43.95 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2756, allocations: 0 / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.631e-05/0.2757, allocations: 27.92 kB / 1.172 GB, free: 1.117 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.276, allocations: 13.75 kB / 1.172 GB, free: 1.105 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.2773, allocations: 1.292 MB / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.2776, allocations: 0.6768 MB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.406e-05/0.2776, allocations: 4 kB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.048e-05/0.2777, allocations: 19.42 kB / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of SimCode: time 1.723e-06/0.2777, allocations: 0 / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01675/0.2944, allocations: 1.945 MB / 1.176 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.008/8.302, allocations: 3.984 kB / 1.176 GB, free: 13.13 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.Binomial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_Binomial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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