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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008155/0.0008155, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009997/0.0009998, allocations: 180.1 kB / 16.92 MB, free: 6.914 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.356/1.356, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.638/2.638, allocations: 443.2 MB / 0.7181 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004011/0.0004013, allocations: 8.594 kB / 0.8801 GB, free: 42.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3149/0.3153, allocations: 155.2 MB / 1.032 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.001778/0.3171, allocations: 1.259 MB / 1.033 GB, free: 3.449 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00051/0.3177, allocations: 184.7 kB / 1.033 GB, free: 3.266 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.835e-05/0.3177, allocations: 0 / 1.033 GB, free: 3.266 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.481e-05/0.3178, allocations: 7.922 kB / 1.033 GB, free: 3.258 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.368e-05/0.3178, allocations: 3.984 kB / 1.033 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002891/0.3181, allocations: 39.91 kB / 1.033 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.361e-05/0.3182, allocations: 31.92 kB / 1.033 GB, free: 3.184 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.686e-05/0.3183, allocations: 15.98 kB / 1.033 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.231e-05/0.3183, allocations: 15.92 kB / 1.033 GB, free: 3.152 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.991e-05/0.3184, allocations: 15.92 kB / 1.033 GB, free: 3.137 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.3184, allocations: 4 kB / 1.033 GB, free: 3.133 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.3185, allocations: 47.95 kB / 1.033 GB, free: 3.086 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.288e-05/0.3186, allocations: 0 / 1.033 GB, free: 3.086 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.201e-05/0.3186, allocations: 45.56 kB / 1.033 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.3187, allocations: 35.92 kB / 1.033 GB, free: 3 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3187, allocations: 0 / 1.033 GB, free: 3 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3187, allocations: 0 / 1.033 GB, free: 3 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.3187, allocations: 0 / 1.033 GB, free: 3 MB / 0.7794 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.0004882/0.3192, allocations: 359.7 kB / 1.034 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3193, allocations: 8.031 kB / 1.034 GB, free: 2.59 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.191e-05/0.3193, allocations: 8.828 kB / 1.034 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.3195, allocations: 164.4 kB / 1.034 GB, free: 2.383 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.3195, allocations: 384 / 1.034 GB, free: 2.383 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.3195, allocations: 8.375 kB / 1.034 GB, free: 2.375 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002102/0.3197, allocations: 74.16 kB / 1.034 GB, free: 2.297 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.3198, allocations: 8.125 kB / 1.034 GB, free: 2.289 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3198, allocations: 3.938 kB / 1.034 GB, free: 2.285 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-06/0.3198, allocations: 4 kB / 1.034 GB, free: 2.281 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002057/0.32, allocations: 55.95 kB / 1.034 GB, free: 2.227 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004243/0.3204, allocations: 284.7 kB / 1.034 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003323/0.3208, allocations: 66.47 kB / 1.034 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.3209, allocations: 36.89 kB / 1.034 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002245/0.3211, allocations: 166.2 kB / 1.034 GB, free: 1.586 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3212, allocations: 38.55 kB / 1.035 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.3212, allocations: 0 / 1.035 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004069/0.3216, allocations: 109.6 kB / 1.035 GB, free: 1.426 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.3216, allocations: 55.34 kB / 1.035 GB, free: 1.359 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.227e-05/0.3217, allocations: 105.8 kB / 1.035 GB, free: 1.246 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.3218, allocations: 25.7 kB / 1.035 GB, free: 1.215 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.001e-05/0.3218, allocations: 100 kB / 1.035 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.3218, allocations: 3.906 kB / 1.035 GB, free: 1.109 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.521e-05/0.3219, allocations: 9.719 kB / 1.035 GB, free: 1.094 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.322, allocations: 326.7 kB / 1.035 GB, free: 0.7656 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.942e-05/0.3221, allocations: 27.97 kB / 1.035 GB, free: 0.7383 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.82e-05/0.3222, allocations: 19.98 kB / 1.035 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.3224, allocations: 56.81 kB / 1.035 GB, free: 0.6602 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3224, allocations: 4 kB / 1.035 GB, free: 0.6562 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002466/0.3227, allocations: 89.59 kB / 1.035 GB, free: 0.5625 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3227, allocations: 4 kB / 1.035 GB, free: 0.5586 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3227, allocations: 0 / 1.035 GB, free: 0.5586 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.3227, allocations: 0 / 1.035 GB, free: 0.5586 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.446e-05/0.3228, allocations: 15.98 kB / 1.035 GB, free: 0.543 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.3228, allocations: 0 / 1.035 GB, free: 0.543 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.324e-05/0.3229, allocations: 15.98 kB / 1.035 GB, free: 0.5273 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.3229, allocations: 0 / 1.035 GB, free: 0.5273 MB / 0.7794 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.047e-05/0.323, allocations: 113.8 kB / 1.036 GB, free: 416 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/0.323, allocations: 7.906 kB / 1.036 GB, free: 408 kB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002704/0.3233, allocations: 93.55 kB / 1.036 GB, free: 304 kB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3233, allocations: 0 / 1.036 GB, free: 304 kB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.3233, allocations: 3.938 kB / 1.036 GB, free: 300 kB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3233, allocations: 7.922 kB / 1.036 GB, free: 292 kB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.3235, allocations: 169.6 kB / 1.036 GB, free: 72 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3235, allocations: 0 / 1.036 GB, free: 72 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.056e-05/0.3236, allocations: 15.98 kB / 1.036 GB, free: 56 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.3236, allocations: 4 kB / 1.036 GB, free: 52 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.3236, allocations: 0 / 1.036 GB, free: 52 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3237, allocations: 0 / 1.036 GB, free: 52 kB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3237, allocations: 0 / 1.036 GB, free: 52 kB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.324, allocations: 183.8 kB / 1.036 GB, free: 15.86 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.324, allocations: 89 kB / 1.036 GB, free: 15.75 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.324, allocations: 0 / 1.036 GB, free: 15.75 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.215e-05/0.3241, allocations: 8 kB / 1.036 GB, free: 15.74 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.163e-05/0.3242, allocations: 8.031 kB / 1.036 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.3242, allocations: 3.984 kB / 1.036 GB, free: 15.73 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.991e-05/0.3243, allocations: 87.58 kB / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.783e-06/0.3243, allocations: 0 / 1.036 GB, free: 15.64 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002435/0.3245, allocations: 31.88 kB / 1.036 GB, free: 15.61 MB / 0.795 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.0001782/0.3247, allocations: 115.2 kB / 1.036 GB, free: 15.49 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002485/0.325, allocations: 47.95 kB / 1.036 GB, free: 15.44 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.325, allocations: 8 kB / 1.036 GB, free: 15.43 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.3251, allocations: 23.98 kB / 1.036 GB, free: 15.41 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.3253, allocations: 15.92 kB / 1.036 GB, free: 15.39 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003169/0.3257, allocations: 162.1 kB / 1.037 GB, free: 15.21 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.326, allocations: 0.6848 MB / 1.037 GB, free: 14.5 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.326, allocations: 11.44 kB / 1.037 GB, free: 14.48 MB / 0.795 GB Notification: Performance of SimCode: time 3.7e-07/0.326, allocations: 0 / 1.037 GB, free: 14.48 MB / 0.795 GB Notification: Performance of Templates: time 0.002445/0.3285, allocations: 0.9623 MB / 1.038 GB, free: 13.52 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches