Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase") Notification: Performance of loadModel(Modelica): time 1.988/1.988, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.012e-05/3.03e-05, allocations: 0 / 292.2 MB, free: 8.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09171/0.09176, allocations: 50.42 MB / 342.6 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4167/0.5085, allocations: 119.8 MB / 462.4 MB, free: 7.031 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.5089, allocations: 98.19 kB / 462.5 MB, free: 6.977 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8262/1.335, allocations: 169.8 MB / 0.6174 GB, free: 74.14 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.268e-06/1.335, allocations: 0 / 0.6174 GB, free: 74.14 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005884/1.336, allocations: 171.8 kB / 0.6176 GB, free: 73.97 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02391/1.36, allocations: 6.711 MB / 0.6242 GB, free: 67.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/1.36, allocations: 11.97 kB / 0.6242 GB, free: 67.17 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01176/1.372, allocations: 1.599 MB / 0.6257 GB, free: 65.56 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01733/1.389, allocations: 5.952 MB / 0.6315 GB, free: 59.53 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006048/1.39, allocations: 0.5377 MB / 0.6321 GB, free: 58.99 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002778/1.392, allocations: 0.7068 MB / 0.6328 GB, free: 58.29 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02747/1.42, allocations: 9.27 MB / 0.6418 GB, free: 48.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002837/1.42, allocations: 15.78 kB / 0.6418 GB, free: 48.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002121/1.422, allocations: 304 kB / 0.6421 GB, free: 48.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003353/1.423, allocations: 342.6 kB / 0.6424 GB, free: 48.15 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0209/1.444, allocations: 7.456 MB / 0.6497 GB, free: 40.69 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06476/1.508, allocations: 30.63 MB / 0.6796 GB, free: 9.332 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.305/1.813, allocations: 15.99 MB / 0.6953 GB, free: 56.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007693/1.821, allocations: 3.054 MB / 0.6982 GB, free: 56.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02258/1.844, allocations: 8.26 MB / 0.7063 GB, free: 55.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.419e-05/1.844, allocations: 65.81 kB / 0.7064 GB, free: 55.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 7.431e-06/1.844, allocations: 0 / 0.7064 GB, free: 55.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=294): time 0.02135/1.865, allocations: 8.454 MB / 0.7146 GB, free: 54.35 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/1.865, allocations: 81.59 kB / 0.7147 GB, free: 54.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007391/1.873, allocations: 3.192 MB / 0.7178 GB, free: 54.03 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004997/1.873, allocations: 81.7 kB / 0.7179 GB, free: 54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001963/1.875, allocations: 2.979 MB / 0.7208 GB, free: 52.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001172/1.877, allocations: 1.006 MB / 0.7218 GB, free: 51.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003096/1.877, allocations: 74.88 kB / 0.7219 GB, free: 51.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002335/1.877, allocations: 456.7 kB / 0.7223 GB, free: 51.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003197/1.88, allocations: 1.413 MB / 0.7237 GB, free: 51.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004029/1.884, allocations: 2.5 MB / 0.7261 GB, free: 50.31 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004568/1.889, allocations: 1.907 MB / 0.728 GB, free: 50.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-05/1.889, allocations: 11.81 kB / 0.728 GB, free: 50.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.01112/1.9, allocations: 4.537 MB / 0.7324 GB, free: 49.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.095e-05/1.9, allocations: 19.53 kB / 0.7324 GB, free: 49.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.162e-05/1.9, allocations: 36.91 kB / 0.7325 GB, free: 49.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/1.902, allocations: 402 kB / 0.7329 GB, free: 49.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004814/1.907, allocations: 0.8694 MB / 0.7337 GB, free: 49.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007278/1.914, allocations: 7.324 MB / 0.7409 GB, free: 44.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004497/1.918, allocations: 185 kB / 0.741 GB, free: 44.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007552/1.919, allocations: 162.8 kB / 0.7412 GB, free: 44.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 158 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (452): * Single equations (assignments): 446 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008165/1.92, allocations: 336.4 kB / 0.7415 GB, free: 44.53 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001034/1.921, allocations: 404.5 kB / 0.7419 GB, free: 44.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01008/1.931, allocations: 4.4 MB / 0.7462 GB, free: 43.85 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-05/1.931, allocations: 31.38 kB / 0.7462 GB, free: 43.85 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.282e-05/1.931, allocations: 15.39 kB / 0.7462 GB, free: 43.85 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.345e-05/1.931, allocations: 14.62 kB / 0.7463 GB, free: 43.85 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0244/1.956, allocations: 10.42 MB / 0.7564 GB, free: 39.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.975e-05/1.956, allocations: 3.469 kB / 0.7564 GB, free: 39.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002836/1.959, allocations: 454.2 kB / 0.7569 GB, free: 39.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002979/1.962, allocations: 0.8758 MB / 0.7577 GB, free: 39.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004518/1.962, allocations: 81.94 kB / 0.7578 GB, free: 39.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01908/1.981, allocations: 16.29 MB / 0.7737 GB, free: 26.28 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.034e-06/1.981, allocations: 7.547 kB / 0.7737 GB, free: 26.28 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01373/1.995, allocations: 6.711 MB / 0.7803 GB, free: 22.78 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002843/1.998, allocations: 0.8187 MB / 0.7811 GB, free: 22.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001202/1.999, allocations: 65.03 kB / 0.7811 GB, free: 22.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003073/2.002, allocations: 161.7 kB / 0.7813 GB, free: 22.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007143/2.003, allocations: 222 kB / 0.7815 GB, free: 22.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000285/2.003, allocations: 83.3 kB / 0.7816 GB, free: 22.08 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005317/2.009, allocations: 2.419 MB / 0.7839 GB, free: 21.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.056e-06/2.009, allocations: 2.156 kB / 0.7839 GB, free: 21.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006301/2.015, allocations: 1.275 MB / 0.7852 GB, free: 21.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 215 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001363/2.016, allocations: 0.7374 MB / 0.7859 GB, free: 20.72 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008529/2.025, allocations: 4.136 MB / 0.79 GB, free: 18.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.939e-06/2.025, allocations: 6.016 kB / 0.79 GB, free: 18.83 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005727/2.031, allocations: 2.857 MB / 0.7927 GB, free: 17.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006277/2.037, allocations: 1.029 MB / 0.7938 GB, free: 16.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02562/2.063, allocations: 10.25 MB / 0.8038 GB, free: 8.887 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007617/2.07, allocations: 4.361 MB / 0.808 GB, free: 5.621 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001678/2.072, allocations: 311.5 kB / 0.8083 GB, free: 5.336 MB / 442.7 MB Notification: Performance of SimCode: time 2.276e-06/2.072, allocations: 4 kB / 0.8083 GB, free: 5.332 MB / 442.7 MB Notification: Performance of Templates: time 1.005/3.078, allocations: 302 MB / 1.103 GB, free: 114.3 MB / 0.4948 GB