Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.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_9_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_9_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.0008206/0.0008205, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0008414/0.0008415, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.467/2.467, allocations: 390.9 MB / 0.666 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004384/0.0004385, allocations: 12 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8365/0.837, allocations: 142.4 MB / 0.9544 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.0007418/0.8377, allocations: 318.6 kB / 0.9547 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003727/0.8381, allocations: 102.8 kB / 0.9548 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.202e-05/0.8382, allocations: 0 / 0.9548 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.849e-05/0.8382, allocations: 0 / 0.9548 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.405e-06/0.8382, allocations: 0 / 0.9548 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003185/0.8385, allocations: 24.56 kB / 0.9549 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001306/0.8387, allocations: 62.73 kB / 0.9549 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.236e-05/0.8387, allocations: 5.547 kB / 0.9549 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.137e-05/0.8388, allocations: 21.23 kB / 0.955 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.416e-05/0.8388, allocations: 20.22 kB / 0.955 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.86e-05/0.8389, allocations: 3.531 kB / 0.955 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.839, allocations: 45.36 kB / 0.955 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.375e-05/0.8391, allocations: 27.97 kB / 0.955 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.592e-05/0.8391, allocations: 30.3 kB / 0.9551 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001125/0.8392, allocations: 38 kB / 0.9551 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.8392, allocations: 1.469 kB / 0.9551 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.494e-06/0.8393, allocations: 0 / 0.9551 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.8393, allocations: 4 kB / 0.9551 GB, free: 7.367 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004393/0.8397, allocations: 351.4 kB / 0.9555 GB, free: 7 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.8398, allocations: 9.219 kB / 0.9555 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.105e-05/0.8398, allocations: 17.39 kB / 0.9555 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.379e-05/0.8399, allocations: 166.5 kB / 0.9556 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002269/0.8401, allocations: 277.5 kB / 0.9559 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.8402, allocations: 11.84 kB / 0.9559 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.8404, allocations: 77.28 kB / 0.956 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.8404, allocations: 4 kB / 0.956 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.8404, allocations: 4 kB / 0.956 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.8404, allocations: 2.281 kB / 0.956 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000305/0.8407, allocations: 131 kB / 0.9561 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001477/0.8409, allocations: 184.1 kB / 0.9563 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002685/0.8412, allocations: 102.2 kB / 0.9564 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.8413, allocations: 41.86 kB / 0.9564 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.8413, allocations: 5.609 kB / 0.9564 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.442e-05/0.8414, allocations: 35.59 kB / 0.9565 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.8414, allocations: 336 / 0.9565 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004778/0.8418, allocations: 151.1 kB / 0.9566 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.106e-05/0.8419, allocations: 52.72 kB / 0.9567 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.035e-05/0.8419, allocations: 89.86 kB / 0.9568 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.8419, allocations: 27.05 kB / 0.9568 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.067e-05/0.8419, allocations: 84.27 kB / 0.9569 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.265e-05/0.842, allocations: 39.55 kB / 0.9569 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.635e-06/0.842, allocations: 8.969 kB / 0.9569 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.644e-05/0.842, allocations: 315.9 kB / 0.9572 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.8422, allocations: 34.19 kB / 0.9572 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.8423, allocations: 35.72 kB / 0.9573 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.8424, allocations: 31.48 kB / 0.9573 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.8424, allocations: 0 / 0.9573 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002762/0.8427, allocations: 108.8 kB / 0.9574 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.8427, allocations: 6.344 kB / 0.9574 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.8427, allocations: 4 kB / 0.9574 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.8427, allocations: 1.125 kB / 0.9574 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.8429, allocations: 29.28 kB / 0.9574 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.8429, allocations: 1.156 kB / 0.9574 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.217e-05/0.843, allocations: 7.156 kB / 0.9575 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.843, allocations: 7.484 kB / 0.9575 GB, free: 5.129 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.149e-05/0.843, allocations: 117.5 kB / 0.9576 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.324e-05/0.8431, allocations: 3.188 kB / 0.9576 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.654e-05/0.8431, allocations: 19.91 kB / 0.9576 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.8431, allocations: 1.094 kB / 0.9576 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.8431, allocations: 3.984 kB / 0.9576 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.8431, allocations: 1.062 kB / 0.9576 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.148e-05/0.8432, allocations: 184.1 kB / 0.9578 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.8432, allocations: 0 / 0.9578 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.8433, allocations: 21.8 kB / 0.9578 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.8434, allocations: 0 / 0.9578 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.8434, allocations: 10.45 kB / 0.9578 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.8434, allocations: 3.938 kB / 0.9578 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.8434, allocations: 5.188 kB / 0.9578 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002864/0.8437, allocations: 140.8 kB / 0.9579 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.534e-05/0.8437, allocations: 79.39 kB / 0.958 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.8437, allocations: 4 kB / 0.958 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.917e-05/0.8438, allocations: 7.875 kB / 0.958 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.8438, allocations: 12.25 kB / 0.958 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.8438, allocations: 12 kB / 0.9581 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.106e-05/0.8439, allocations: 79.28 kB / 0.9581 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8439, allocations: 0 / 0.9581 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002169/0.8441, allocations: 21.28 kB / 0.9582 GB, free: 4.441 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001854/0.8443, allocations: 123.9 kB / 0.9583 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003176/0.8446, allocations: 80.66 kB / 0.9584 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.8446, allocations: 0 / 0.9584 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.8448, allocations: 53.7 kB / 0.9584 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001521/0.8449, allocations: 23.69 kB / 0.9584 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003524/0.8453, allocations: 165.6 kB / 0.9586 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001292/0.8454, allocations: 0.684 MB / 0.9593 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001524/0.8456, allocations: 44.05 kB / 0.9593 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.58e-05/0.8456, allocations: 11.94 kB / 0.9593 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8456, allocations: 1.406 kB / 0.9593 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of Templates: time 0.002921/0.8486, allocations: 0.9369 MB / 0.9602 GB, free: 2.914 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches