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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00152/0.00152, allocations: 108 kB / 15.61 MB, free: 152 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.001872/0.001872, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.804/2.804, allocations: 472.7 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 62.84 kB / 0.912 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3386, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002997/0.3417, allocations: 1.532 MB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000462/0.3422, allocations: 179.5 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.711e-05/0.3422, allocations: 0 / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.124e-05/0.3423, allocations: 3.938 kB / 1.07 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.945e-05/0.3423, allocations: 7.922 kB / 1.07 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003331/0.3427, allocations: 47.89 kB / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.488e-05/0.3428, allocations: 35.92 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.575e-05/0.3429, allocations: 15.97 kB / 1.07 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.008e-05/0.3429, allocations: 19.94 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.059e-05/0.3429, allocations: 19.92 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.343, allocations: 4 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.3431, allocations: 47.94 kB / 1.07 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.13e-05/0.3431, allocations: 7.938 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.199e-05/0.3431, allocations: 15.92 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.3433, allocations: 59.86 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3433, allocations: 0 / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3433, allocations: 0 / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.3433, allocations: 4 kB / 1.07 GB, free: 8.398 MB / 0.8262 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.0004981/0.3438, allocations: 359.6 kB / 1.071 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3439, allocations: 15.97 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.616e-05/0.3439, allocations: 8.875 kB / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.344, allocations: 172.3 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.3441, allocations: 384 / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.3441, allocations: 4.375 kB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002/0.3443, allocations: 62.22 kB / 1.071 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.3443, allocations: 192 / 1.071 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.3443, allocations: 7.938 kB / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3443, allocations: 4 kB / 1.071 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.3445, allocations: 43.95 kB / 1.071 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003997/0.3449, allocations: 284.6 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003547/0.3453, allocations: 58.55 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.3454, allocations: 28.89 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000239/0.3457, allocations: 166.2 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.3457, allocations: 34.5 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.3457, allocations: 0 / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0003837/0.3461, allocations: 97.62 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.3461, allocations: 51.41 kB / 1.072 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.433e-05/0.3462, allocations: 109.8 kB / 1.072 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.3462, allocations: 29.7 kB / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.737e-05/0.3463, allocations: 80.14 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.3463, allocations: 11.91 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.575e-05/0.3464, allocations: 17.7 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3465, allocations: 326.8 kB / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.339e-05/0.3466, allocations: 19.97 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.98e-05/0.3467, allocations: 16.17 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.3468, allocations: 56.83 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3469, allocations: 0 / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002235/0.3471, allocations: 81.56 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.3471, allocations: 4 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3471, allocations: 0 / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.3471, allocations: 0 / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.166e-05/0.3472, allocations: 11.98 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.3472, allocations: 3.938 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.722e-05/0.3473, allocations: 7.984 kB / 1.072 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.3473, allocations: 4 kB / 1.072 GB, free: 6 MB / 0.8262 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.828e-05/0.3474, allocations: 113.8 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.3474, allocations: 7.938 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00026/0.3477, allocations: 85.55 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3477, allocations: 0 / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.3477, allocations: 4 kB / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3477, allocations: 0 / 1.072 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.3479, allocations: 169.6 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.3479, allocations: 7.922 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-05/0.348, allocations: 12 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.348, allocations: 0 / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.348, allocations: 3.984 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.348, allocations: 0 / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.348, allocations: 0 / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.3483, allocations: 175.3 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.46e-05/0.3484, allocations: 81.11 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.3484, allocations: 7.984 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.255e-05/0.3485, allocations: 4 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.936e-05/0.3485, allocations: 7.984 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.3486, allocations: 4 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.815e-05/0.3486, allocations: 83.36 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3486, allocations: 0 / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002459/0.3489, allocations: 19.98 kB / 1.073 GB, free: 5.121 MB / 0.8262 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.0001861/0.3491, allocations: 123.8 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002576/0.3493, allocations: 47.89 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3493, allocations: 0 / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.3494, allocations: 23.98 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.3497, allocations: 15.81 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003114/0.3501, allocations: 125.7 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.3503, allocations: 0.6807 MB / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.984e-05/0.3503, allocations: 4 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.76e-05/0.3504, allocations: 15.44 kB / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3504, allocations: 0 / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of Templates: time 0.003408/0.3538, allocations: 0.9798 MB / 1.075 GB, free: 3.055 MB / 0.8262 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches