Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Examples.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_9_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.007266/0.007266, allocations: 100.7 kB / 15.73 MB, free: 6.043 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.001558/0.001558, allocations: 200.2 kB / 16.67 MB, free: 5.98 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.351/2.351, allocations: 390.3 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002068/0.002068, allocations: 64 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3235, allocations: 140.4 MB / 1.087 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003185/0.3267, allocations: 1.511 MB / 1.089 GB, free: 460 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0006217/0.3274, allocations: 176.3 kB / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.624e-05/0.3275, allocations: 4 kB / 1.089 GB, free: 276 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.521e-05/0.3275, allocations: 4 kB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.36e-05/0.3276, allocations: 7.875 kB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.328, allocations: 59.81 kB / 1.089 GB, free: 204 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.941e-05/0.3281, allocations: 31.91 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.3282, allocations: 15.98 kB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.57e-05/0.3283, allocations: 11.98 kB / 1.089 GB, free: 144 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.338e-05/0.3284, allocations: 19.92 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.3284, allocations: 7.938 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.3285, allocations: 51.95 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.92e-05/0.3286, allocations: 11.92 kB / 1.089 GB, free: 52 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.132e-05/0.3286, allocations: 11.94 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001937/0.3288, allocations: 67.78 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3288, allocations: 0 / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3288, allocations: 0 / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.909e-06/0.3288, allocations: 0 / 1.089 GB, free: 15.97 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005527/0.3294, allocations: 358.3 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.3295, allocations: 8.031 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.62e-05/0.3295, allocations: 38.75 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.129e-05/0.3295, allocations: 0.9375 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.3297, allocations: 177.1 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.3297, allocations: 384 / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.3298, allocations: 8.359 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.33, allocations: 62.17 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.33, allocations: 3.938 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.33, allocations: 0 / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.33, allocations: 4 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.3302, allocations: 51.94 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004176/0.3307, allocations: 280.8 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003278/0.331, allocations: 58.48 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.3311, allocations: 34.31 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002532/0.3314, allocations: 166.2 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.3314, allocations: 30.56 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3314, allocations: 0 / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0004268/0.3318, allocations: 97.53 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.3319, allocations: 59.34 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.231e-05/0.332, allocations: 109.8 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.332, allocations: 29.7 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.58e-05/0.3321, allocations: 84.08 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.3321, allocations: 7.906 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.011e-05/0.3321, allocations: 21.7 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3323, allocations: 314.8 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.551e-05/0.3324, allocations: 23.97 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.096e-05/0.3325, allocations: 19.98 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.3327, allocations: 52.75 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3327, allocations: 0 / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002278/0.3329, allocations: 77.59 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.3329, allocations: 4 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3329, allocations: 0 / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.333, allocations: 4 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.559e-05/0.333, allocations: 11.98 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.3331, allocations: 0 / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.44e-05/0.3331, allocations: 11.89 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.906e-06/0.3331, allocations: 4 kB / 1.092 GB, free: 13.54 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: 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 0.0001118/0.3333, allocations: 109.8 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.3333, allocations: 4 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002927/0.3336, allocations: 85.88 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.3336, allocations: 0 / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.3336, allocations: 7.938 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3336, allocations: 4.031 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.3338, allocations: 169.6 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3338, allocations: 3.984 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.43e-05/0.3339, allocations: 8 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.3339, allocations: 0 / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.779e-06/0.3339, allocations: 3.984 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.3339, allocations: 4 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3339, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.3342, allocations: 171.4 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.3343, allocations: 81.05 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.3343, allocations: 7.984 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-05/0.3344, allocations: 8 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.146e-05/0.3345, allocations: 11.98 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.3345, allocations: 7.938 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.317e-05/0.3345, allocations: 83.28 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3345, allocations: 3.938 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002513/0.3348, allocations: 19.98 kB / 1.092 GB, free: 12.65 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: 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.0006616/0.3355, allocations: 0.728 MB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002411/0.3357, allocations: 43.95 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3357, allocations: 0 / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.3358, allocations: 31.91 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.3361, allocations: 4 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.3376, allocations: 1.296 MB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.3379, allocations: 0.6768 MB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.472e-05/0.338, allocations: 4 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.207e-05/0.338, allocations: 19.44 kB / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of SimCode: time 2.01e-07/0.338, allocations: 0 / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.3576, allocations: 1.943 MB / 1.097 GB, free: 7.848 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/7.959, allocations: 7.859 kB / 1.097 GB, free: 7.844 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Binomial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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