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.001583/0.001583, allocations: 105.6 kB / 16.35 MB, free: 5.824 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.001853/0.001853, allocations: 190 kB / 17.29 MB, free: 5.48 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.517/2.517, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 63.88 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3031, allocations: 153 MB / 1.027 GB, free: 2.078 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003081/0.3062, allocations: 1.556 MB / 1.028 GB, free: 0.5156 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0004862/0.3067, allocations: 172.3 kB / 1.028 GB, free: 352 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.354e-05/0.3068, allocations: 0 / 1.028 GB, free: 352 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.061e-05/0.3069, allocations: 3.938 kB / 1.028 GB, free: 348 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.215e-05/0.3069, allocations: 7.922 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003637/0.3073, allocations: 47.89 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.067e-05/0.3074, allocations: 43.91 kB / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.3075, allocations: 15.98 kB / 1.028 GB, free: 232 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.809e-05/0.3076, allocations: 11.94 kB / 1.029 GB, free: 220 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.891e-05/0.3076, allocations: 15.92 kB / 1.029 GB, free: 204 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.3077, allocations: 4 kB / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.3078, allocations: 51.94 kB / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.958e-05/0.3078, allocations: 11.92 kB / 1.029 GB, free: 136 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.011e-05/0.3079, allocations: 15.94 kB / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.3081, allocations: 67.84 kB / 1.029 GB, free: 52 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3081, allocations: 0 / 1.029 GB, free: 52 kB / 0.795 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3081, allocations: 0 / 1.029 GB, free: 52 kB / 0.795 GB Notification: Performance of Transformations before backend: time 4.9e-06/0.3081, allocations: 0 / 1.029 GB, free: 52 kB / 0.795 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.0005366/0.3086, allocations: 360.5 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.3087, allocations: 12.02 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.803e-05/0.3087, allocations: 4.938 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.3089, allocations: 168.3 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.3089, allocations: 8.375 kB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.3089, allocations: 4.375 kB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002017/0.3091, allocations: 66.2 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.3092, allocations: 4.188 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.3092, allocations: 7.922 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.3092, allocations: 0 / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.3094, allocations: 47.89 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004603/0.3099, allocations: 280.7 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.3102, allocations: 62.53 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.712e-05/0.3103, allocations: 24.91 kB / 1.03 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000256/0.3106, allocations: 166.2 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.3106, allocations: 42.48 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3106, allocations: 0 / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003908/0.311, allocations: 97.55 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.3111, allocations: 51.41 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.961e-05/0.3112, allocations: 105.8 kB / 1.03 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.3112, allocations: 25.7 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.16e-05/0.3113, allocations: 92.12 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.713e-05/0.3113, allocations: 7.906 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-05/0.3113, allocations: 17.72 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3115, allocations: 318.8 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.407e-05/0.3116, allocations: 19.98 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.156e-05/0.3117, allocations: 19.98 kB / 1.031 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.3118, allocations: 48.75 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.3119, allocations: 0 / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002266/0.3121, allocations: 77.59 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.3121, allocations: 4 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.3121, allocations: 7.984 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.3121, allocations: 0 / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.268e-05/0.3122, allocations: 8 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3122, allocations: 3.984 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6e-05/0.3123, allocations: 11.91 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.687e-06/0.3123, allocations: 4 kB / 1.031 GB, free: 13.65 MB / 0.8106 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.872e-05/0.3124, allocations: 117.7 kB / 1.031 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.3125, allocations: 7.922 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.3127, allocations: 85.55 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3128, allocations: 0 / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3128, allocations: 0 / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3128, allocations: 4 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.313, allocations: 170 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.313, allocations: 0 / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.496e-05/0.3131, allocations: 11.98 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3131, allocations: 0 / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.3131, allocations: 4 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3131, allocations: 4 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3131, allocations: 0 / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002929/0.3134, allocations: 187.3 kB / 1.031 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-05/0.3135, allocations: 81.11 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.3135, allocations: 3.938 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.569e-05/0.3136, allocations: 7.984 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.307e-05/0.3136, allocations: 8 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.3136, allocations: 0 / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.674e-05/0.3137, allocations: 87.27 kB / 1.031 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3137, allocations: 8 kB / 1.032 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002544/0.314, allocations: 16 kB / 1.032 GB, free: 12.76 MB / 0.8106 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.0002045/0.3142, allocations: 115.2 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.3144, allocations: 47.89 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3144, allocations: 0 / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.3146, allocations: 27.97 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.3148, allocations: 15.88 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003093/0.3151, allocations: 121 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.3154, allocations: 0.6768 MB / 1.032 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.068e-05/0.3154, allocations: 4 kB / 1.032 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.904e-05/0.3155, allocations: 15.42 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.3155, allocations: 0 / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of Templates: time 0.003831/0.3193, allocations: 0.9811 MB / 1.033 GB, free: 10.7 MB / 0.8106 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 -s gbode -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