Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001106/0.001106, allocations: 100.1 kB / 15.88 MB, free: 12 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.001104/0.001104, allocations: 200.5 kB / 16.79 MB, free: 6.809 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.346/1.346, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.548/2.548, allocations: 437 MB / 0.7106 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 75.83 kB / 0.8692 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5898/0.5913, allocations: 151.6 MB / 1.017 GB, free: 2.824 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.00203/0.5934, allocations: 0.6567 MB / 1.018 GB, free: 2.164 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004587/0.5939, allocations: 107.7 kB / 1.018 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.468e-05/0.5939, allocations: 0 / 1.018 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.174e-05/0.594, allocations: 3.984 kB / 1.018 GB, free: 2.055 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.059e-06/0.594, allocations: 11.88 kB / 1.018 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.5943, allocations: 19.98 kB / 1.018 GB, free: 2.023 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.5944, allocations: 59.92 kB / 1.018 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.655e-05/0.5945, allocations: 0 / 1.018 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.143e-05/0.5945, allocations: 23.97 kB / 1.018 GB, free: 1.941 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.781e-05/0.5946, allocations: 27.97 kB / 1.018 GB, free: 1.914 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.5946, allocations: 4 kB / 1.018 GB, free: 1.91 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.5948, allocations: 47.95 kB / 1.018 GB, free: 1.863 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.01e-05/0.5948, allocations: 19.97 kB / 1.018 GB, free: 1.844 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.619e-05/0.5949, allocations: 23.86 kB / 1.018 GB, free: 1.82 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001163/0.595, allocations: 39.92 kB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.595, allocations: 4 kB / 1.018 GB, free: 1.777 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.302e-06/0.595, allocations: 0 / 1.018 GB, free: 1.777 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.157e-06/0.595, allocations: 0 / 1.018 GB, free: 1.777 MB / 0.7637 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.0005366/0.5956, allocations: 375.5 kB / 1.019 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.5956, allocations: 12.03 kB / 1.019 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.269e-05/0.5957, allocations: 4.938 kB / 1.019 GB, free: 1.344 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.5958, allocations: 174.3 kB / 1.019 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/0.5961, allocations: 277.6 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.5961, allocations: 8.375 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.5963, allocations: 74.2 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.5964, allocations: 7.875 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.5964, allocations: 4 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.5964, allocations: 0 / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003502/0.5967, allocations: 131.8 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001931/0.5969, allocations: 189.5 kB / 1.02 GB, free: 352 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.5972, allocations: 94.47 kB / 1.02 GB, free: 248 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.5974, allocations: 40.83 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.5974, allocations: 7.984 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.5975, allocations: 34.5 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=11): time 1.362e-06/0.5975, allocations: 0 / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of matching and sorting (n=11): time 0.0005569/0.598, allocations: 161.8 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.5981, allocations: 51.41 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.671e-05/0.5981, allocations: 89.86 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.5981, allocations: 25.7 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.421e-05/0.5982, allocations: 80.14 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.756e-05/0.5982, allocations: 35.45 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.216e-05/0.5983, allocations: 33.7 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.5984, allocations: 314.8 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.5986, allocations: 35.98 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.5987, allocations: 32.41 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.599, allocations: 80.91 kB / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.599, allocations: 0 / 1.021 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003532/0.5993, allocations: 117.6 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.5994, allocations: 7.938 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.5994, allocations: 0 / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.5994, allocations: 3.984 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.5996, allocations: 27.98 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.5996, allocations: 0 / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.021e-05/0.5996, allocations: 7.906 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.5997, allocations: 7.984 kB / 1.021 GB, free: 14.99 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: 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 9.547e-05/0.5998, allocations: 114.4 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.779e-05/0.5998, allocations: 3.938 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.077e-05/0.5998, allocations: 15.95 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.5998, allocations: 4 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.5999, allocations: 0 / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.5999, allocations: 7.938 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001473/0.6, allocations: 177.5 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.6, allocations: 7.938 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.6002, allocations: 23.98 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.6002, allocations: 3.938 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.6002, allocations: 7.984 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.6002, allocations: 4 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6002, allocations: 0 / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003542/0.6006, allocations: 137.1 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.533e-05/0.6006, allocations: 81.02 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.665e-05/0.6006, allocations: 11.94 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.537e-05/0.6007, allocations: 3.938 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.084e-05/0.6008, allocations: 15.97 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.6008, allocations: 4 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.973e-05/0.6008, allocations: 75.28 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.804e-06/0.6008, allocations: 7.938 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002337/0.6011, allocations: 23.94 kB / 1.021 GB, free: 14.18 MB / 0.7794 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.0002059/0.6013, allocations: 125 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003542/0.6016, allocations: 83.88 kB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.6017, allocations: 0 / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.6018, allocations: 47.97 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.602, allocations: 7.984 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004253/0.6024, allocations: 200.3 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.6027, allocations: 0.6848 MB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.575e-05/0.6027, allocations: 23.36 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of SimCode: time 5.51e-07/0.6028, allocations: 0 / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of Templates: time 0.003231/0.606, allocations: 1.308 MB / 1.024 GB, free: 11.64 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches