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 2.102/2.102, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.327e-05/3.321e-05, allocations: 0 / 258.8 MB, free: 8.691 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4089/0.4089, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.02212/0.4311, allocations: 10.13 MB / 313.4 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01455/0.4457, allocations: 3.665 MB / 317.1 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004333/0.4609, allocations: 87.69 kB / 317.2 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003926/0.4649, allocations: 0.6487 MB / 317.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01306/0.478, allocations: 1.02 MB / 318.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003566/0.4816, allocations: 0.5526 MB / 319.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007971/0.4896, allocations: 2.18 MB / 321.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005353/0.495, allocations: 1.611 MB / 323.2 MB, free: 9.766 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003218/0.4983, allocations: 1.001 MB / 324.2 MB, free: 8.762 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004249/0.5026, allocations: 1.293 MB / 325.5 MB, free: 7.465 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002403/0.5051, allocations: 271.8 kB / 325.8 MB, free: 7.199 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001374/0.5065, allocations: 128 kB / 325.9 MB, free: 7.074 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001754/0.5083, allocations: 0.646 MB / 326.5 MB, free: 6.426 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001522/0.5099, allocations: 292 kB / 326.8 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009464/0.5194, allocations: 5.485 MB / 332.3 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.5194, allocations: 0 / 332.3 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.5194, allocations: 0 / 332.3 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002291/0.5197, allocations: 0 / 332.3 MB, free: 0.6406 MB / 266.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.01491/0.5346, allocations: 3.465 MB / 335.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.5347, allocations: 8.031 kB / 335.8 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008806/0.5435, allocations: 0.8154 MB / 336.6 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008288/0.5519, allocations: 2.221 MB / 338.8 MB, free: 10 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003944/0.5523, allocations: 234.3 kB / 339 MB, free: 9.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001302/0.5536, allocations: 315.9 kB / 339.3 MB, free: 9.461 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01478/0.5684, allocations: 4.211 MB / 343.6 MB, free: 5.199 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001291/0.5686, allocations: 7.938 kB / 343.6 MB, free: 5.191 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00094/0.5696, allocations: 124 kB / 343.7 MB, free: 5.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002948/0.5699, allocations: 142.2 kB / 343.8 MB, free: 4.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0129/0.5828, allocations: 3.651 MB / 347.5 MB, free: 1.27 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03905/0.6219, allocations: 13.53 MB / 361 MB, free: 3.391 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/0.6336, allocations: 6.823 MB / 367.8 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009429/0.6431, allocations: 3.191 MB / 371 MB, free: 8.391 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.31e-05/0.6432, allocations: 55.86 kB / 371.1 MB, free: 8.328 MB / 314.7 MB Notification: Performance of pre-optimization done (n=128): time 4.639e-06/0.6432, allocations: 0 / 371.1 MB, free: 8.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=148): time 0.02389/0.6671, allocations: 6.724 MB / 377.8 MB, free: 1.402 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.296e-05/0.6672, allocations: 72.72 kB / 377.9 MB, free: 1.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00405/0.6713, allocations: 1.604 MB / 379.5 MB, free: 15.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003302/0.6717, allocations: 49.7 kB / 379.5 MB, free: 15.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.6731, allocations: 1.345 MB / 380.9 MB, free: 14.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008466/0.674, allocations: 0.5045 MB / 381.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.6742, allocations: 36 kB / 381.4 MB, free: 13.76 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002324/0.6744, allocations: 378.7 kB / 381.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00234/0.6768, allocations: 0.7769 MB / 382.5 MB, free: 12.61 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002916/0.6797, allocations: 1.218 MB / 383.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002928/0.6827, allocations: 0.9863 MB / 384.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.867e-05/0.6828, allocations: 4 kB / 384.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007905/0.6907, allocations: 2.555 MB / 387.3 MB, free: 7.633 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.724e-05/0.6908, allocations: 21.3 kB / 387.3 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.488e-05/0.6908, allocations: 12.28 kB / 387.3 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002367/0.6932, allocations: 0.4894 MB / 387.8 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003215/0.6965, allocations: 399.4 kB / 388.2 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/0.711, allocations: 6.536 MB / 394.8 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002344/0.7134, allocations: 79.92 kB / 394.8 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003641/0.7138, allocations: 71.98 kB / 394.9 MB, free: 15.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (182): * Single equations (assignments): 180 * 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,69.4%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003118/0.717, allocations: 1.044 MB / 395.9 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007353/0.7177, allocations: 205.5 kB / 396.1 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00805/0.7258, allocations: 2.535 MB / 398.7 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.978e-05/0.7259, allocations: 16 kB / 398.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/0.7259, allocations: 4 kB / 398.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.243e-05/0.726, allocations: 7.969 kB / 398.7 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01597/0.742, allocations: 5.559 MB / 404.3 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.06e-05/0.742, allocations: 0 / 404.3 MB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002182/0.7442, allocations: 235.9 kB / 404.5 MB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/0.7466, allocations: 495.8 kB / 405 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002975/0.747, allocations: 35.98 kB / 405 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01761/0.7646, allocations: 10.54 MB / 415.6 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.759e-06/0.7646, allocations: 8.016 kB / 415.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/0.7752, allocations: 3.729 MB / 419.3 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001579/0.7768, allocations: 458.6 kB / 419.7 MB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006965/0.7775, allocations: 35.94 kB / 419.8 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002073/0.7796, allocations: 75.95 kB / 419.9 MB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005395/0.7802, allocations: 113.1 kB / 420 MB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001741/0.7804, allocations: 40 kB / 420 MB, free: 5.605 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003209/0.7836, allocations: 1.239 MB / 421.2 MB, free: 4.375 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.7837, allocations: 0 / 421.2 MB, free: 4.375 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003438/0.7871, allocations: 0.59 MB / 421.8 MB, free: 3.785 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 101 * 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%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005828/0.7878, allocations: 151.5 kB / 422 MB, free: 3.629 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007495/0.7953, allocations: 2.426 MB / 424.4 MB, free: 1.176 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.7954, allocations: 0 / 424.4 MB, free: 1.176 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2755/1.071, allocations: 1.737 MB / 426.1 MB, free: 104.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004604/1.076, allocations: 489.7 kB / 426.6 MB, free: 104.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01799/1.094, allocations: 7.141 MB / 433.8 MB, free: 101.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003153/1.097, allocations: 2.37 MB / 436.1 MB, free: 100.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009641/1.098, allocations: 138.2 kB / 436.3 MB, free: 100.8 MB / 362.7 MB Notification: Performance of SimCode: time 1.432e-06/1.098, allocations: 0 / 436.3 MB, free: 100.8 MB / 362.7 MB Notification: Performance of Templates: time 0.1455/1.243, allocations: 91.39 MB / 0.5153 GB, free: 13.21 MB / 362.7 MB