Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.Binomial.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) [: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 7.0.1/package.mo): time 2.994/2.994, allocations: 248.6 MB / 255.9 MB, free: 7.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002573/0.002573, allocations: 195.4 kB / 315.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.267/2.267, allocations: 205.1 MB / 0.5658 GB, free: 324 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001798/0.001798, allocations: 93.95 kB / 0.67 GB, free: 5.527 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5135/0.5154, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.7894, allocations: 106.2 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8645/1.654, allocations: 132.4 MB / 1.013 GB, free: 7.875 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005044/1.655, allocations: 70.27 kB / 1.013 GB, free: 7.836 MB / 0.6355 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.01143/1.666, allocations: 1.381 MB / 1.014 GB, free: 6.57 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.916e-05/1.666, allocations: 12 kB / 1.014 GB, free: 6.559 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.466e-05/1.666, allocations: 0.5 kB / 1.014 GB, free: 6.559 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002603/1.666, allocations: 171 kB / 1.014 GB, free: 6.352 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/1.667, allocations: 4 kB / 1.014 GB, free: 6.348 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.097e-05/1.667, allocations: 4 kB / 1.014 GB, free: 6.344 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001563/1.667, allocations: 25.48 kB / 1.014 GB, free: 6.328 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001722/1.667, allocations: 49.55 kB / 1.014 GB, free: 6.277 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/1.667, allocations: 0 / 1.014 GB, free: 6.277 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/1.667, allocations: 3.938 kB / 1.014 GB, free: 6.273 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/1.667, allocations: 3.906 kB / 1.014 GB, free: 6.27 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007053/1.668, allocations: 251.1 kB / 1.015 GB, free: 6 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005192/1.668, allocations: 49.66 kB / 1.015 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.265e-05/1.668, allocations: 12.55 kB / 1.015 GB, free: 5.938 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008835/1.669, allocations: 404.9 kB / 1.015 GB, free: 5.453 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/1.669, allocations: 38.5 kB / 1.015 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 9.708e-06/1.669, allocations: 0 / 1.015 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0003944/1.67, allocations: 53.25 kB / 1.015 GB, free: 5.352 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/1.67, allocations: 55.16 kB / 1.015 GB, free: 5.289 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/1.67, allocations: 100.1 kB / 1.015 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/1.67, allocations: 25.7 kB / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.052e-05/1.67, allocations: 88.08 kB / 1.015 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/1.67, allocations: 3.906 kB / 1.015 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-06/1.67, allocations: 0 / 1.015 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002058/1.671, allocations: 314.1 kB / 1.016 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.49e-05/1.671, allocations: 11.62 kB / 1.016 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.487e-05/1.671, allocations: 11.98 kB / 1.016 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/1.671, allocations: 7.625 kB / 1.016 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/1.671, allocations: 0 / 1.016 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002732/1.671, allocations: 56.47 kB / 1.016 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/1.671, allocations: 6.969 kB / 1.016 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/1.671, allocations: 0 / 1.016 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/1.671, allocations: 4 kB / 1.016 GB, free: 4.664 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003178/1.672, allocations: 15.98 kB / 1.016 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/1.672, allocations: 0 / 1.016 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002758/1.672, allocations: 14.55 kB / 1.016 GB, free: 4.637 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/1.672, allocations: 0 / 1.016 GB, free: 4.637 MB / 0.6355 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 0.0001607/1.672, allocations: 108.9 kB / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.608e-05/1.672, allocations: 0 / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003744/1.673, allocations: 56.56 kB / 1.016 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/1.673, allocations: 11.88 kB / 1.016 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/1.673, allocations: 7.891 kB / 1.016 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/1.673, allocations: 0 / 1.016 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003265/1.673, allocations: 138.1 kB / 1.016 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/1.673, allocations: 0 / 1.016 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/1.673, allocations: 12.23 kB / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/1.673, allocations: 4 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/1.674, allocations: 11.98 kB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/1.674, allocations: 0 / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.674, allocations: 0 / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003251/1.674, allocations: 149.9 kB / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006437/1.675, allocations: 0.5181 MB / 1.017 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.362e-05/1.675, allocations: 81.11 kB / 1.017 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.69e-05/1.675, allocations: 3.906 kB / 1.017 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003017/1.675, allocations: 15.42 kB / 1.017 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.945e-05/1.675, allocations: 3.984 kB / 1.017 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/1.675, allocations: 4 kB / 1.017 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.613e-05/1.675, allocations: 78.84 kB / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002242/1.678, allocations: 31.38 kB / 1.017 GB, free: 3.348 MB / 0.6355 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.0004671/1.678, allocations: 127.2 kB / 1.017 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000228/1.678, allocations: 19.86 kB / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.678, allocations: 0 / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.853e-05/1.679, allocations: 15.38 kB / 1.017 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/1.679, allocations: 15.39 kB / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000548/1.679, allocations: 79.5 kB / 1.017 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/1.68, allocations: 0.6915 MB / 1.018 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of SimCode: time 2.064e-06/1.68, allocations: 0 / 1.018 GB, free: 2.363 MB / 0.6355 GB