Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadModel(Modelica): time 1.897/1.897, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.462e-05/2.472e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3508, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1562/0.5071, allocations: 103 MB / 397.1 MB, free: 10.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.5075, allocations: 87.89 kB / 397.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.515/1.023, allocations: 79.17 MB / 476.4 MB, free: 72.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.029e-06/1.023, allocations: 0 / 476.4 MB, free: 72.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002494/1.023, allocations: 75.94 kB / 476.4 MB, free: 72.34 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01037/1.033, allocations: 3.199 MB / 479.6 MB, free: 69.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/1.033, allocations: 8.031 kB / 479.6 MB, free: 69.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005714/1.039, allocations: 0.7374 MB / 480.4 MB, free: 68.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01003/1.049, allocations: 3.333 MB / 483.7 MB, free: 65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/1.049, allocations: 104 kB / 483.8 MB, free: 64.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009817/1.05, allocations: 195.8 kB / 484 MB, free: 64.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008237/1.059, allocations: 3.16 MB / 487.2 MB, free: 61.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01106/1.07, allocations: 3.641 MB / 490.8 MB, free: 57.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001385/1.07, allocations: 7.844 kB / 490.8 MB, free: 57.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008973/1.071, allocations: 4 kB / 490.8 MB, free: 57.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001642/1.071, allocations: 138.2 kB / 490.9 MB, free: 57.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02739/1.098, allocations: 12.95 MB / 0.4921 GB, free: 44.47 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006271/1.105, allocations: 6.738 MB / 0.4987 GB, free: 36.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002534/1.107, allocations: 1.311 MB / 0.4999 GB, free: 35.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007241/1.115, allocations: 3.508 MB / 0.5034 GB, free: 31.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/1.115, allocations: 47.88 kB / 0.5034 GB, free: 31.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 4.905e-06/1.115, allocations: 4 kB / 0.5034 GB, free: 31.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.01473/1.129, allocations: 5.182 MB / 0.5085 GB, free: 26.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/1.129, allocations: 68.7 kB / 0.5085 GB, free: 26.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002648/1.132, allocations: 1.338 MB / 0.5099 GB, free: 25.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002545/1.132, allocations: 25.7 kB / 0.5099 GB, free: 25.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007889/1.133, allocations: 1.387 MB / 0.5112 GB, free: 23.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000484/1.134, allocations: 476.9 kB / 0.5117 GB, free: 23.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/1.134, allocations: 0 / 0.5117 GB, free: 23.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/1.134, allocations: 378.8 kB / 0.5121 GB, free: 22.92 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/1.135, allocations: 0.6872 MB / 0.5127 GB, free: 22.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/1.137, allocations: 1.123 MB / 0.5138 GB, free: 20.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002502/1.139, allocations: 1.021 MB / 0.5148 GB, free: 19.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-05/1.14, allocations: 4 kB / 0.5148 GB, free: 19.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005778/1.145, allocations: 2.392 MB / 0.5172 GB, free: 17.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.557e-05/1.145, allocations: 10.03 kB / 0.5172 GB, free: 17.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.607e-05/1.145, allocations: 16 kB / 0.5172 GB, free: 17.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00164/1.147, allocations: 496.9 kB / 0.5177 GB, free: 16.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001969/1.149, allocations: 391.5 kB / 0.518 GB, free: 16.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008763/1.158, allocations: 6.125 MB / 0.524 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/1.16, allocations: 47.86 kB / 0.5241 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002636/1.16, allocations: 71.98 kB / 0.5241 GB, free: 10.11 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(7,67.3%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003466/1.16, allocations: 148.6 kB / 0.5243 GB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000407/1.161, allocations: 181.8 kB / 0.5244 GB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005627/1.166, allocations: 2.393 MB / 0.5268 GB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.998e-05/1.167, allocations: 15.95 kB / 0.5268 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/1.167, allocations: 8 kB / 0.5268 GB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-05/1.167, allocations: 7.969 kB / 0.5268 GB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/1.178, allocations: 4.977 MB / 0.5317 GB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/1.178, allocations: 0 / 0.5317 GB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001346/1.179, allocations: 215.7 kB / 0.5319 GB, free: 2.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001711/1.181, allocations: 496 kB / 0.5323 GB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001979/1.181, allocations: 19.98 kB / 0.5324 GB, free: 1.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01369/1.195, allocations: 10.02 MB / 0.5421 GB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/1.195, allocations: 0 / 0.5421 GB, free: 6.906 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008199/1.203, allocations: 3.508 MB / 0.5456 GB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/1.204, allocations: 438.7 kB / 0.546 GB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003961/1.205, allocations: 4 kB / 0.546 GB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/1.206, allocations: 55.94 kB / 0.546 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003656/1.207, allocations: 105.2 kB / 0.5462 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/1.207, allocations: 40.36 kB / 0.5462 GB, free: 2.621 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002456/1.209, allocations: 1.008 MB / 0.5472 GB, free: 1.617 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.155e-06/1.209, allocations: 4 kB / 0.5472 GB, free: 1.613 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003316/1.212, allocations: 0.5429 MB / 0.5477 GB, free: 1.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008128/1.213, allocations: 318.1 kB / 0.548 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005508/1.219, allocations: 2.178 MB / 0.5501 GB, free: 14.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.579e-06/1.219, allocations: 0 / 0.5501 GB, free: 14.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003508/1.222, allocations: 1.579 MB / 0.5517 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002622/1.225, allocations: 373.5 kB / 0.552 GB, free: 12.58 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/1.239, allocations: 4.689 MB / 0.5566 GB, free: 7.828 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0045/1.243, allocations: 2.374 MB / 0.5589 GB, free: 5.43 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007912/1.244, allocations: 127.4 kB / 0.5591 GB, free: 5.305 MB / 394.7 MB Notification: Performance of SimCode: time 1.909e-06/1.244, allocations: 0 / 0.5591 GB, free: 5.305 MB / 394.7 MB Notification: Performance of Templates: time 0.3456/1.59, allocations: 90.35 MB / 0.6473 GB, free: 48.21 MB / 394.7 MB