Running command: translateModel(HanserModelica.Magnetic.Coupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Magnetic.Coupling") [: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.895/1.895, allocations: 214.7 MB / 221.7 MB, free: 4.902 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.109e-06/8.275e-06, allocations: 0 / 273.6 MB, free: 1.797 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08841/0.08844, allocations: 49.71 MB / 323.3 MB, free: 15.99 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2702/0.3587, allocations: 79.41 MB / 402.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.359, allocations: 68.09 kB / 402.8 MB, free: 11.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02236/0.3813, allocations: 4.264 MB / 407.1 MB, free: 8.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.205e-05/0.3814, allocations: 4 kB / 407.1 MB, free: 8.266 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001265/0.3827, allocations: 488.2 kB / 407.6 MB, free: 7.754 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.3828, allocations: 15.97 kB / 407.6 MB, free: 7.738 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.383, allocations: 23.72 kB / 407.6 MB, free: 7.715 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.3835, allocations: 226.4 kB / 407.8 MB, free: 7.465 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.945e-05/0.3836, allocations: 8 kB / 407.8 MB, free: 7.457 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.066e-05/0.3837, allocations: 12 kB / 407.8 MB, free: 7.445 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005431/0.3842, allocations: 134 kB / 408 MB, free: 7.363 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.3847, allocations: 185.3 kB / 408.1 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.3847, allocations: 0 / 408.1 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.857e-05/0.3847, allocations: 0 / 408.1 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.3848, allocations: 8 kB / 408.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.3865, allocations: 0.8142 MB / 409 MB, free: 6.441 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.3867, allocations: 68.7 kB / 409 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.3868, allocations: 44.11 kB / 409.1 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.3869, allocations: 7.938 kB / 409.1 MB, free: 6.348 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.3869, allocations: 34.55 kB / 409.1 MB, free: 6.305 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 3.35e-06/0.3869, allocations: 0 / 409.1 MB, free: 6.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.001127/0.3881, allocations: 433.4 kB / 409.5 MB, free: 5.875 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.3881, allocations: 51.41 kB / 409.6 MB, free: 5.812 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.3883, allocations: 141.7 kB / 409.7 MB, free: 5.676 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.3884, allocations: 25.7 kB / 409.8 MB, free: 5.645 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.3885, allocations: 159 kB / 409.9 MB, free: 5.496 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.093e-05/0.3885, allocations: 50.73 kB / 410 MB, free: 5.453 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.761e-06/0.3886, allocations: 0 / 410 MB, free: 5.453 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.3888, allocations: 330.7 kB / 410.3 MB, free: 5.125 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.572e-05/0.3889, allocations: 35.25 kB / 410.3 MB, free: 5.105 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.389, allocations: 80.58 kB / 410.4 MB, free: 5.031 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.3891, allocations: 45.92 kB / 410.4 MB, free: 5.004 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.14e-06/0.3891, allocations: 0 / 410.4 MB, free: 5.004 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003621/0.3895, allocations: 151.8 kB / 410.6 MB, free: 4.875 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.3895, allocations: 7.906 kB / 410.6 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/0.3896, allocations: 4 kB / 410.6 MB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.3896, allocations: 0 / 410.6 MB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.3899, allocations: 43.92 kB / 410.6 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.3899, allocations: 4.156 kB / 410.7 MB, free: 4.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001667/0.3901, allocations: 11.98 kB / 410.7 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.3902, allocations: 7.562 kB / 410.7 MB, free: 4.801 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001117/0.3903, allocations: 108.9 kB / 410.8 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.432e-05/0.3904, allocations: 11.81 kB / 410.8 MB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.201e-05/0.3904, allocations: 17.28 kB / 410.8 MB, free: 4.668 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.242e-06/0.3904, allocations: 0 / 410.8 MB, free: 4.668 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.266e-06/0.3904, allocations: 7.984 kB / 410.8 MB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.3905, allocations: 0 / 410.8 MB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000366/0.3908, allocations: 229.2 kB / 411 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.472e-06/0.3909, allocations: 0 / 411 MB, free: 4.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002667/0.3911, allocations: 35.98 kB / 411.1 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.406e-06/0.3912, allocations: 0 / 411.1 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.3912, allocations: 7.984 kB / 411.1 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.422e-06/0.3912, allocations: 0 / 411.1 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-05/0.3912, allocations: 3.938 kB / 411.1 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004713/0.3917, allocations: 269.5 kB / 411.3 MB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.3919, allocations: 96.53 kB / 411.4 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.3919, allocations: 0 / 411.4 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.3921, allocations: 7.984 kB / 411.4 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.884e-05/0.3922, allocations: 7.984 kB / 411.5 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.3922, allocations: 4 kB / 411.5 MB, free: 4.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000129/0.3924, allocations: 124 kB / 411.6 MB, free: 3.914 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004391/0.3928, allocations: 36 kB / 411.6 MB, free: 3.879 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (converter.i) * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001478/0.393, allocations: 103.2 kB / 411.7 MB, free: 3.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002752/0.3933, allocations: 110 kB / 411.8 MB, free: 3.691 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3933, allocations: 0 / 411.8 MB, free: 3.691 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.3934, allocations: 47.12 kB / 411.9 MB, free: 3.656 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.3937, allocations: 7.5 kB / 411.9 MB, free: 3.652 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.3947, allocations: 303 kB / 412.2 MB, free: 3.359 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005987/0.3954, allocations: 0.7628 MB / 412.9 MB, free: 2.57 MB / 330.7 MB Notification: Performance of SimCode: time 2.317e-06/0.3954, allocations: 0 / 412.9 MB, free: 2.57 MB / 330.7 MB Notification: Performance of Templates: time 0.009138/0.4045, allocations: 1.398 MB / 414.3 MB, free: 1.18 MB / 330.7 MB