Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.Binomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 113.5 kB / 17.13 MB, free: 5.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 206.5 kB / 20.09 MB, free: 2.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.517/1.517, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.991/2.991, allocations: 0.49 GB / 0.7923 GB, free: 1.297 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bin.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|bin.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Binomial") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003407/0.003407, allocations: 75.89 kB / 1.15 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.085/1.089, allocations: 176.1 MB / 1.322 GB, free: 7.801 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003098/1.092, allocations: 1.554 MB / 1.323 GB, free: 6.582 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0005257/1.092, allocations: 180.2 kB / 1.324 GB, free: 6.445 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.39e-05/1.092, allocations: 1.125 kB / 1.324 GB, free: 6.445 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.673e-05/1.092, allocations: 3.938 kB / 1.324 GB, free: 6.441 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.99e-05/1.092, allocations: 5.344 kB / 1.324 GB, free: 6.438 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003546/1.093, allocations: 50.72 kB / 1.324 GB, free: 6.402 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.234e-05/1.093, allocations: 35.05 kB / 1.324 GB, free: 6.383 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/1.093, allocations: 19.28 kB / 1.324 GB, free: 6.367 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 3.618e-05/1.093, allocations: 9.781 kB / 1.324 GB, free: 6.363 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.117e-05/1.093, allocations: 21.45 kB / 1.324 GB, free: 6.348 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/1.093, allocations: 3.062 kB / 1.324 GB, free: 6.348 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/1.093, allocations: 55.19 kB / 1.324 GB, free: 6.316 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.976e-05/1.093, allocations: 13.27 kB / 1.324 GB, free: 6.305 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.787e-05/1.093, allocations: 13.03 kB / 1.324 GB, free: 6.297 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001634/1.093, allocations: 60.47 kB / 1.324 GB, free: 6.258 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/1.093, allocations: 1.062 kB / 1.324 GB, free: 6.258 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.663e-06/1.093, allocations: 0 / 1.324 GB, free: 6.258 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.672e-06/1.093, allocations: 4 kB / 1.324 GB, free: 6.254 MB / 1.014 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.0005998/1.094, allocations: 366.4 kB / 1.324 GB, free: 5.867 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/1.094, allocations: 12.33 kB / 1.324 GB, free: 5.863 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.912e-05/1.094, allocations: 7.266 kB / 1.324 GB, free: 5.859 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/1.094, allocations: 166.6 kB / 1.324 GB, free: 5.66 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/1.094, allocations: 5.422 kB / 1.324 GB, free: 5.656 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/1.094, allocations: 6.719 kB / 1.324 GB, free: 5.652 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002437/1.094, allocations: 68.59 kB / 1.325 GB, free: 5.598 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/1.094, allocations: 192 / 1.325 GB, free: 5.598 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/1.094, allocations: 3.938 kB / 1.325 GB, free: 5.594 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/1.094, allocations: 1.125 kB / 1.325 GB, free: 5.594 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002103/1.095, allocations: 52.16 kB / 1.325 GB, free: 5.566 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004397/1.095, allocations: 274.4 kB / 1.325 GB, free: 5.266 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003448/1.095, allocations: 57.75 kB / 1.325 GB, free: 5.223 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/1.096, allocations: 23.88 kB / 1.325 GB, free: 5.207 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002596/1.096, allocations: 172.9 kB / 1.325 GB, free: 5.008 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.233e-05/1.096, allocations: 35.47 kB / 1.325 GB, free: 4.965 MB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/1.096, allocations: 1.031 kB / 1.325 GB, free: 4.965 MB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.0004213/1.096, allocations: 90.36 kB / 1.325 GB, free: 4.906 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/1.096, allocations: 56.64 kB / 1.325 GB, free: 4.84 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.943e-05/1.096, allocations: 114.5 kB / 1.325 GB, free: 4.727 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/1.096, allocations: 30.91 kB / 1.325 GB, free: 4.691 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.377e-05/1.097, allocations: 85.48 kB / 1.325 GB, free: 4.605 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/1.097, allocations: 9.109 kB / 1.325 GB, free: 4.598 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/1.097, allocations: 21.69 kB / 1.326 GB, free: 4.574 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001559/1.097, allocations: 324.3 kB / 1.326 GB, free: 4.25 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.852e-05/1.097, allocations: 22.64 kB / 1.326 GB, free: 4.238 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.773e-05/1.097, allocations: 17.97 kB / 1.326 GB, free: 4.23 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/1.097, allocations: 47.89 kB / 1.326 GB, free: 4.203 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/1.097, allocations: 0 / 1.326 GB, free: 4.203 MB / 1.014 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002356/1.097, allocations: 80.89 kB / 1.326 GB, free: 4.145 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/1.097, allocations: 6.781 kB / 1.326 GB, free: 4.145 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/1.097, allocations: 0 / 1.326 GB, free: 4.145 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/1.097, allocations: 1.5 kB / 1.326 GB, free: 4.145 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.575e-05/1.097, allocations: 11.02 kB / 1.326 GB, free: 4.141 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/1.097, allocations: 0 / 1.326 GB, free: 4.141 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.076e-05/1.098, allocations: 8.016 kB / 1.326 GB, free: 4.137 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/1.098, allocations: 5.875 kB / 1.326 GB, free: 4.133 MB / 1.014 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,rea2Int.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.486e-05/1.098, allocations: 127.2 kB / 1.326 GB, free: 4 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/1.098, allocations: 3.25 kB / 1.326 GB, free: 4 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002993/1.098, allocations: 79.38 kB / 1.326 GB, free: 3.934 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/1.098, allocations: 1.172 kB / 1.326 GB, free: 3.934 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.098, allocations: 3.984 kB / 1.326 GB, free: 3.93 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/1.098, allocations: 0 / 1.326 GB, free: 3.93 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001998/1.098, allocations: 169.9 kB / 1.326 GB, free: 3.723 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/1.098, allocations: 4 kB / 1.326 GB, free: 3.719 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.723e-05/1.098, allocations: 12.02 kB / 1.326 GB, free: 3.715 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/1.098, allocations: 0 / 1.326 GB, free: 3.715 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/1.098, allocations: 1.281 kB / 1.326 GB, free: 3.715 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/1.098, allocations: 0 / 1.326 GB, free: 3.715 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/1.098, allocations: 0 / 1.326 GB, free: 3.715 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/1.099, allocations: 188.5 kB / 1.327 GB, free: 3.543 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.598e-05/1.099, allocations: 78.42 kB / 1.327 GB, free: 3.449 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/1.099, allocations: 0 / 1.327 GB, free: 3.449 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-05/1.099, allocations: 8.734 kB / 1.327 GB, free: 3.445 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/1.099, allocations: 2.219 kB / 1.327 GB, free: 3.445 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-06/1.099, allocations: 1.438 kB / 1.327 GB, free: 3.445 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.841e-05/1.099, allocations: 89.73 kB / 1.327 GB, free: 3.363 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/1.099, allocations: 0 / 1.327 GB, free: 3.363 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002549/1.099, allocations: 17.19 kB / 1.327 GB, free: 3.359 MB / 1.014 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 (rea2Int.y,bin.y) * 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 (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.000212/1.099, allocations: 126.7 kB / 1.327 GB, free: 3.254 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002988/1.1, allocations: 49.55 kB / 1.327 GB, free: 3.23 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/1.1, allocations: 0 / 1.327 GB, free: 3.23 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/1.1, allocations: 25.38 kB / 1.327 GB, free: 3.219 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/1.1, allocations: 10.72 kB / 1.327 GB, free: 3.211 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003731/1.1, allocations: 151.4 kB / 1.327 GB, free: 3.055 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/1.101, allocations: 0.6791 MB / 1.328 GB, free: 2.355 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.772e-05/1.101, allocations: 15.23 kB / 1.328 GB, free: 2.344 MB / 1.014 GB Notification: Performance of SimCode: time 4.41e-07/1.101, allocations: 0 / 1.328 GB, free: 2.344 MB / 1.014 GB Notification: Performance of Templates: time 0.002995/1.104, allocations: 0.9798 MB / 1.329 GB, free: 1.852 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Binomial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Binomial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.648005695009488]