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.001234/0.001234, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001247/0.001247, allocations: 196.2 kB / 16.14 MB, free: 6.656 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 / 239.8 MB, free: 4.559 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.502/2.502, allocations: 390.2 MB / 0.6642 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.00125, allocations: 63.91 kB / 0.8118 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9417/0.943, allocations: 140.4 MB / 0.9489 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.004473/0.9475, allocations: 1.585 MB / 0.9505 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005872/0.9481, allocations: 181.8 kB / 0.9506 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.687e-05/0.9482, allocations: 3.938 kB / 0.9506 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.8e-05/0.9482, allocations: 7.938 kB / 0.9506 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.088e-05/0.9483, allocations: 1.188 kB / 0.9506 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.9486, allocations: 45.77 kB / 0.9507 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.838e-05/0.9487, allocations: 31.45 kB / 0.9507 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.9488, allocations: 13.3 kB / 0.9507 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.493e-05/0.9489, allocations: 12.78 kB / 0.9507 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.86e-05/0.9489, allocations: 21.75 kB / 0.9508 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.949, allocations: 6.094 kB / 0.9508 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001327/0.9491, allocations: 41.92 kB / 0.9508 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.785e-05/0.9491, allocations: 5.312 kB / 0.9508 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.958e-05/0.9492, allocations: 22.47 kB / 0.9508 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.9493, allocations: 57.89 kB / 0.9509 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.9494, allocations: 3.984 kB / 0.9509 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.383e-06/0.9494, allocations: 1.625 kB / 0.9509 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.9494, allocations: 0 / 0.9509 GB, free: 7.566 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.0004969/0.9499, allocations: 352.4 kB / 0.9512 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.9499, allocations: 13.78 kB / 0.9512 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.95, allocations: 6.25 kB / 0.9513 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.9501, allocations: 171.2 kB / 0.9514 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.845e-05/0.9502, allocations: 1.875 kB / 0.9514 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.9502, allocations: 5.938 kB / 0.9514 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.9504, allocations: 59.3 kB / 0.9515 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.9504, allocations: 1.719 kB / 0.9515 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.9504, allocations: 7.938 kB / 0.9515 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.9504, allocations: 0 / 0.9515 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.9506, allocations: 48.92 kB / 0.9515 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004119/0.951, allocations: 278.4 kB / 0.9518 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003266/0.9514, allocations: 59.12 kB / 0.9519 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.417e-05/0.9515, allocations: 28.41 kB / 0.9519 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002184/0.9517, allocations: 169.7 kB / 0.952 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.774e-05/0.9517, allocations: 34.5 kB / 0.9521 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 2.675e-06/0.9518, allocations: 0 / 0.9521 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000401/0.9522, allocations: 98.28 kB / 0.9522 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/0.9522, allocations: 56.78 kB / 0.9522 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.157e-05/0.9523, allocations: 119.5 kB / 0.9523 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.9523, allocations: 25.7 kB / 0.9524 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.498e-05/0.9523, allocations: 90.8 kB / 0.9525 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.009e-05/0.9524, allocations: 5.281 kB / 0.9525 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.524e-05/0.9524, allocations: 16.45 kB / 0.9525 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.105e-05/0.9525, allocations: 320.2 kB / 0.9528 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-05/0.9526, allocations: 26.97 kB / 0.9528 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.826e-05/0.9527, allocations: 14.98 kB / 0.9528 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001646/0.9528, allocations: 46.75 kB / 0.9529 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.9528, allocations: 0 / 0.9529 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002133/0.9531, allocations: 77.77 kB / 0.9529 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.9531, allocations: 6.156 kB / 0.9529 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.9531, allocations: 5.188 kB / 0.9529 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.9531, allocations: 0 / 0.9529 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.268e-05/0.9532, allocations: 11.3 kB / 0.953 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.9532, allocations: 1.25 kB / 0.953 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.006e-05/0.9533, allocations: 11.83 kB / 0.953 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.9533, allocations: 1.219 kB / 0.953 GB, free: 5.461 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 8.27e-05/0.9534, allocations: 120.5 kB / 0.9531 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.9534, allocations: 4.969 kB / 0.9531 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002821/0.9537, allocations: 91.58 kB / 0.9532 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.9537, allocations: 1.094 kB / 0.9532 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.9537, allocations: 0 / 0.9532 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.9538, allocations: 1.25 kB / 0.9532 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001359/0.9539, allocations: 173.3 kB / 0.9533 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.9539, allocations: 0 / 0.9533 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.138e-05/0.954, allocations: 7.625 kB / 0.9534 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.954, allocations: 3.984 kB / 0.9534 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.954, allocations: 5.094 kB / 0.9534 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.954, allocations: 0 / 0.9534 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.954, allocations: 0.9688 kB / 0.9534 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002387/0.9543, allocations: 172.5 kB / 0.9535 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.467e-05/0.9543, allocations: 88.94 kB / 0.9536 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.9543, allocations: 1.5 kB / 0.9536 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.927e-05/0.9544, allocations: 7.062 kB / 0.9536 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.559e-05/0.9545, allocations: 10.86 kB / 0.9536 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.9545, allocations: 1.031 kB / 0.9536 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.664e-05/0.9545, allocations: 90.73 kB / 0.9537 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9545, allocations: 3.938 kB / 0.9537 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002511/0.9548, allocations: 16.53 kB / 0.9537 GB, free: 4.676 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.0001908/0.955, allocations: 115.9 kB / 0.9538 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002256/0.9552, allocations: 44.8 kB / 0.9539 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.9552, allocations: 4 kB / 0.9539 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.045e-05/0.9553, allocations: 18.86 kB / 0.9539 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003207/0.9556, allocations: 15.34 kB / 0.9539 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00033/0.956, allocations: 128.4 kB / 0.9541 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.9562, allocations: 0.6835 MB / 0.9547 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.753e-05/0.9562, allocations: 3.406 kB / 0.9547 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.994e-05/0.9562, allocations: 18.52 kB / 0.9547 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.9563, allocations: 0 / 0.9547 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of Templates: time 0.00363/0.9599, allocations: 0.8758 MB / 0.9556 GB, free: 3.25 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