Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.007713/0.007713, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.001649/0.001649, allocations: 192 kB / 16.67 MB, free: 5.961 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.685/2.685, allocations: 472.6 MB / 0.7453 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001413, allocations: 71.89 kB / 1.069 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.807/0.8084, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001485/0.8099, allocations: 0.5781 MB / 1.226 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0003475/0.8103, allocations: 113.5 kB / 1.226 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.875e-05/0.8103, allocations: 4 kB / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.598e-05/0.8103, allocations: 0 / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.811e-06/0.8103, allocations: 0 / 1.226 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.8107, allocations: 39.89 kB / 1.226 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001186/0.8108, allocations: 63.92 kB / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.956e-05/0.8108, allocations: 0 / 1.226 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.3e-05/0.8109, allocations: 23.98 kB / 1.226 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.023e-05/0.8109, allocations: 23.95 kB / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.811, allocations: 4 kB / 1.226 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.8111, allocations: 43.97 kB / 1.227 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.008e-05/0.8111, allocations: 31.91 kB / 1.227 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.177e-05/0.8112, allocations: 19.91 kB / 1.227 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00015/0.8113, allocations: 67.83 kB / 1.227 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.8113, allocations: 0 / 1.227 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.462e-06/0.8113, allocations: 0 / 1.227 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.8114, allocations: 0 / 1.227 GB, free: 12.49 MB / 0.9512 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.0004567/0.8118, allocations: 375.9 kB / 1.227 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.8118, allocations: 8.031 kB / 1.227 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.29e-05/0.8119, allocations: 8.938 kB / 1.227 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.015e-05/0.812, allocations: 176.3 kB / 1.227 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.8122, allocations: 281.5 kB / 1.227 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.8122, allocations: 8.375 kB / 1.227 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002326/0.8125, allocations: 82.19 kB / 1.228 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.8125, allocations: 3.938 kB / 1.228 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.8125, allocations: 0 / 1.228 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.8125, allocations: 4 kB / 1.228 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003413/0.8129, allocations: 131.8 kB / 1.228 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001611/0.813, allocations: 181.5 kB / 1.228 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002874/0.8133, allocations: 98.45 kB / 1.228 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.8135, allocations: 44.83 kB / 1.228 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.8135, allocations: 7.984 kB / 1.228 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.8135, allocations: 34.89 kB / 1.228 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.8136, allocations: 0 / 1.228 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0005185/0.8141, allocations: 153.4 kB / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.8141, allocations: 55.41 kB / 1.228 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.355e-05/0.8142, allocations: 89.86 kB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.8142, allocations: 29.7 kB / 1.228 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.563e-05/0.8142, allocations: 88.08 kB / 1.228 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.902e-05/0.8143, allocations: 35.69 kB / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-05/0.8143, allocations: 29.7 kB / 1.228 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.317e-05/0.8144, allocations: 310.8 kB / 1.229 GB, free: 10.03 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.8146, allocations: 31.97 kB / 1.229 GB, free: 9.996 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.8147, allocations: 43.91 kB / 1.229 GB, free: 9.953 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.815, allocations: 73.47 kB / 1.229 GB, free: 9.879 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.815, allocations: 0 / 1.229 GB, free: 9.879 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003398/0.8153, allocations: 121.5 kB / 1.229 GB, free: 9.754 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.8154, allocations: 9.188 kB / 1.229 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.8154, allocations: 0 / 1.229 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.8154, allocations: 0 / 1.229 GB, free: 9.746 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.8155, allocations: 31.91 kB / 1.229 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.8156, allocations: 0 / 1.229 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.766e-05/0.8156, allocations: 8 kB / 1.229 GB, free: 9.707 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.8156, allocations: 4 kB / 1.229 GB, free: 9.703 MB / 0.9512 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 7.963e-05/0.8157, allocations: 119.2 kB / 1.229 GB, free: 9.578 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.638e-05/0.8158, allocations: 7.891 kB / 1.229 GB, free: 9.57 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.728e-05/0.8158, allocations: 11.97 kB / 1.229 GB, free: 9.555 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.8158, allocations: 4 kB / 1.229 GB, free: 9.551 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.706e-06/0.8158, allocations: 3.938 kB / 1.229 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.8158, allocations: 0 / 1.229 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.816, allocations: 189.6 kB / 1.229 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.816, allocations: 0 / 1.229 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.8161, allocations: 19.98 kB / 1.229 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.8161, allocations: 3.938 kB / 1.229 GB, free: 9.289 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.8161, allocations: 7.984 kB / 1.229 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.8161, allocations: 0 / 1.229 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.8161, allocations: 0 / 1.229 GB, free: 9.281 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003462/0.8165, allocations: 141 kB / 1.23 GB, free: 9.125 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.859e-05/0.8165, allocations: 85.11 kB / 1.23 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.8166, allocations: 15.86 kB / 1.23 GB, free: 9.008 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.949e-05/0.8166, allocations: 8 kB / 1.23 GB, free: 9 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.8167, allocations: 7.984 kB / 1.23 GB, free: 8.992 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.8167, allocations: 7.984 kB / 1.23 GB, free: 8.984 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 2.147e-05/0.8167, allocations: 75.28 kB / 1.23 GB, free: 8.91 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8167, allocations: 0 / 1.23 GB, free: 8.91 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002118/0.8169, allocations: 20 kB / 1.23 GB, free: 8.891 MB / 0.9512 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.0001804/0.8171, allocations: 127.1 kB / 1.23 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003444/0.8175, allocations: 91.81 kB / 1.23 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.8175, allocations: 0 / 1.23 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.8177, allocations: 43.97 kB / 1.23 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.8178, allocations: 11.94 kB / 1.23 GB, free: 8.613 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003681/0.8182, allocations: 156.9 kB / 1.23 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.8184, allocations: 0.6884 MB / 1.231 GB, free: 7.719 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001453/0.8186, allocations: 39.81 kB / 1.231 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.95e-05/0.8186, allocations: 23.42 kB / 1.231 GB, free: 7.656 MB / 0.9512 GB Notification: Performance of SimCode: time 2.71e-07/0.8186, allocations: 0 / 1.231 GB, free: 7.656 MB / 0.9512 GB Notification: Performance of Templates: time 0.003216/0.8218, allocations: 1.025 MB / 1.232 GB, free: 6.633 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches