Running command: translateModel(HanserModelica.FirstSteps.Electrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical2") [: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.987/1.987, allocations: 214.7 MB / 221.7 MB, free: 4.91 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.957e-06/7.09e-06, allocations: 0 / 273.6 MB, free: 1.789 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08814, allocations: 49.7 MB / 323.3 MB, free: 15.99 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2594/0.3476, allocations: 74.92 MB / 398.2 MB, free: 180 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001908/0.3478, allocations: 57.59 kB / 398.3 MB, free: 148 kB / 314.7 MB Notification: Performance of FrontEnd: time 0.0009951/0.3488, allocations: 149.1 kB / 398.5 MB, free: 40 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.3489, allocations: 0 / 398.5 MB, free: 40 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000324/0.3492, allocations: 315.4 kB / 398.8 MB, free: 15.69 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3492, allocations: 8.719 kB / 398.8 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.23e-05/0.3493, allocations: 7.906 kB / 398.8 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.3495, allocations: 170.6 kB / 398.9 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.3495, allocations: 0 / 398.9 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.3495, allocations: 0 / 398.9 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.713e-05/0.3496, allocations: 4 kB / 398.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.675e-05/0.3497, allocations: 33.69 kB / 399 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.3497, allocations: 15.83 kB / 399 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.056e-06/0.3497, allocations: 0 / 399 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.3497, allocations: 0 / 399 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001878/0.3499, allocations: 133.8 kB / 399.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.242e-05/0.35, allocations: 25.16 kB / 399.1 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.474e-05/0.35, allocations: 15.98 kB / 399.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.3501, allocations: 0 / 399.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.3501, allocations: 32.97 kB / 399.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 1.728e-06/0.3501, allocations: 0 / 399.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001398/0.3503, allocations: 45.19 kB / 399.2 MB, free: 15.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.3503, allocations: 59.34 kB / 399.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.597e-05/0.3504, allocations: 89 kB / 399.4 MB, free: 14.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.3504, allocations: 25.7 kB / 399.4 MB, free: 14.92 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.027e-05/0.3505, allocations: 88.08 kB / 399.5 MB, free: 14.84 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.603e-05/0.3505, allocations: 11.83 kB / 399.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.055e-06/0.3505, allocations: 0 / 399.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3507, allocations: 310.8 kB / 399.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.908e-05/0.3507, allocations: 7.875 kB / 399.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.545e-05/0.3508, allocations: 4 kB / 399.8 MB, free: 14.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.473e-05/0.3508, allocations: 11.91 kB / 399.8 MB, free: 14.49 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.193e-06/0.3508, allocations: 0 / 399.8 MB, free: 14.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001043/0.3509, allocations: 45.38 kB / 399.9 MB, free: 14.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.351, allocations: 4 kB / 399.9 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.398e-06/0.351, allocations: 0 / 399.9 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.351, allocations: 0 / 399.9 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.3511, allocations: 11.98 kB / 399.9 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.475e-06/0.3511, allocations: 3.906 kB / 399.9 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.014e-05/0.3512, allocations: 3.906 kB / 399.9 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.721e-06/0.3512, allocations: 3.938 kB / 399.9 MB, free: 14.42 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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 0.0001103/0.3513, allocations: 109.5 kB / 400 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.26e-05/0.3513, allocations: 0 / 400 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.806e-05/0.3514, allocations: 7.438 kB / 400 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.543e-06/0.3514, allocations: 0 / 400 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.3514, allocations: 7.906 kB / 400 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.016e-06/0.3514, allocations: 3.938 kB / 400 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.3516, allocations: 131 kB / 400.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.436e-06/0.3516, allocations: 0 / 400.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.535e-05/0.3517, allocations: 7.938 kB / 400.2 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.3517, allocations: 8.359 kB / 400.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.921e-06/0.3517, allocations: 4 kB / 400.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.757e-06/0.3517, allocations: 2 kB / 400.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.428e-06/0.3517, allocations: 0 / 400.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001646/0.3519, allocations: 79.58 kB / 400.3 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/0.352, allocations: 81.02 kB / 400.3 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.352, allocations: 3.938 kB / 400.3 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.696e-05/0.3521, allocations: 0 / 400.3 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.791e-05/0.3521, allocations: 4 kB / 400.3 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.414e-06/0.3521, allocations: 4.062 kB / 400.4 MB, free: 13.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.936e-05/0.3522, allocations: 78.77 kB / 400.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000273/0.3524, allocations: 15.98 kB / 400.4 MB, free: 13.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * Number of discrete variables: 0 () * 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.0001297/0.3526, allocations: 91.25 kB / 400.5 MB, free: 13.72 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.313e-05/0.3527, allocations: 12 kB / 400.5 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.649e-06/0.3527, allocations: 0 / 400.5 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.299e-05/0.3527, allocations: 7.25 kB / 400.6 MB, free: 13.71 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.3529, allocations: 8.625 kB / 400.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003361/0.3532, allocations: 118.5 kB / 400.7 MB, free: 13.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.3536, allocations: 0.6876 MB / 401.4 MB, free: 12.85 MB / 330.7 MB Notification: Performance of SimCode: time 1.661e-06/0.3536, allocations: 0 / 401.4 MB, free: 12.85 MB / 330.7 MB Notification: Performance of Templates: time 0.002376/0.356, allocations: 263.6 kB / 401.6 MB, free: 12.6 MB / 330.7 MB