Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_LoadDump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=120000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump") [: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.755/1.755, allocations: 214.7 MB / 221.7 MB, free: 4.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.909e-06/8.014e-06, allocations: 0 / 273.6 MB, free: 1.809 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08842/0.08845, allocations: 49.7 MB / 323.3 MB, free: 12 kB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.331/0.4195, allocations: 120.8 MB / 444.2 MB, free: 3.113 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.4197, allocations: 71.97 kB / 444.2 MB, free: 3.082 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.5251/0.9448, allocations: 102.9 MB / 0.5343 GB, free: 89.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004076/0.9453, allocations: 97.94 kB / 0.5344 GB, free: 89.37 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1073 * Number of variables: 1073 Notification: Performance of Generate backend data structure: time 0.01506/0.9604, allocations: 4.205 MB / 0.5385 GB, free: 87.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.9604, allocations: 10.94 kB / 0.5385 GB, free: 87.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008657/0.9691, allocations: 0.9789 MB / 0.5394 GB, free: 87.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01349/0.9826, allocations: 3.977 MB / 0.5433 GB, free: 86.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003976/0.9831, allocations: 344.9 kB / 0.5437 GB, free: 86.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001465/0.9846, allocations: 244.9 kB / 0.5439 GB, free: 86.54 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01192/0.9965, allocations: 3.997 MB / 0.5478 GB, free: 86.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01533/1.012, allocations: 4.658 MB / 0.5523 GB, free: 85.99 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000214/1.012, allocations: 7.281 kB / 0.5524 GB, free: 85.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001197/1.013, allocations: 7.688 kB / 0.5524 GB, free: 85.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001581/1.014, allocations: 171.5 kB / 0.5525 GB, free: 85.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04143/1.055, allocations: 17.29 MB / 0.5694 GB, free: 76.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003331/1.058, allocations: 1.548 MB / 0.5709 GB, free: 76.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004196/1.063, allocations: 1.862 MB / 0.5727 GB, free: 75.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01542/1.078, allocations: 5.728 MB / 0.5783 GB, free: 72.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00332/1.081, allocations: 1.354 MB / 0.5797 GB, free: 71.79 MB / 426.7 MB Notification: Performance of pre-optimization done (n=215): time 9.105e-06/1.081, allocations: 0 / 0.5797 GB, free: 71.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=248): time 0.0253/1.107, allocations: 7.552 MB / 0.587 GB, free: 68.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/1.107, allocations: 344.8 kB / 0.5874 GB, free: 68.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004668/1.112, allocations: 1.826 MB / 0.5891 GB, free: 67.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000496/1.112, allocations: 35.2 kB / 0.5892 GB, free: 67.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001546/1.114, allocations: 1.508 MB / 0.5906 GB, free: 66.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/1.115, allocations: 0.7901 MB / 0.5914 GB, free: 65.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002432/1.115, allocations: 4 kB / 0.5914 GB, free: 65.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001995/1.115, allocations: 417.7 kB / 0.5918 GB, free: 65.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002559/1.118, allocations: 1.177 MB / 0.593 GB, free: 63.94 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003115/1.121, allocations: 1.94 MB / 0.5949 GB, free: 61.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003622/1.125, allocations: 1.525 MB / 0.5964 GB, free: 60.49 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.438e-05/1.125, allocations: 11.94 kB / 0.5964 GB, free: 60.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=363) (initialization): time 0.009878/1.135, allocations: 4.093 MB / 0.6004 GB, free: 56.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001624/1.136, allocations: 8.271 MB / 0.6084 GB, free: 47.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.007e-05/1.136, allocations: 20 kB / 0.6085 GB, free: 47.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003413/1.14, allocations: 1.037 MB / 0.6095 GB, free: 46.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002936/1.143, allocations: 0.5302 MB / 0.61 GB, free: 46.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01652/1.159, allocations: 13.21 MB / 0.6229 GB, free: 33.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003361/1.163, allocations: 118.4 kB / 0.623 GB, free: 33.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000551/1.163, allocations: 115.5 kB / 0.6231 GB, free: 33.19 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/1.163, allocations: 4 kB / 0.6231 GB, free: 33.19 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008854/1.172, allocations: 3.774 MB / 0.6268 GB, free: 29.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-05/1.172, allocations: 20.44 kB / 0.6268 GB, free: 29.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003243/1.176, allocations: 1.034 MB / 0.6278 GB, free: 28.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002955/1.179, allocations: 0.526 MB / 0.6283 GB, free: 28.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.018/1.197, allocations: 13.2 MB / 0.6412 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003156/1.2, allocations: 112.1 kB / 0.6413 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005433/1.2, allocations: 119.2 kB / 0.6415 GB, free: 15.38 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[3].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[1].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.closerWithArc[2].v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (304): * Single equations (assignments): 297 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 23,(3,100.0%) 21,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0007553/1.201, allocations: 209.9 kB / 0.6417 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007423/1.202, allocations: 269.8 kB / 0.6419 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009299/1.211, allocations: 3.544 MB / 0.6454 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.037e-05/1.211, allocations: 27.91 kB / 0.6454 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/1.211, allocations: 0 / 0.6454 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.922e-05/1.211, allocations: 11.95 kB / 0.6454 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01675/1.228, allocations: 7.296 MB / 0.6525 GB, free: 4.426 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/1.228, allocations: 0 / 0.6525 GB, free: 4.426 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002181/1.23, allocations: 347.8 kB / 0.6529 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003537/1.234, allocations: 1.058 MB / 0.6539 GB, free: 3.027 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004/1.234, allocations: 27.97 kB / 0.6539 GB, free: 3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01874/1.253, allocations: 10.95 MB / 0.6646 GB, free: 7.605 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.353e-06/1.253, allocations: 0 / 0.6646 GB, free: 7.605 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01288/1.266, allocations: 5.256 MB / 0.6698 GB, free: 2.258 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002382/1.268, allocations: 0.6148 MB / 0.6704 GB, free: 1.621 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001031/1.27, allocations: 27.98 kB / 0.6704 GB, free: 1.594 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002627/1.272, allocations: 91.92 kB / 0.6705 GB, free: 1.504 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006115/1.273, allocations: 173.6 kB / 0.6706 GB, free: 1.336 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002788/1.273, allocations: 67.92 kB / 0.6707 GB, free: 1.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.143/1.416, allocations: 1.354 MB / 0.672 GB, free: 138.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00811/1.424, allocations: 1.351 MB / 0.6733 GB, free: 138.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.strayReluctance.Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (187): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {4 56,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001022/1.425, allocations: 362.4 kB / 0.6737 GB, free: 138.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01396/1.439, allocations: 6.533 MB / 0.6801 GB, free: 137.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.583e-06/1.439, allocations: 0 / 0.6801 GB, free: 137.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004777/1.444, allocations: 2.08 MB / 0.6821 GB, free: 136.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003698/1.448, allocations: 473.5 kB / 0.6826 GB, free: 136.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02104/1.469, allocations: 6.683 MB / 0.6891 GB, free: 135.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006217/1.475, allocations: 3.083 MB / 0.6921 GB, free: 134.6 MB / 442.7 MB Notification: Performance of SimCode: time 2.477e-06/1.475, allocations: 0 / 0.6921 GB, free: 134.6 MB / 442.7 MB Notification: Performance of Templates: time 0.1487/1.624, allocations: 61 MB / 0.7517 GB, free: 113.2 MB / 442.7 MB