Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.strayReluctance.port_p.Phi.im|smr3.stator.strayReluctance.port_p.Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.697/1.697, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.345e-05/3.356e-05, allocations: 2.188 kB / 228.2 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 38.77 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.04322/0.1548, allocations: 17.47 MB / 284.4 MB, free: 14.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01975/0.1746, allocations: 5.253 MB / 289.6 MB, free: 9.668 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004603/0.1793, allocations: 183.4 kB / 289.8 MB, free: 9.488 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005197/0.1845, allocations: 1.017 MB / 290.8 MB, free: 8.465 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007241/0.1918, allocations: 1.522 MB / 292.4 MB, free: 6.938 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004503/0.1963, allocations: 0.9135 MB / 293.3 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01115/0.2075, allocations: 4.118 MB / 297.4 MB, free: 1.906 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2312/0.4388, allocations: 3.828 MB / 301.2 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004796/0.4436, allocations: 1.943 MB / 303.2 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007092/0.4508, allocations: 2.481 MB / 305.6 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003985/0.4548, allocations: 370.8 kB / 306 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002543/0.4574, allocations: 250.4 kB / 306.2 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003563/0.461, allocations: 1.321 MB / 307.6 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003738/0.4648, allocations: 0.5834 MB / 308.2 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01606/0.4809, allocations: 11.2 MB / 319.3 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.481, allocations: 0 / 319.3 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.481, allocations: 0 / 319.3 MB, free: 1.059 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0004813/0.4815, allocations: 0 / 319.3 MB, free: 1.059 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.02825/0.5097, allocations: 6.693 MB / 326 MB, free: 13.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.5098, allocations: 11.47 kB / 326.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00926/0.519, allocations: 1.216 MB / 327.3 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01248/0.5316, allocations: 4.078 MB / 331.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006796/0.5323, allocations: 492.9 kB / 331.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002578/0.5349, allocations: 0.6443 MB / 332.5 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03102/0.5659, allocations: 8.703 MB / 341.2 MB, free: 4.184 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002669/0.5663, allocations: 11.89 kB / 341.2 MB, free: 4.172 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002064/0.5683, allocations: 267.3 kB / 341.4 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004444/0.5688, allocations: 297.2 kB / 341.7 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02577/0.5946, allocations: 7.159 MB / 348.9 MB, free: 12.45 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07487/0.6695, allocations: 26.48 MB / 375.4 MB, free: 1.922 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/0.6812, allocations: 5.384 MB / 380.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003823/0.6816, allocations: 28.89 kB / 380.8 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.255e-05/0.6817, allocations: 64.56 kB / 380.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=254): time 5.982e-06/0.6817, allocations: 0 / 380.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=296): time 0.05348/0.7352, allocations: 13.22 MB / 394.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.097e-05/0.7354, allocations: 81.73 kB / 394.2 MB, free: 14.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008008/0.7434, allocations: 2.814 MB / 397 MB, free: 11.87 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005904/0.744, allocations: 77.7 kB / 397 MB, free: 11.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003375/0.7474, allocations: 2.835 MB / 399.9 MB, free: 8.926 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001713/0.7492, allocations: 1.015 MB / 400.9 MB, free: 7.918 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003902/0.7496, allocations: 71.94 kB / 401 MB, free: 7.848 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003708/0.75, allocations: 449.4 kB / 401.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004948/0.755, allocations: 1.529 MB / 402.9 MB, free: 5.871 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005977/0.761, allocations: 2.464 MB / 405.4 MB, free: 3.027 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00613/0.7672, allocations: 1.996 MB / 407.4 MB, free: 1.039 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-05/0.7672, allocations: 11.95 kB / 407.4 MB, free: 1.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=448) (initialization): time 0.01818/0.7854, allocations: 5.387 MB / 412.8 MB, free: 11.76 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/0.7855, allocations: 20 kB / 412.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.54e-05/0.7856, allocations: 31.98 kB / 412.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004062/0.7897, allocations: 0.9059 MB / 413.7 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00579/0.7955, allocations: 0.7336 MB / 414.5 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02641/0.822, allocations: 14.72 MB / 429.2 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004342/0.8264, allocations: 143.8 kB / 429.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006913/0.8271, allocations: 151.9 kB / 429.5 MB, free: 10.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 128 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (382): * Single equations (assignments): 374 * 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: 6 * 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: 6 {(4,93.8%) 16,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 16,(1,100.0%) 1,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00619/0.8333, allocations: 2.051 MB / 431.5 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/0.8345, allocations: 367.5 kB / 431.9 MB, free: 7.988 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01528/0.8498, allocations: 4.785 MB / 436.7 MB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.322e-05/0.8499, allocations: 28 kB / 436.7 MB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.216e-05/0.85, allocations: 12 kB / 436.7 MB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.551e-05/0.8501, allocations: 19.94 kB / 436.7 MB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2793/1.129, allocations: 11.65 MB / 448.4 MB, free: 113.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-05/1.129, allocations: 6.328 kB / 448.4 MB, free: 113.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003777/1.133, allocations: 438.9 kB / 448.8 MB, free: 113.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004328/1.138, allocations: 1.047 MB / 449.9 MB, free: 113.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005444/1.138, allocations: 74.94 kB / 449.9 MB, free: 113.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02797/1.166, allocations: 18.4 MB / 468.3 MB, free: 99.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/1.166, allocations: 11.34 kB / 468.4 MB, free: 99.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01708/1.183, allocations: 7.311 MB / 475.7 MB, free: 95.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002789/1.186, allocations: 0.7755 MB / 476.4 MB, free: 95.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001341/1.188, allocations: 70.25 kB / 476.5 MB, free: 95.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003699/1.191, allocations: 129.6 kB / 476.6 MB, free: 95.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009356/1.192, allocations: 230.9 kB / 476.9 MB, free: 95.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003196/1.193, allocations: 86.69 kB / 476.9 MB, free: 95.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005488/1.198, allocations: 2.15 MB / 479.1 MB, free: 94.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.198, allocations: 0 / 479.1 MB, free: 94.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006346/1.205, allocations: 1.152 MB / 480.2 MB, free: 93.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.stator.strayReluctance.Phi.re,smr3.stator.strayReluctance.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 (216): * Single equations (assignments): 209 * 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%) 16,(1,100.0%) 5,(4,93.8%) 16,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008076/1.205, allocations: 204.5 kB / 480.4 MB, free: 93.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01259/1.218, allocations: 5.082 MB / 485.5 MB, free: 88.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/1.218, allocations: 0 / 485.5 MB, free: 88.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008613/1.227, allocations: 3.257 MB / 488.8 MB, free: 85.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007125/1.234, allocations: 0.9328 MB / 489.7 MB, free: 85.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03339/1.267, allocations: 14.45 MB / 0.4924 GB, free: 71.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007474/1.275, allocations: 4.314 MB / 0.4966 GB, free: 67.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004368/1.279, allocations: 0.739 MB / 0.4973 GB, free: 66.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001244/1.281, allocations: 235.4 kB / 0.4975 GB, free: 66.06 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/1.281, allocations: 0 / 0.4975 GB, free: 66.06 MB / 362.7 MB Notification: Performance of Templates: time 0.1941/1.475, allocations: 54.56 MB / 0.5508 GB, free: 11.51 MB / 362.7 MB