Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase") Notification: Performance of loadModel(Modelica): time 2.239/2.239, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.667e-05/2.659e-05, allocations: 4 kB / 294.6 MB, free: 11.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1106, allocations: 50.41 MB / 345 MB, free: 8.902 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.03178/0.1424, allocations: 18.38 MB / 363.4 MB, free: 6.457 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01639/0.1589, allocations: 5.726 MB / 369.1 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004671/0.1636, allocations: 191.4 kB / 369.3 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004981/0.1687, allocations: 1.064 MB / 370.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008839/0.1776, allocations: 1.764 MB / 372.1 MB, free: 13.69 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004919/0.1825, allocations: 0.8928 MB / 373 MB, free: 12.79 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01239/0.1949, allocations: 4.309 MB / 377.3 MB, free: 8.473 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009547/0.2045, allocations: 3.875 MB / 381.2 MB, free: 4.574 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005117/0.2097, allocations: 2.034 MB / 383.2 MB, free: 2.535 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006233/0.216, allocations: 2.636 MB / 385.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003391/0.2194, allocations: 423.8 kB / 386.3 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002083/0.2216, allocations: 256 kB / 386.5 MB, free: 15.23 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002872/0.2245, allocations: 1.362 MB / 387.9 MB, free: 13.86 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003022/0.2275, allocations: 0.6055 MB / 388.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01877/0.2463, allocations: 11.6 MB / 400.1 MB, free: 1.617 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2464, allocations: 7.938 kB / 400.1 MB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.2464, allocations: 0 / 400.1 MB, free: 1.609 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000446/0.2469, allocations: 0 / 400.1 MB, free: 1.609 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.3149/0.5618, allocations: 6.991 MB / 407.1 MB, free: 40.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.5619, allocations: 9.469 kB / 407.1 MB, free: 40.79 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01551/0.5774, allocations: 1.67 MB / 408.8 MB, free: 40.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0153/0.5927, allocations: 4.561 MB / 413.4 MB, free: 37.42 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001012/0.5938, allocations: 0.5216 MB / 413.9 MB, free: 37.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003066/0.5969, allocations: 0.6862 MB / 414.6 MB, free: 36.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03291/0.6298, allocations: 9.352 MB / 423.9 MB, free: 31.44 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003373/0.6302, allocations: 11.78 kB / 423.9 MB, free: 31.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002263/0.6325, allocations: 291.3 kB / 424.2 MB, free: 31.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004021/0.633, allocations: 327.4 kB / 424.5 MB, free: 31.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02579/0.6588, allocations: 8.057 MB / 432.6 MB, free: 23.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0758/0.7346, allocations: 28.85 MB / 461.4 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02666/0.7613, allocations: 16.51 MB / 477.9 MB, free: 7.664 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02049/0.7819, allocations: 6.484 MB / 484.4 MB, free: 1.098 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.74e-05/0.782, allocations: 64.75 kB / 484.5 MB, free: 1.023 MB / 362.7 MB Notification: Performance of pre-optimization done (n=277): time 6.382e-06/0.782, allocations: 3.938 kB / 484.5 MB, free: 1.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=285): time 0.0471/0.8292, allocations: 11.92 MB / 496.4 MB, free: 4.805 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.028e-05/0.8293, allocations: 85.61 kB / 496.5 MB, free: 4.707 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007875/0.8372, allocations: 2.894 MB / 499.4 MB, free: 1.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005892/0.8378, allocations: 73.7 kB / 499.5 MB, free: 1.742 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003051/0.8409, allocations: 2.806 MB / 0.4905 GB, free: 14.91 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001612/0.8425, allocations: 0.9805 MB / 0.4915 GB, free: 13.94 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003634/0.8429, allocations: 72 kB / 0.4915 GB, free: 13.87 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003287/0.8433, allocations: 450.2 kB / 0.492 GB, free: 13.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00467/0.848, allocations: 1.451 MB / 0.4934 GB, free: 11.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005761/0.8538, allocations: 2.452 MB / 0.4958 GB, free: 9.086 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005788/0.8596, allocations: 1.904 MB / 0.4976 GB, free: 7.164 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.653e-05/0.8597, allocations: 8 kB / 0.4976 GB, free: 7.156 MB / 394.7 MB Notification: Performance of matching and sorting (n=447) (initialization): time 0.01432/0.874, allocations: 4.629 MB / 0.5022 GB, free: 2.453 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.236e-05/0.8741, allocations: 20 kB / 0.5022 GB, free: 2.434 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.697e-05/0.8742, allocations: 32 kB / 0.5022 GB, free: 2.402 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001748/0.876, allocations: 435.5 kB / 0.5026 GB, free: 1.961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006553/0.8825, allocations: 0.8112 MB / 0.5034 GB, free: 1.148 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/0.8937, allocations: 7.72 MB / 0.5109 GB, free: 8.902 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004462/0.8982, allocations: 164 kB / 0.5111 GB, free: 8.742 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007821/0.899, allocations: 148 kB / 0.5112 GB, free: 8.598 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 138 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (419): * Single equations (assignments): 413 * 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%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006164/0.9052, allocations: 2.074 MB / 0.5133 GB, free: 6.512 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001168/0.9064, allocations: 371.4 kB / 0.5136 GB, free: 6.145 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01447/0.9209, allocations: 4.481 MB / 0.518 GB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.146e-05/0.921, allocations: 28 kB / 0.518 GB, free: 1.531 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.443e-05/0.921, allocations: 12 kB / 0.518 GB, free: 1.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.769e-05/0.9211, allocations: 19.89 kB / 0.5181 GB, free: 1.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03165/0.9528, allocations: 10.59 MB / 0.5284 GB, free: 6.742 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-05/0.9528, allocations: 8.062 kB / 0.5284 GB, free: 6.734 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004231/0.9571, allocations: 451.3 kB / 0.5288 GB, free: 6.293 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003909/0.961, allocations: 0.8506 MB / 0.5297 GB, free: 5.426 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005634/0.9617, allocations: 71.98 kB / 0.5297 GB, free: 5.355 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02745/0.9891, allocations: 16.28 MB / 0.5456 GB, free: 4.176 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/0.9892, allocations: 7.938 kB / 0.5456 GB, free: 4.168 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01915/1.008, allocations: 6.758 MB / 0.5522 GB, free: 13.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00284/1.011, allocations: 0.7619 MB / 0.553 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001403/1.013, allocations: 67.98 kB / 0.553 GB, free: 12.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003867/1.017, allocations: 143.9 kB / 0.5532 GB, free: 12.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009023/1.018, allocations: 217.7 kB / 0.5534 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003296/1.018, allocations: 87.98 kB / 0.5535 GB, free: 11.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006032/1.024, allocations: 2.207 MB / 0.5556 GB, free: 9.602 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.024, allocations: 0 / 0.5556 GB, free: 9.602 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006289/1.03, allocations: 1.147 MB / 0.5568 GB, free: 8.457 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (217): * Single equations (assignments): 210 * 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 {(4,93.8%) 33,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009661/1.031, allocations: 222.1 kB / 0.557 GB, free: 8.234 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01208/1.043, allocations: 4.29 MB / 0.5612 GB, free: 3.832 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/1.043, allocations: 0 / 0.5612 GB, free: 3.832 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008487/1.052, allocations: 2.972 MB / 0.5641 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.3281/1.38, allocations: 0.9246 MB / 0.565 GB, free: 153.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03811/1.418, allocations: 14.55 MB / 0.5792 GB, free: 147.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008938/1.427, allocations: 4.249 MB / 0.5833 GB, free: 145.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001849/1.429, allocations: 282 kB / 0.5836 GB, free: 145.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.533e-06/1.429, allocations: 0 / 0.5836 GB, free: 145.9 MB / 458.7 MB Notification: Performance of Templates: time 0.7801/2.209, allocations: 284.7 MB / 0.8616 GB, free: 29.74 MB / 458.7 MB