Running command: translateModel(HanserModelica.Electrical.TestBrush,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Electrical.TestBrush") [: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 loadModel(HanserModelica): time 1.817/1.817, allocations: 214.7 MB / 221.7 MB, free: 4.984 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.127e-05/1.141e-05, allocations: 4 kB / 273.6 MB, free: 1.793 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.08776, allocations: 49.71 MB / 323.3 MB, free: 15.99 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2978/0.3856, allocations: 77.34 MB / 400.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/0.3858, allocations: 69.02 kB / 400.7 MB, free: 13.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.006729/0.3926, allocations: 1.532 MB / 402.3 MB, free: 12.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.3926, allocations: 4 kB / 402.3 MB, free: 12.49 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004975/0.3931, allocations: 369.6 kB / 402.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3932, allocations: 8.031 kB / 402.7 MB, free: 12.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.862e-05/0.3933, allocations: 7.906 kB / 402.7 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.3935, allocations: 182.4 kB / 402.8 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.3935, allocations: 0 / 402.8 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.3935, allocations: 4.188 kB / 402.8 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001347/0.3937, allocations: 39.11 kB / 402.9 MB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.3938, allocations: 66.06 kB / 402.9 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.748e-06/0.3938, allocations: 4 kB / 402.9 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.3939, allocations: 0 / 402.9 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.683e-06/0.3939, allocations: 4.875 kB / 403 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007072/0.3946, allocations: 378.3 kB / 403.3 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.898e-05/0.3947, allocations: 30.06 kB / 403.4 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.096e-05/0.3947, allocations: 12.3 kB / 403.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.3948, allocations: 4 kB / 403.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.3948, allocations: 33.94 kB / 403.4 MB, free: 11.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 2.089e-06/0.3948, allocations: 4 kB / 403.4 MB, free: 11.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002445/0.3951, allocations: 52.97 kB / 403.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.3951, allocations: 51.41 kB / 403.5 MB, free: 11.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.3953, allocations: 115.2 kB / 403.6 MB, free: 11.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.3953, allocations: 29.7 kB / 403.6 MB, free: 11.03 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.548e-05/0.3954, allocations: 111.4 kB / 403.8 MB, free: 10.92 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.387e-06/0.3954, allocations: 0 / 403.8 MB, free: 10.92 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.383e-06/0.3954, allocations: 0 / 403.8 MB, free: 10.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3956, allocations: 322.6 kB / 404.1 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.123e-05/0.3957, allocations: 7.5 kB / 404.1 MB, free: 10.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.467e-05/0.3957, allocations: 25.7 kB / 404.1 MB, free: 10.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.212e-05/0.3958, allocations: 19.17 kB / 404.1 MB, free: 10.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.167e-06/0.3958, allocations: 0 / 404.1 MB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001938/0.396, allocations: 59.75 kB / 404.2 MB, free: 10.49 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.3961, allocations: 7.938 kB / 404.2 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1e-05/0.3961, allocations: 8.438 kB / 404.2 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.3961, allocations: 4 kB / 404.2 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3962, allocations: 19.19 kB / 404.2 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.3963, allocations: 12.02 kB / 404.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.692e-05/0.3964, allocations: 11.94 kB / 404.2 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.741e-06/0.3964, allocations: 3.938 kB / 404.2 MB, free: 10.43 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.329e-05/0.3965, allocations: 105 kB / 404.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.459e-05/0.3966, allocations: 3.906 kB / 404.4 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.663e-05/0.3966, allocations: 15.56 kB / 404.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.566e-06/0.3966, allocations: 4 kB / 404.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.776e-06/0.3966, allocations: 0 / 404.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.3967, allocations: 0 / 404.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.3969, allocations: 155.9 kB / 404.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.358e-06/0.3969, allocations: 3.984 kB / 404.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.297e-05/0.397, allocations: 8 kB / 404.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.083e-06/0.397, allocations: 0 / 404.5 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.397, allocations: 4 kB / 404.5 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.999e-06/0.397, allocations: 4 kB / 404.5 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3971, allocations: 0 / 404.5 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002243/0.3973, allocations: 160.8 kB / 404.7 MB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.747e-05/0.3974, allocations: 81.02 kB / 404.8 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.3974, allocations: 0 / 404.8 MB, free: 9.836 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.3976, allocations: 16.02 kB / 404.8 MB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.137e-05/0.3976, allocations: 0 / 404.8 MB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.515e-06/0.3976, allocations: 0 / 404.8 MB, free: 9.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.307e-05/0.3977, allocations: 97.77 kB / 404.9 MB, free: 9.73 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003538/0.3981, allocations: 19.91 kB / 404.9 MB, free: 9.711 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001527/0.3982, allocations: 103.2 kB / 405 MB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001073/0.3984, allocations: 20.81 kB / 405 MB, free: 9.59 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.065e-06/0.3984, allocations: 192 / 405 MB, free: 9.59 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.858e-05/0.3984, allocations: 15.44 kB / 405 MB, free: 9.578 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.3987, allocations: 9.234 kB / 405.1 MB, free: 9.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003122/0.399, allocations: 94.25 kB / 405.1 MB, free: 9.457 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004069/0.3994, allocations: 0.7075 MB / 405.9 MB, free: 8.723 MB / 330.7 MB Notification: Performance of SimCode: time 1.297e-06/0.3994, allocations: 0 / 405.9 MB, free: 8.723 MB / 330.7 MB Notification: Performance of Templates: time 0.003462/0.4029, allocations: 0.6158 MB / 406.5 MB, free: 8.113 MB / 330.7 MB