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.946/1.946, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.451e-05/3.473e-05, allocations: 3 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07973/0.07979, allocations: 44.5 MB / 299.8 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3727/0.4525, allocations: 103.6 MB / 403.5 MB, free: 16.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.4528, allocations: 87.84 kB / 403.6 MB, free: 16.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3207/0.7736, allocations: 80.2 MB / 483.8 MB, free: 4.434 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.764e-06/0.7736, allocations: 0 / 483.8 MB, free: 4.434 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003461/0.774, allocations: 75.94 kB / 483.8 MB, free: 4.359 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.0119/0.7859, allocations: 3.211 MB / 487.1 MB, free: 1.082 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.7859, allocations: 8.031 kB / 487.1 MB, free: 1.074 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005651/0.7916, allocations: 0.7256 MB / 487.8 MB, free: 352 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/0.8028, allocations: 3.344 MB / 491.1 MB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00031/0.8031, allocations: 234.3 kB / 491.4 MB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/0.8043, allocations: 315.9 kB / 491.7 MB, free: 12.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/0.8161, allocations: 4.095 MB / 495.8 MB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.8162, allocations: 0 / 495.8 MB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005107/0.8168, allocations: 143.9 kB / 495.9 MB, free: 8.047 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001987/0.817, allocations: 138.2 kB / 496 MB, free: 7.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01018/0.8272, allocations: 3.34 MB / 499.4 MB, free: 4.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03403/0.8612, allocations: 13.56 MB / 0.5009 GB, free: 6.645 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2407/1.102, allocations: 6.784 MB / 0.5076 GB, free: 66.65 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003218/1.105, allocations: 1.356 MB / 0.5089 GB, free: 66.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00866/1.114, allocations: 3.63 MB / 0.5124 GB, free: 66.06 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/1.114, allocations: 48.2 kB / 0.5125 GB, free: 66.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 4.825e-06/1.114, allocations: 0 / 0.5125 GB, free: 66.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=142): time 0.01349/1.128, allocations: 5.013 MB / 0.5174 GB, free: 65.13 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/1.128, allocations: 66.66 kB / 0.5174 GB, free: 65.07 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003757/1.131, allocations: 1.609 MB / 0.519 GB, free: 64.9 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002708/1.132, allocations: 55.7 kB / 0.5191 GB, free: 64.87 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009417/1.133, allocations: 1.363 MB / 0.5204 GB, free: 64.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004969/1.133, allocations: 499.1 kB / 0.5209 GB, free: 64.08 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/1.133, allocations: 31.69 kB / 0.5209 GB, free: 64.08 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/1.134, allocations: 379.2 kB / 0.5213 GB, free: 63.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/1.135, allocations: 0.7186 MB / 0.522 GB, free: 63.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001712/1.137, allocations: 1.165 MB / 0.5231 GB, free: 63.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001807/1.139, allocations: 0.9364 MB / 0.524 GB, free: 63.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/1.139, allocations: 3.531 kB / 0.524 GB, free: 63.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005363/1.144, allocations: 2.434 MB / 0.5264 GB, free: 63.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/1.144, allocations: 7.844 kB / 0.5264 GB, free: 63.11 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/1.144, allocations: 15.25 kB / 0.5264 GB, free: 63.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/1.146, allocations: 0.4956 MB / 0.5269 GB, free: 63.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/1.148, allocations: 386.5 kB / 0.5273 GB, free: 63.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009948/1.158, allocations: 6.369 MB / 0.5335 GB, free: 60.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/1.16, allocations: 83.98 kB / 0.5336 GB, free: 60.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002398/1.16, allocations: 73.95 kB / 0.5336 GB, free: 60.41 MB / 394.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.0004124/1.161, allocations: 196.6 kB / 0.5338 GB, free: 60.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00047/1.161, allocations: 189.8 kB / 0.534 GB, free: 60.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005312/1.167, allocations: 2.416 MB / 0.5364 GB, free: 59.85 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-05/1.167, allocations: 13.94 kB / 0.5364 GB, free: 59.85 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/1.167, allocations: 9.25 kB / 0.5364 GB, free: 59.85 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.252e-05/1.167, allocations: 10.89 kB / 0.5364 GB, free: 59.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/1.178, allocations: 5.399 MB / 0.5417 GB, free: 59.18 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/1.178, allocations: 1.5 kB / 0.5417 GB, free: 59.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001438/1.18, allocations: 217 kB / 0.5419 GB, free: 59.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001887/1.182, allocations: 0.4933 MB / 0.5424 GB, free: 59.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002362/1.182, allocations: 38.16 kB / 0.5424 GB, free: 59.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01166/1.194, allocations: 10.41 MB / 0.5526 GB, free: 51.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.194, allocations: 8.547 kB / 0.5526 GB, free: 51.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006682/1.2, allocations: 3.514 MB / 0.556 GB, free: 49.72 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/1.202, allocations: 458 kB / 0.5564 GB, free: 49.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003741/1.202, allocations: 31.25 kB / 0.5565 GB, free: 49.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/1.204, allocations: 70.92 kB / 0.5565 GB, free: 49.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003168/1.204, allocations: 114.9 kB / 0.5566 GB, free: 49.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/1.204, allocations: 50.38 kB / 0.5567 GB, free: 49.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002404/1.206, allocations: 1.23 MB / 0.5579 GB, free: 48.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.088e-06/1.206, allocations: 0 / 0.5579 GB, free: 48.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003318/1.21, allocations: 0.6229 MB / 0.5585 GB, free: 48.77 MB / 394.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.0007202/1.211, allocations: 393.5 kB / 0.5589 GB, free: 48.64 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004648/1.215, allocations: 2.281 MB / 0.5611 GB, free: 47.65 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.736e-06/1.215, allocations: 6.469 kB / 0.5611 GB, free: 47.65 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003326/1.219, allocations: 1.661 MB / 0.5627 GB, free: 46.63 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003318/1.222, allocations: 485.7 kB / 0.5632 GB, free: 46.51 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/1.233, allocations: 4.814 MB / 0.5679 GB, free: 44.43 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002465/1.236, allocations: 2.366 MB / 0.5702 GB, free: 43.36 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007234/1.237, allocations: 143.7 kB / 0.5703 GB, free: 43.34 MB / 394.7 MB Notification: Performance of SimCode: time 1.914e-06/1.237, allocations: 0 / 0.5703 GB, free: 43.34 MB / 394.7 MB Notification: Performance of Templates: time 0.3555/1.592, allocations: 92.51 MB / 0.6607 GB, free: 86.87 MB / 410.7 MB