Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Utilities.Math.Functions.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.1.|bin.2.|bin.3.|bin.4.|bin.5.|bin.6.|bin.7.|bin.8.|bin.9.|bin.10.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial") translateModel(Buildings.Utilities.Math.Functions.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.1.|bin.2.|bin.3.|bin.4.|bin.5.|bin.6.|bin.7.|bin.8.|bin.9.|bin.10.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 99.58 kB / 16.02 MB, free: 72 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.001386/0.001386, allocations: 181.6 kB / 16.92 MB, free: 6.918 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.419/1.419, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.377/2.377, allocations: 390.9 MB / 0.667 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.0003479, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6875/0.6879, allocations: 142.4 MB / 0.9557 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.0007129/0.6886, allocations: 328.6 kB / 0.956 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003828/0.689, allocations: 106.9 kB / 0.9561 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.371e-05/0.6891, allocations: 0 / 0.9561 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.537e-05/0.6891, allocations: 0 / 0.9561 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.6891, allocations: 0 / 0.9561 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.6894, allocations: 24.42 kB / 0.9562 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000109/0.6895, allocations: 60.17 kB / 0.9562 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.6896, allocations: 9.203 kB / 0.9562 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.01e-05/0.6896, allocations: 21.67 kB / 0.9562 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.442e-05/0.6897, allocations: 28.89 kB / 0.9563 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.6897, allocations: 6.562 kB / 0.9563 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.6898, allocations: 42.12 kB / 0.9563 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.6899, allocations: 20.59 kB / 0.9563 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.6899, allocations: 53.27 kB / 0.9564 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.6901, allocations: 41.78 kB / 0.9564 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.6901, allocations: 1.219 kB / 0.9564 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.034e-06/0.6901, allocations: 0 / 0.9564 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.6901, allocations: 3.938 kB / 0.9564 GB, free: 7.172 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004134/0.6905, allocations: 356.2 kB / 0.9568 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.6906, allocations: 8.969 kB / 0.9568 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.6906, allocations: 9.844 kB / 0.9568 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.118e-05/0.6907, allocations: 167.5 kB / 0.9569 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002146/0.6909, allocations: 279.7 kB / 0.9572 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.907e-05/0.6909, allocations: 7.25 kB / 0.9572 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.6912, allocations: 77.59 kB / 0.9573 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.6912, allocations: 3.938 kB / 0.9573 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.6912, allocations: 1.406 kB / 0.9573 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.6912, allocations: 1.344 kB / 0.9573 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003407/0.6916, allocations: 135.7 kB / 0.9574 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.6917, allocations: 186.7 kB / 0.9576 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.692, allocations: 95.56 kB / 0.9577 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.6922, allocations: 46.83 kB / 0.9577 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.6922, allocations: 0.9688 kB / 0.9577 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.414e-05/0.6922, allocations: 31.69 kB / 0.9578 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.6922, allocations: 1.438 kB / 0.9578 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0005362/0.6928, allocations: 155.2 kB / 0.9579 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.6928, allocations: 56.94 kB / 0.958 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.026e-05/0.6928, allocations: 89.86 kB / 0.9581 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.6929, allocations: 30.89 kB / 0.9581 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.08e-05/0.6929, allocations: 80.14 kB / 0.9582 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.171e-05/0.6929, allocations: 40.59 kB / 0.9582 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-05/0.693, allocations: 16 kB / 0.9582 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.91e-05/0.693, allocations: 316.8 kB / 0.9585 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.6932, allocations: 35.22 kB / 0.9586 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.6933, allocations: 30.03 kB / 0.9586 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.6936, allocations: 74.16 kB / 0.9587 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.6936, allocations: 1.031 kB / 0.9587 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003155/0.6939, allocations: 115.5 kB / 0.9588 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.6939, allocations: 9.312 kB / 0.9588 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.6939, allocations: 7.922 kB / 0.9588 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.694, allocations: 1.812 kB / 0.9588 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.6941, allocations: 25.84 kB / 0.9588 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.6941, allocations: 4 kB / 0.9588 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.563e-05/0.6942, allocations: 11.5 kB / 0.9588 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.6942, allocations: 3.625 kB / 0.9588 GB, free: 4.895 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 5.989e-05/0.6943, allocations: 121.5 kB / 0.9589 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.336e-05/0.6943, allocations: 6.156 kB / 0.959 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.501e-05/0.6943, allocations: 7.969 kB / 0.959 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.6943, allocations: 2.281 kB / 0.959 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.6944, allocations: 0 / 0.959 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.6944, allocations: 0 / 0.959 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.516e-05/0.6945, allocations: 188.7 kB / 0.9591 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.6945, allocations: 0 / 0.9591 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.6946, allocations: 25.02 kB / 0.9592 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.6946, allocations: 5.281 kB / 0.9592 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.6946, allocations: 5.297 kB / 0.9592 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.6946, allocations: 1.25 kB / 0.9592 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6946, allocations: 0 / 0.9592 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003435/0.695, allocations: 151.1 kB / 0.9593 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.678e-05/0.695, allocations: 78.48 kB / 0.9594 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.695, allocations: 9.203 kB / 0.9594 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.071e-05/0.6951, allocations: 3.375 kB / 0.9594 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.798e-05/0.6952, allocations: 13.42 kB / 0.9594 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.6952, allocations: 6.391 kB / 0.9594 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.34e-05/0.6952, allocations: 75.28 kB / 0.9595 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6952, allocations: 0 / 0.9595 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002407/0.6955, allocations: 20.78 kB / 0.9595 GB, free: 4.215 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0001872/0.6956, allocations: 125.2 kB / 0.9596 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003435/0.696, allocations: 91.66 kB / 0.9597 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.696, allocations: 0 / 0.9597 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.6962, allocations: 42.27 kB / 0.9598 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.6963, allocations: 6.562 kB / 0.9598 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003673/0.6967, allocations: 205.8 kB / 0.96 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.6968, allocations: 0.6831 MB / 0.9606 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.721e-05/0.6969, allocations: 23.23 kB / 0.9607 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of SimCode: time 8.32e-07/0.6969, allocations: 0 / 0.9607 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of Templates: time 0.00293/0.6998, allocations: 1.311 MB / 0.9619 GB, free: 2.492 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches