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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.422/2.422, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 184 kB / 0.4902 GB, free: 2.246 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.607/1.607, allocations: 223.1 MB / 0.7992 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001167, allocations: 98.39 kB / 0.9396 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003724, allocations: 11 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2854, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2009/0.4864, allocations: 150.7 MB / 1.376 GB, free: 2.812 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.4867, allocations: 67.97 kB / 1.376 GB, free: 2.746 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004581/0.4913, allocations: 1.344 MB / 1.378 GB, free: 1.395 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.194e-06/0.4913, allocations: 0 / 1.378 GB, free: 1.395 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.379e-05/0.4913, allocations: 4 kB / 1.378 GB, free: 1.391 MB / 0.8698 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.00048/0.4918, allocations: 363.2 kB / 1.378 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.4919, allocations: 12.56 kB / 1.378 GB, free: 0.9766 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.59e-05/0.4919, allocations: 4 kB / 1.378 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.4921, allocations: 171 kB / 1.378 GB, free: 0.7656 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/0.4921, allocations: 0 / 1.378 GB, free: 0.7656 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.586e-05/0.4921, allocations: 8 kB / 1.378 GB, free: 0.7578 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.4924, allocations: 65.64 kB / 1.378 GB, free: 0.6875 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.4924, allocations: 0 / 1.378 GB, free: 0.6875 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.4924, allocations: 4 kB / 1.378 GB, free: 0.6836 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.4924, allocations: 4 kB / 1.378 GB, free: 0.6797 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.4926, allocations: 55.89 kB / 1.378 GB, free: 0.625 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004982/0.4932, allocations: 280.8 kB / 1.379 GB, free: 308 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.4935, allocations: 66.47 kB / 1.379 GB, free: 232 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004241/0.494, allocations: 405.7 kB / 1.379 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.494, allocations: 30.56 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 1.383e-06/0.494, allocations: 4 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0004396/0.4945, allocations: 109.6 kB / 1.379 GB, free: 15.58 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.4945, allocations: 59.36 kB / 1.379 GB, free: 15.51 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.396e-05/0.4946, allocations: 106.6 kB / 1.379 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.4946, allocations: 29.7 kB / 1.379 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.653e-05/0.4947, allocations: 84.14 kB / 1.38 GB, free: 15.28 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.4947, allocations: 7.844 kB / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.4947, allocations: 0 / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4949, allocations: 322.8 kB / 1.38 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.495, allocations: 31.86 kB / 1.38 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.838e-05/0.4951, allocations: 23.97 kB / 1.38 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.619e-05/0.4952, allocations: 23.98 kB / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4952, allocations: 0 / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002483/0.4954, allocations: 93.88 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.4955, allocations: 4 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.4955, allocations: 0 / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.4955, allocations: 48 / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.765e-05/0.4956, allocations: 19.97 kB / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.4956, allocations: 0 / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.087e-05/0.4957, allocations: 15.94 kB / 1.38 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.4957, allocations: 4 kB / 1.38 GB, free: 14.73 MB / 0.8855 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,bin.k) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.58e-05/0.4958, allocations: 109.8 kB / 1.38 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.041e-05/0.4959, allocations: 11.84 kB / 1.38 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002966/0.4962, allocations: 97.55 kB / 1.38 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.4962, allocations: 3.984 kB / 1.38 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4962, allocations: 0 / 1.38 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4962, allocations: 0 / 1.38 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.4964, allocations: 173.7 kB / 1.38 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4964, allocations: 0 / 1.38 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.788e-05/0.4965, allocations: 15.98 kB / 1.38 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.4965, allocations: 4 kB / 1.38 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.4965, allocations: 0 / 1.38 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.4965, allocations: 0 / 1.38 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4965, allocations: 0 / 1.38 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.4968, allocations: 191.4 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.424e-05/0.4969, allocations: 85.02 kB / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.4969, allocations: 0 / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.374e-05/0.497, allocations: 11.94 kB / 1.381 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.883e-05/0.4971, allocations: 3.984 kB / 1.381 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/0.4971, allocations: 4 kB / 1.381 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.055e-05/0.4972, allocations: 87.58 kB / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4972, allocations: 0 / 1.381 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002925/0.4975, allocations: 24 kB / 1.381 GB, free: 13.82 MB / 0.8855 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 (bin.y,bin.k) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004413/0.4979, allocations: 116 kB / 1.381 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003125/0.4983, allocations: 55.89 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/0.4983, allocations: 4 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.4984, allocations: 35.91 kB / 1.381 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.4988, allocations: 11.95 kB / 1.381 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000479/0.4992, allocations: 124.7 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.4996, allocations: 0.6926 MB / 1.382 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.296e-05/0.4997, allocations: 4 kB / 1.382 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.071e-05/0.4997, allocations: 7.438 kB / 1.382 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of SimCode: time 4.11e-07/0.4997, allocations: 3.938 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of Templates: time 0.004006/0.5037, allocations: 0.8232 MB / 1.383 GB, free: 11.89 MB / 0.8855 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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches