Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Binomial") translateModel(Buildings.Utilities.Math.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.y",fileNamePrefix="Buildings_latest_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.001584/0.001584, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.001745/0.001745, allocations: 191.2 kB / 16.91 MB, free: 6.188 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.47/1.47, allocations: 222.9 MB / 240.6 MB, free: 15.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.849/2.849, allocations: 482.4 MB / 0.755 GB, free: 7.121 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 69.39 kB / 0.924 GB, free: 308 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8597/0.8616, allocations: 162.2 MB / 1.082 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.003386/0.865, allocations: 1.597 MB / 1.084 GB, free: 0.7383 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004893/0.8656, allocations: 188 kB / 1.084 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.057e-05/0.8656, allocations: 1.031 kB / 1.084 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.162e-05/0.8657, allocations: 4.875 kB / 1.084 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.898e-05/0.8658, allocations: 0.5938 kB / 1.084 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004384/0.8662, allocations: 43.75 kB / 1.084 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.407e-05/0.8663, allocations: 27.58 kB / 1.084 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.8665, allocations: 16.61 kB / 1.084 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.125e-05/0.8665, allocations: 23.59 kB / 1.084 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.439e-05/0.8666, allocations: 21.16 kB / 1.084 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.8666, allocations: 4.062 kB / 1.084 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.8668, allocations: 43.95 kB / 1.084 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.996e-05/0.8668, allocations: 10.95 kB / 1.084 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.338e-05/0.8668, allocations: 17.98 kB / 1.084 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001471/0.867, allocations: 43.02 kB / 1.084 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.867, allocations: 0.875 kB / 1.084 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.653e-06/0.867, allocations: 0 / 1.084 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.867, allocations: 4 kB / 1.084 GB, free: 0.4961 MB / 0.8262 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.0005076/0.8675, allocations: 348.1 kB / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.8676, allocations: 9.5 kB / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.908e-05/0.8676, allocations: 3.25 kB / 1.085 GB, free: 140 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/0.8678, allocations: 175.9 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.8678, allocations: 5.531 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.8679, allocations: 2.375 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000248/0.8681, allocations: 70.86 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.8681, allocations: 192 / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.8682, allocations: 4.469 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.8682, allocations: 6.469 kB / 1.085 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002174/0.8684, allocations: 42.8 kB / 1.085 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005173/0.8689, allocations: 276.9 kB / 1.085 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.8693, allocations: 65.53 kB / 1.085 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.8694, allocations: 26.3 kB / 1.085 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000267/0.8697, allocations: 166.1 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.8698, allocations: 32.11 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.8698, allocations: 0 / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0004236/0.8702, allocations: 98.14 kB / 1.086 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.8702, allocations: 51.41 kB / 1.086 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.8704, allocations: 108.3 kB / 1.086 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.8704, allocations: 29.64 kB / 1.086 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.8705, allocations: 86.23 kB / 1.086 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.706e-05/0.8705, allocations: 9.812 kB / 1.086 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.896e-05/0.8706, allocations: 22.67 kB / 1.086 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.8707, allocations: 318.4 kB / 1.086 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.8708, allocations: 19.3 kB / 1.086 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.893e-05/0.8709, allocations: 21.72 kB / 1.086 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.8711, allocations: 45.28 kB / 1.086 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.8711, allocations: 0 / 1.086 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002346/0.8714, allocations: 82.86 kB / 1.086 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.8714, allocations: 5.594 kB / 1.086 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.8714, allocations: 0 / 1.086 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.8714, allocations: 1.312 kB / 1.086 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.066e-05/0.8715, allocations: 13.94 kB / 1.086 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.8715, allocations: 2.094 kB / 1.086 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.505e-05/0.8716, allocations: 9.656 kB / 1.086 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.8716, allocations: 1.75 kB / 1.086 GB, free: 14.54 MB / 0.8419 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 0.0001102/0.8717, allocations: 126.2 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.8718, allocations: 2.531 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003023/0.8721, allocations: 88 kB / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.8721, allocations: 1.156 kB / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.8721, allocations: 0.6094 kB / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.8721, allocations: 0 / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.8723, allocations: 170.2 kB / 1.087 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.8723, allocations: 0.8906 kB / 1.087 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.505e-05/0.8724, allocations: 11.5 kB / 1.087 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.8724, allocations: 3.938 kB / 1.087 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.8725, allocations: 2.266 kB / 1.087 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.8725, allocations: 0 / 1.087 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8725, allocations: 0 / 1.087 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003055/0.8728, allocations: 182 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.9e-05/0.8728, allocations: 79.22 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.8729, allocations: 1.672 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.749e-05/0.873, allocations: 5.984 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/0.873, allocations: 9.281 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.873, allocations: 1.25 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.02e-05/0.8731, allocations: 88.67 kB / 1.087 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8731, allocations: 0 / 1.087 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002666/0.8734, allocations: 17.75 kB / 1.087 GB, free: 13.82 MB / 0.8419 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.0002125/0.8736, allocations: 118.6 kB / 1.087 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002673/0.8739, allocations: 49.78 kB / 1.087 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.8739, allocations: 0 / 1.087 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.874, allocations: 28.47 kB / 1.087 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.8743, allocations: 6.75 kB / 1.087 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003976/0.8747, allocations: 163.1 kB / 1.088 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.8751, allocations: 0.679 MB / 1.088 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.686e-05/0.8751, allocations: 15.53 kB / 1.088 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of SimCode: time 2.064e-06/0.8751, allocations: 0 / 1.088 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of Templates: time 0.003201/0.8783, allocations: 0.9828 MB / 1.089 GB, free: 12.76 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Binomial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches