Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.157/2.157, allocations: 390.5 MB / 398 MB, free: 10.95 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 172.9 kB / 491.2 MB, free: 1.613 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.805/1.805, allocations: 221.5 MB / 0.7868 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 89.83 kB / 0.9269 GB, free: 13.81 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.691e-05/2.693e-05, allocations: 10.48 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3142, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.01/1.324, allocations: 148.9 MB / 1.358 GB, free: 17.41 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/1.325, allocations: 77.27 kB / 1.358 GB, free: 17.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004906/1.33, allocations: 1.221 MB / 1.359 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.084e-06/1.33, allocations: 0 / 1.359 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.697e-06/1.33, allocations: 0 / 1.359 GB, free: 33.06 MB / 0.8386 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.0005004/1.33, allocations: 358.1 kB / 1.359 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.127e-05/1.33, allocations: 8.438 kB / 1.359 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.359e-05/1.33, allocations: 12.06 kB / 1.359 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/1.33, allocations: 167.8 kB / 1.36 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002709/1.331, allocations: 276.2 kB / 1.36 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.224e-05/1.331, allocations: 5.438 kB / 1.36 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002334/1.331, allocations: 115.8 kB / 1.36 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/1.331, allocations: 70.33 kB / 1.36 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/1.331, allocations: 0 / 1.36 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/1.331, allocations: 7.875 kB / 1.36 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/1.331, allocations: 3.984 kB / 1.36 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002013/1.331, allocations: 155.9 kB / 1.36 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/1.332, allocations: 75.33 kB / 1.36 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.182e-05/1.332, allocations: 30.28 kB / 1.36 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.083e-05/1.332, allocations: 11.06 kB / 1.36 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/1.332, allocations: 34.41 kB / 1.36 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/1.332, allocations: 0 / 1.36 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0015/1.333, allocations: 200.3 kB / 1.36 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/1.333, allocations: 59.12 kB / 1.361 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.172e-05/1.333, allocations: 88.91 kB / 1.361 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/1.333, allocations: 25.7 kB / 1.361 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.059e-05/1.333, allocations: 85.14 kB / 1.361 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.618e-05/1.333, allocations: 31.97 kB / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-06/1.333, allocations: 0 / 1.361 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000126/1.334, allocations: 316.1 kB / 1.361 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.77e-05/1.334, allocations: 20.64 kB / 1.361 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.556e-05/1.334, allocations: 25.91 kB / 1.361 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/1.335, allocations: 136.6 kB / 1.361 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/1.335, allocations: 0 / 1.361 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.001208/1.336, allocations: 210.8 kB / 1.361 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/1.336, allocations: 7.5 kB / 1.361 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/1.336, allocations: 0 / 1.361 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/1.336, allocations: 5.781 kB / 1.361 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001819/1.336, allocations: 28.44 kB / 1.361 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/1.336, allocations: 0 / 1.361 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.395e-05/1.336, allocations: 7.172 kB / 1.361 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/1.336, allocations: 9.078 kB / 1.362 GB, free: 31.2 MB / 0.8386 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 () * 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 9.943e-05/1.336, allocations: 102.3 kB / 1.362 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/1.337, allocations: 3.953 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.674e-05/1.337, allocations: 15.12 kB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/1.337, allocations: 4 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/1.337, allocations: 1.688 kB / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/1.337, allocations: 0 / 1.362 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/1.337, allocations: 148.8 kB / 1.362 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/1.337, allocations: 3.938 kB / 1.362 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/1.337, allocations: 24.84 kB / 1.362 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/1.337, allocations: 0 / 1.362 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/1.337, allocations: 13.67 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/1.337, allocations: 4.844 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.337, allocations: 3.938 kB / 1.362 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/1.338, allocations: 228.9 kB / 1.362 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.915e-05/1.338, allocations: 90.09 kB / 1.362 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/1.338, allocations: 0 / 1.362 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.329e-05/1.338, allocations: 8.734 kB / 1.362 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/1.338, allocations: 11.22 kB / 1.362 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/1.338, allocations: 5.047 kB / 1.362 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.711e-05/1.338, allocations: 75.28 kB / 1.362 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.338, allocations: 3.938 kB / 1.362 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002362/1.339, allocations: 26.91 kB / 1.362 GB, free: 30.65 MB / 0.8386 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 () * 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.0002416/1.339, allocations: 121.9 kB / 1.362 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000161/1.339, allocations: 68.55 kB / 1.362 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.339, allocations: 0 / 1.362 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.33e-05/1.339, allocations: 38.41 kB / 1.362 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/1.339, allocations: 0 / 1.362 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003277/1.34, allocations: 109.2 kB / 1.363 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/1.34, allocations: 0.6884 MB / 1.363 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001332/1.34, allocations: 43.03 kB / 1.363 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.01e-05/1.34, allocations: 14.3 kB / 1.363 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of SimCode: time 2.11e-07/1.34, allocations: 0 / 1.363 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of Templates: time 0.003007/1.343, allocations: 0.911 MB / 1.364 GB, free: 29.67 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches