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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.893/1.893, allocations: 171.1 MB / 186.3 MB, free: 1.316 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.438e-05, allocations: 10.19 kB / 228.1 MB, free: 7.957 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08336/0.08342, allocations: 38.76 MB / 266.9 MB, free: 1.109 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.03054/0.114, allocations: 17.46 MB / 284.4 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01542/0.1295, allocations: 5.241 MB / 289.6 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004352/0.1339, allocations: 183.4 kB / 289.8 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004734/0.1387, allocations: 1.025 MB / 290.8 MB, free: 9.105 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008135/0.1469, allocations: 1.522 MB / 292.3 MB, free: 7.578 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005158/0.1521, allocations: 0.9017 MB / 293.2 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.01231/0.1645, allocations: 4.125 MB / 297.4 MB, free: 2.551 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2444/0.4089, allocations: 3.829 MB / 301.2 MB, free: 5.746 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005861/0.4149, allocations: 1.936 MB / 303.1 MB, free: 5.742 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00759/0.4225, allocations: 2.483 MB / 305.6 MB, free: 5.738 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004297/0.4269, allocations: 370.4 kB / 306 MB, free: 5.738 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002852/0.4298, allocations: 250.5 kB / 306.2 MB, free: 5.738 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004273/0.4341, allocations: 1.323 MB / 307.5 MB, free: 5.734 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004138/0.4383, allocations: 0.5833 MB / 308.1 MB, free: 5.734 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01731/0.4557, allocations: 11.2 MB / 319.3 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4557, allocations: 0 / 319.3 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.516e-06/0.4557, allocations: 0 / 319.3 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0005218/0.4563, allocations: 0 / 319.3 MB, free: 0.6836 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.02985/0.4861, allocations: 6.697 MB / 326 MB, free: 13.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.4862, allocations: 9.875 kB / 326 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00996/0.4962, allocations: 1.215 MB / 327.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01387/0.5101, allocations: 4.088 MB / 331.3 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008343/0.511, allocations: 490.5 kB / 331.8 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003209/0.5142, allocations: 0.6446 MB / 332.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03352/0.5478, allocations: 8.701 MB / 341.2 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004052/0.5483, allocations: 7.375 kB / 341.2 MB, free: 4.676 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002637/0.5509, allocations: 267.4 kB / 341.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005304/0.5515, allocations: 305.2 kB / 341.7 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02749/0.579, allocations: 7.149 MB / 348.9 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07998/0.6591, allocations: 26.49 MB / 375.4 MB, free: 2.422 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01183/0.671, allocations: 5.368 MB / 380.7 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004411/0.6715, allocations: 28.81 kB / 380.8 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.777e-05/0.6716, allocations: 64.56 kB / 380.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=254): time 6.201e-06/0.6716, allocations: 0 / 380.8 MB, free: 12.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=296): time 0.05581/0.7274, allocations: 13.21 MB / 394 MB, free: 15.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.65e-05/0.7276, allocations: 81.73 kB / 394.1 MB, free: 15.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008958/0.7366, allocations: 2.81 MB / 396.9 MB, free: 12.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007419/0.7374, allocations: 79.67 kB / 397 MB, free: 12.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003884/0.7413, allocations: 2.664 MB / 399.7 MB, free: 9.551 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002162/0.7435, allocations: 1.01 MB / 400.7 MB, free: 8.551 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005535/0.7441, allocations: 68 kB / 400.7 MB, free: 8.484 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004943/0.7446, allocations: 450.3 kB / 401.2 MB, free: 8.035 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006981/0.7516, allocations: 1.529 MB / 402.7 MB, free: 6.504 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008373/0.7601, allocations: 2.463 MB / 405.2 MB, free: 3.656 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008658/0.7688, allocations: 2.002 MB / 407.2 MB, free: 1.664 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.733e-05/0.7689, allocations: 8 kB / 407.2 MB, free: 1.656 MB / 330.7 MB Notification: Performance of matching and sorting (n=448) (initialization): time 0.02325/0.7922, allocations: 5.164 MB / 412.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.898e-05/0.7923, allocations: 16 kB / 412.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-05/0.7924, allocations: 28 kB / 412.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005579/0.798, allocations: 0.909 MB / 413.3 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007788/0.8058, allocations: 0.7361 MB / 414 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03083/0.8367, allocations: 14.73 MB / 428.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004591/0.8414, allocations: 147.8 kB / 428.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008048/0.8423, allocations: 148 kB / 429.1 MB, free: 11.22 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.00648/0.8488, allocations: 2.054 MB / 431.1 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/0.85, allocations: 375.3 kB / 431.5 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01565/0.8656, allocations: 4.778 MB / 436.2 MB, free: 3.996 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.875e-05/0.8657, allocations: 28 kB / 436.3 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.786e-05/0.8658, allocations: 16 kB / 436.3 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-05/0.8659, allocations: 15.94 kB / 436.3 MB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2858/1.152, allocations: 11.65 MB / 448 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.179e-05/1.152, allocations: 4.812 kB / 448 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004019/1.156, allocations: 438.6 kB / 448.4 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004726/1.161, allocations: 1.048 MB / 449.4 MB, free: 113.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006721/1.161, allocations: 71.61 kB / 449.5 MB, free: 113.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02998/1.191, allocations: 18.4 MB / 467.9 MB, free: 99.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.976e-06/1.191, allocations: 8.562 kB / 467.9 MB, free: 99.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01899/1.21, allocations: 7.318 MB / 475.2 MB, free: 96.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003207/1.214, allocations: 0.7707 MB / 476 MB, free: 95.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001875/1.216, allocations: 62.94 kB / 476.1 MB, free: 95.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004192/1.22, allocations: 139.6 kB / 476.2 MB, free: 95.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001/1.221, allocations: 225.7 kB / 476.4 MB, free: 95.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003607/1.221, allocations: 84 kB / 476.5 MB, free: 95.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005755/1.227, allocations: 2.15 MB / 478.7 MB, free: 94.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.72e-07/1.227, allocations: 0 / 478.7 MB, free: 94.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007103/1.234, allocations: 1.152 MB / 479.8 MB, free: 94 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.0008704/1.235, allocations: 196.9 kB / 480 MB, free: 93.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01368/1.249, allocations: 5.074 MB / 485.1 MB, free: 89.17 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.459e-05/1.249, allocations: 2.188 kB / 485.1 MB, free: 89.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00924/1.258, allocations: 3.258 MB / 488.3 MB, free: 86.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007587/1.266, allocations: 0.9455 MB / 489.3 MB, free: 85.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03485/1.301, allocations: 14.39 MB / 0.4919 GB, free: 71.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008396/1.309, allocations: 4.213 MB / 0.496 GB, free: 67.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001645/1.311, allocations: 259.4 kB / 0.4962 GB, free: 67.34 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/1.311, allocations: 0 / 0.4962 GB, free: 67.34 MB / 362.7 MB Notification: Performance of Templates: time 0.9673/2.278, allocations: 309.8 MB / 0.7988 GB, free: 52.79 MB / 378.7 MB