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/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.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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.117/2.117, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.00105/0.00105, allocations: 181.2 kB / 490.8 MB, free: 1.969 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.234/1.234, allocations: 221.3 MB / 0.7863 GB, free: 13.67 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.00097/0.0009704, allocations: 90.23 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.487e-06/9.598e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2979, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.826/1.124, allocations: 149.9 MB / 1.358 GB, free: 17.58 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/1.124, allocations: 71.67 kB / 1.358 GB, free: 17.58 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.004585/1.129, allocations: 1.037 MB / 1.359 GB, free: 17.52 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.816e-06/1.129, allocations: 0.9062 kB / 1.359 GB, free: 17.52 MB / 0.823 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.0004457/1.129, allocations: 356.6 kB / 1.359 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/1.129, allocations: 8.156 kB / 1.359 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.769e-05/1.13, allocations: 6.625 kB / 1.359 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/1.13, allocations: 166.3 kB / 1.36 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/1.13, allocations: 1 kB / 1.36 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/1.13, allocations: 10.94 kB / 1.36 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.77e-05/1.13, allocations: 19.8 kB / 1.36 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.664e-05/1.13, allocations: 47.33 kB / 1.36 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/1.13, allocations: 0 / 1.36 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/1.13, allocations: 1.062 kB / 1.36 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.924e-06/1.13, allocations: 4.547 kB / 1.36 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004126/1.13, allocations: 257.8 kB / 1.36 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002619/1.131, allocations: 43.3 kB / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.786e-05/1.131, allocations: 13.64 kB / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003399/1.131, allocations: 408 kB / 1.36 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/1.131, allocations: 36.31 kB / 1.36 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.372e-06/1.131, allocations: 4 kB / 1.36 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0002381/1.131, allocations: 48.73 kB / 1.36 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/1.131, allocations: 52.16 kB / 1.36 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.77e-05/1.131, allocations: 102 kB / 1.361 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/1.132, allocations: 25.7 kB / 1.361 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.165e-05/1.132, allocations: 89.92 kB / 1.361 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/1.132, allocations: 5.859 kB / 1.361 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/1.132, allocations: 1.031 kB / 1.361 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001324/1.132, allocations: 320.4 kB / 1.361 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.352e-05/1.132, allocations: 6.438 kB / 1.361 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.415e-05/1.132, allocations: 8.562 kB / 1.361 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.099e-05/1.132, allocations: 5.453 kB / 1.361 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.132, allocations: 0 / 1.361 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001066/1.132, allocations: 53.77 kB / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/1.132, allocations: 4.688 kB / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/1.132, allocations: 0 / 1.361 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/1.132, allocations: 5.766 kB / 1.361 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/1.132, allocations: 17.81 kB / 1.361 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/1.132, allocations: 0.5625 kB / 1.361 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.112e-05/1.132, allocations: 9.859 kB / 1.361 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/1.132, allocations: 1.438 kB / 1.361 GB, free: 31.45 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: 2 (bin.y,bin.k) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.507e-05/1.132, allocations: 108.7 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/1.132, allocations: 9.703 kB / 1.361 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001761/1.133, allocations: 59.22 kB / 1.361 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/1.133, allocations: 1.922 kB / 1.361 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/1.133, allocations: 0 / 1.361 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/1.133, allocations: 1.375 kB / 1.361 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/1.133, allocations: 149 kB / 1.361 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/1.133, allocations: 0.7031 kB / 1.361 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.842e-05/1.133, allocations: 22.22 kB / 1.361 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/1.133, allocations: 0 / 1.361 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/1.133, allocations: 1.719 kB / 1.361 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/1.133, allocations: 256 / 1.361 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.133, allocations: 1.656 kB / 1.361 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001645/1.133, allocations: 147.8 kB / 1.362 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.888e-05/1.133, allocations: 79.17 kB / 1.362 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/1.133, allocations: 1.641 kB / 1.362 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/1.133, allocations: 17.02 kB / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/1.133, allocations: 9.469 kB / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/1.133, allocations: 5.781 kB / 1.362 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.436e-05/1.133, allocations: 82.23 kB / 1.362 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002676/1.134, allocations: 33.16 kB / 1.362 GB, free: 30.8 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: 2 (bin.y,bin.k) * Number of discrete 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 (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.0002605/1.134, allocations: 124.1 kB / 1.362 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001137/1.134, allocations: 19.72 kB / 1.362 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/1.134, allocations: 1.062 kB / 1.362 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.913e-05/1.134, allocations: 13.12 kB / 1.362 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/1.134, allocations: 5.188 kB / 1.362 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002858/1.135, allocations: 74.23 kB / 1.362 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002731/1.135, allocations: 0.6922 MB / 1.363 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.135, allocations: 4 kB / 1.363 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of Templates: time 0.003968/1.139, allocations: 0.8958 MB / 1.364 GB, free: 29.85 MB / 0.8386 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=480 -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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches