Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.0101/0.0101, allocations: 170 kB / 16.27 MB, free: 6.652 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.49/1.49, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.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.548/2.548, allocations: 390.9 MB / 0.6663 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004236/0.0004238, allocations: 8 kB / 0.8159 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9019/0.9023, allocations: 142.4 MB / 0.955 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.002186/0.9046, allocations: 1.252 MB / 0.9563 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000675/0.9053, allocations: 183.8 kB / 0.9564 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.681e-05/0.9054, allocations: 1.5 kB / 0.9564 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.421e-05/0.9054, allocations: 0 / 0.9564 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.924e-05/0.9055, allocations: 5.219 kB / 0.9564 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.9059, allocations: 37.39 kB / 0.9565 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.267e-05/0.906, allocations: 34.89 kB / 0.9565 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.9062, allocations: 16.95 kB / 0.9565 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.495e-05/0.9062, allocations: 12.72 kB / 0.9565 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.246e-05/0.9063, allocations: 17.34 kB / 0.9566 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.9063, allocations: 1.312 kB / 0.9566 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.9065, allocations: 48.52 kB / 0.9566 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.321e-05/0.9065, allocations: 1.344 kB / 0.9566 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.78e-05/0.9066, allocations: 41.38 kB / 0.9566 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.9068, allocations: 65.02 kB / 0.9567 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.9068, allocations: 1.406 kB / 0.9567 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.025e-06/0.9068, allocations: 0 / 0.9567 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.9068, allocations: 0 / 0.9567 GB, free: 6.336 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005769/0.9074, allocations: 350.9 kB / 0.957 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.9075, allocations: 9.156 kB / 0.957 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.881e-05/0.9075, allocations: 10.78 kB / 0.9571 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.9076, allocations: 170.3 kB / 0.9572 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.545e-05/0.9077, allocations: 5.438 kB / 0.9572 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.9077, allocations: 2.594 kB / 0.9572 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002454/0.908, allocations: 73.19 kB / 0.9573 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.908, allocations: 192 / 0.9573 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.908, allocations: 3.938 kB / 0.9573 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.908, allocations: 1.312 kB / 0.9573 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002208/0.9082, allocations: 57.67 kB / 0.9574 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004482/0.9087, allocations: 282.9 kB / 0.9576 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000344/0.909, allocations: 63.36 kB / 0.9577 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.9092, allocations: 33.77 kB / 0.9577 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002288/0.9094, allocations: 170.4 kB / 0.9579 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.9094, allocations: 31.72 kB / 0.9579 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 2.274e-06/0.9094, allocations: 3.984 kB / 0.9579 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004336/0.9099, allocations: 117.6 kB / 0.958 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.9099, allocations: 51.41 kB / 0.9581 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.814e-05/0.91, allocations: 108.6 kB / 0.9582 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.91, allocations: 37.64 kB / 0.9582 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.707e-05/0.9101, allocations: 86.02 kB / 0.9583 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.9101, allocations: 3.906 kB / 0.9583 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.412e-05/0.9101, allocations: 15.5 kB / 0.9583 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.381e-05/0.9102, allocations: 320.6 kB / 0.9586 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.484e-05/0.9103, allocations: 24.05 kB / 0.9586 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.515e-05/0.9104, allocations: 31.31 kB / 0.9587 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.9105, allocations: 55.95 kB / 0.9587 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.9106, allocations: 0 / 0.9587 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002269/0.9108, allocations: 90.83 kB / 0.9588 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.9108, allocations: 5.219 kB / 0.9588 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.9108, allocations: 0 / 0.9588 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.9109, allocations: 1.25 kB / 0.9588 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.813e-05/0.9109, allocations: 17.39 kB / 0.9588 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.911, allocations: 0.875 kB / 0.9588 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.497e-05/0.911, allocations: 14.28 kB / 0.9589 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.911, allocations: 5.297 kB / 0.9589 GB, free: 4.219 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: 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 6.799e-05/0.9111, allocations: 112.4 kB / 0.959 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.9112, allocations: 2.125 kB / 0.959 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002814/0.9114, allocations: 101.3 kB / 0.9591 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.9114, allocations: 0 / 0.9591 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.9115, allocations: 1.094 kB / 0.9591 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.9115, allocations: 0 / 0.9591 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001346/0.9116, allocations: 169 kB / 0.9592 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.9116, allocations: 1.156 kB / 0.9592 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.631e-05/0.9117, allocations: 18.05 kB / 0.9592 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.9117, allocations: 0 / 0.9592 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.9117, allocations: 5.219 kB / 0.9592 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.9117, allocations: 0 / 0.9592 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.9117, allocations: 0 / 0.9592 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002576/0.912, allocations: 189.7 kB / 0.9594 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.288e-05/0.912, allocations: 78.14 kB / 0.9595 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.912, allocations: 1.062 kB / 0.9595 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.937e-05/0.9121, allocations: 14.42 kB / 0.9595 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.793e-05/0.9122, allocations: 14.69 kB / 0.9595 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.9122, allocations: 1.062 kB / 0.9595 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.222e-05/0.9123, allocations: 90.52 kB / 0.9596 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9123, allocations: 4 kB / 0.9596 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002605/0.9125, allocations: 21.41 kB / 0.9596 GB, free: 3.438 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: 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.0001924/0.9127, allocations: 111.1 kB / 0.9598 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002481/0.913, allocations: 63.53 kB / 0.9598 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.913, allocations: 0 / 0.9598 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.9131, allocations: 35.75 kB / 0.9598 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003158/0.9134, allocations: 7.125 kB / 0.9599 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003353/0.9138, allocations: 133.6 kB / 0.96 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.9139, allocations: 0.6808 MB / 0.9606 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.486e-05/0.914, allocations: 6.734 kB / 0.9607 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.843e-05/0.914, allocations: 8.969 kB / 0.9607 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.914, allocations: 1.656 kB / 0.9607 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of Templates: time 0.003686/0.9177, allocations: 0.8741 MB / 0.9615 GB, free: 2.004 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Binomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches