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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.007707/0.007707, allocations: 102 kB / 15.73 MB, free: 6.051 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.001408/0.001408, allocations: 191.5 kB / 16.67 MB, free: 5.965 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.204/2.204, allocations: 390.2 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 71.89 kB / 0.9509 GB, free: 7.594 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.015/1.017, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001687/1.018, allocations: 0.5853 MB / 1.089 GB, free: 5.16 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00039/1.019, allocations: 108.6 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.07e-05/1.019, allocations: 0 / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.126e-05/1.019, allocations: 0 / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.523e-06/1.019, allocations: 1.312 kB / 1.089 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003603/1.019, allocations: 46.66 kB / 1.089 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001361/1.019, allocations: 59.55 kB / 1.089 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.813e-05/1.019, allocations: 2.547 kB / 1.089 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.083e-05/1.02, allocations: 25.75 kB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.129e-05/1.02, allocations: 25.3 kB / 1.089 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/1.02, allocations: 2.031 kB / 1.089 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/1.02, allocations: 49.83 kB / 1.089 GB, free: 5.031 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.312e-05/1.02, allocations: 21.88 kB / 1.089 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.441e-05/1.02, allocations: 18.78 kB / 1.089 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001648/1.02, allocations: 72.61 kB / 1.089 GB, free: 4.992 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/1.02, allocations: 4 kB / 1.089 GB, free: 4.988 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.934e-06/1.02, allocations: 0.6562 kB / 1.089 GB, free: 4.988 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.312e-06/1.02, allocations: 0 / 1.089 GB, free: 4.988 MB / 0.8575 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.0004971/1.021, allocations: 370.1 kB / 1.089 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/1.021, allocations: 10.22 kB / 1.089 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/1.021, allocations: 6.172 kB / 1.089 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.652e-05/1.021, allocations: 169.9 kB / 1.089 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002335/1.021, allocations: 285.5 kB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/1.021, allocations: 7.219 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002637/1.021, allocations: 80.97 kB / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/1.021, allocations: 7.875 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/1.021, allocations: 0.875 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/1.021, allocations: 1.344 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003882/1.022, allocations: 133 kB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001825/1.022, allocations: 179.6 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/1.022, allocations: 94.25 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/1.022, allocations: 49.47 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/1.022, allocations: 1.062 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/1.022, allocations: 40.97 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/1.022, allocations: 0 / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005664/1.023, allocations: 151.6 kB / 1.09 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/1.023, allocations: 57.05 kB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.875e-05/1.023, allocations: 95.2 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/1.023, allocations: 25.7 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.434e-05/1.023, allocations: 84.89 kB / 1.091 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.454e-05/1.023, allocations: 40.47 kB / 1.091 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.66e-05/1.023, allocations: 32.12 kB / 1.091 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.604e-05/1.023, allocations: 313.4 kB / 1.091 GB, free: 3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/1.023, allocations: 33.47 kB / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/1.024, allocations: 34.33 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002672/1.024, allocations: 73.84 kB / 1.091 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/1.024, allocations: 4 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003199/1.024, allocations: 109.2 kB / 1.091 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/1.024, allocations: 13.69 kB / 1.091 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/1.024, allocations: 0 / 1.091 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/1.024, allocations: 1.922 kB / 1.091 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/1.024, allocations: 26.84 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/1.024, allocations: 0.7031 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.88e-05/1.024, allocations: 8.578 kB / 1.091 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/1.024, allocations: 4.844 kB / 1.091 GB, free: 2.895 MB / 0.8575 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 6.951e-05/1.025, allocations: 121.2 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.619e-05/1.025, allocations: 5.781 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.591e-05/1.025, allocations: 16.56 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/1.025, allocations: 2.078 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/1.025, allocations: 0.7812 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/1.025, allocations: 0.5156 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/1.025, allocations: 180.2 kB / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/1.025, allocations: 1.375 kB / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/1.025, allocations: 27.19 kB / 1.092 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/1.025, allocations: 11.88 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/1.025, allocations: 7.938 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/1.025, allocations: 0.75 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/1.025, allocations: 0.7969 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003395/1.025, allocations: 137.2 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.01e-05/1.025, allocations: 83.08 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/1.025, allocations: 9.953 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.804e-05/1.025, allocations: 4.234 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/1.026, allocations: 14.59 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/1.026, allocations: 8.781 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.139e-05/1.026, allocations: 79.22 kB / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/1.026, allocations: 0 / 1.092 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002212/1.026, allocations: 17.55 kB / 1.092 GB, free: 2.254 MB / 0.8575 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.0001991/1.026, allocations: 125 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003546/1.026, allocations: 85.11 kB / 1.092 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/1.026, allocations: 4 kB / 1.092 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000162/1.027, allocations: 51.48 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/1.027, allocations: 5.75 kB / 1.092 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003821/1.027, allocations: 158.4 kB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001307/1.027, allocations: 0.6843 MB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001429/1.027, allocations: 42.16 kB / 1.093 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.881e-05/1.027, allocations: 16.62 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/1.027, allocations: 0 / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of Templates: time 0.003615/1.031, allocations: 1.032 MB / 1.094 GB, free: 1.168 MB / 0.8575 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/jenkins/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