Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.688/1.688, allocations: 171.1 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.564e-05/2.56e-05, allocations: 0 / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.08506, allocations: 38.78 MB / 266.9 MB, free: 1.109 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01376/0.09887, allocations: 8.131 MB / 275 MB, free: 8.938 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007857/0.1068, allocations: 3.013 MB / 278 MB, free: 5.918 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001693/0.1085, allocations: 63.81 kB / 278.1 MB, free: 5.855 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00226/0.1108, allocations: 0.5515 MB / 278.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00342/0.1143, allocations: 0.6579 MB / 279.3 MB, free: 4.641 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.1158, allocations: 259.7 kB / 279.6 MB, free: 4.387 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.004169/0.12, allocations: 1.345 MB / 280.9 MB, free: 3.039 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002791/0.1228, allocations: 1.226 MB / 282.1 MB, free: 1.797 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.1246, allocations: 0.7206 MB / 282.9 MB, free: 1.074 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002431/0.1271, allocations: 0.95 MB / 283.8 MB, free: 124 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.1283, allocations: 163.9 kB / 284 MB, free: 15.96 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005654/0.1289, allocations: 92 kB / 284.1 MB, free: 15.87 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001241/0.1301, allocations: 0.6074 MB / 284.7 MB, free: 15.26 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009292/0.1311, allocations: 224 kB / 284.9 MB, free: 15.04 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005819/0.1369, allocations: 3.409 MB / 288.3 MB, free: 11.62 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.137, allocations: 0 / 288.3 MB, free: 11.62 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.137, allocations: 0 / 288.3 MB, free: 11.62 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000153/0.1372, allocations: 0 / 288.3 MB, free: 11.62 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: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.007965/0.1451, allocations: 2.343 MB / 290.6 MB, free: 9.223 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.1452, allocations: 12.03 kB / 290.7 MB, free: 9.211 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/0.1469, allocations: 308.5 kB / 291 MB, free: 8.906 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004461/0.1514, allocations: 1.43 MB / 292.4 MB, free: 7.418 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002467/0.1517, allocations: 168.4 kB / 292.5 MB, free: 7.25 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008021/0.1526, allocations: 216 kB / 292.8 MB, free: 7.039 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009626/0.1622, allocations: 2.878 MB / 295.6 MB, free: 4.074 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.1624, allocations: 7.891 kB / 295.6 MB, free: 4.066 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004034/0.1628, allocations: 95.98 kB / 295.7 MB, free: 3.973 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002129/0.163, allocations: 112.3 kB / 295.8 MB, free: 3.859 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008569/0.1716, allocations: 2.418 MB / 298.3 MB, free: 1.426 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2517/0.4234, allocations: 9.016 MB / 307.3 MB, free: 24.56 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0039/0.4273, allocations: 1.687 MB / 309 MB, free: 23.52 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003783/0.4278, allocations: 123.4 kB / 309.1 MB, free: 23.42 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.4278, allocations: 46.45 kB / 309.1 MB, free: 23.37 MB / 250.7 MB Notification: Performance of pre-optimization done (n=103): time 4.118e-06/0.4278, allocations: 0 / 309.1 MB, free: 23.37 MB / 250.7 MB Notification: Performance of matching and sorting (n=123): time 0.02913/0.457, allocations: 7.33 MB / 316.5 MB, free: 19.67 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.4571, allocations: 64.19 kB / 316.5 MB, free: 19.6 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002663/0.4597, allocations: 1.257 MB / 317.8 MB, free: 18.93 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002896/0.4601, allocations: 45.61 kB / 317.8 MB, free: 18.88 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007387/0.4608, allocations: 1.044 MB / 318.9 MB, free: 17.93 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000568/0.4614, allocations: 435.1 kB / 319.3 MB, free: 17.57 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.4616, allocations: 31.38 kB / 319.3 MB, free: 17.54 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4617, allocations: 374 kB / 319.7 MB, free: 17.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001987/0.4637, allocations: 0.7439 MB / 320.4 MB, free: 16.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/0.4661, allocations: 1.159 MB / 321.6 MB, free: 15.91 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002332/0.4684, allocations: 0.928 MB / 322.5 MB, free: 15.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.41e-05/0.4685, allocations: 3.062 kB / 322.5 MB, free: 15.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.006741/0.4753, allocations: 2.514 MB / 325 MB, free: 13.16 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.4753, allocations: 8 kB / 325 MB, free: 13.15 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.804e-05/0.4754, allocations: 16 kB / 325.1 MB, free: 13.14 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/0.4776, allocations: 0.5412 MB / 325.6 MB, free: 12.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002484/0.4801, allocations: 347.5 kB / 325.9 MB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/0.4915, allocations: 6.512 MB / 332.5 MB, free: 5.473 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002178/0.4938, allocations: 112 kB / 332.6 MB, free: 5.363 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000287/0.4941, allocations: 63.98 kB / 332.6 MB, free: 5.301 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001791/0.4959, allocations: 0.7119 MB / 333.3 MB, free: 4.578 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005368/0.4964, allocations: 169.8 kB / 333.5 MB, free: 4.41 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006555/0.503, allocations: 2.31 MB / 335.8 MB, free: 2.086 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.93e-05/0.5031, allocations: 15.98 kB / 335.8 MB, free: 2.07 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.3e-05/0.5031, allocations: 7.938 kB / 335.8 MB, free: 2.062 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.336e-05/0.5032, allocations: 7.969 kB / 335.8 MB, free: 2.055 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01443/0.5176, allocations: 4.781 MB / 340.6 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.78e-05/0.5177, allocations: 0 / 340.6 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001899/0.5196, allocations: 212 kB / 340.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002847/0.5225, allocations: 0.5842 MB / 341.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002336/0.5228, allocations: 31.98 kB / 341.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01555/0.5383, allocations: 7.988 MB / 349.4 MB, free: 3.969 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.5384, allocations: 4 kB / 349.4 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00981/0.5482, allocations: 3.474 MB / 352.9 MB, free: 392 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/0.5497, allocations: 390.9 kB / 353.3 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004743/0.5502, allocations: 32.19 kB / 353.3 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/0.5518, allocations: 95.83 kB / 353.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003545/0.5522, allocations: 96.81 kB / 353.5 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.5523, allocations: 35.98 kB / 353.6 MB, free: 15.73 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.002234/0.5546, allocations: 0.9681 MB / 354.5 MB, free: 14.76 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5546, allocations: 0 / 354.5 MB, free: 14.76 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002543/0.5572, allocations: 496 kB / 355 MB, free: 14.28 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 97 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000562/0.5578, allocations: 154.7 kB / 355.2 MB, free: 14.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.006805/0.5646, allocations: 2.33 MB / 357.5 MB, free: 11.74 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.5646, allocations: 0 / 357.5 MB, free: 11.74 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004537/0.5692, allocations: 1.478 MB / 359 MB, free: 10.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003504/0.5727, allocations: 431.9 kB / 359.4 MB, free: 9.805 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/0.5864, allocations: 5.561 MB / 364.9 MB, free: 4.184 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002407/0.5889, allocations: 1.886 MB / 366.8 MB, free: 2.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007881/0.5897, allocations: 119.4 kB / 367 MB, free: 2.152 MB / 282.7 MB Notification: Performance of SimCode: time 1.503e-06/0.5897, allocations: 0 / 367 MB, free: 2.152 MB / 282.7 MB Notification: Performance of Templates: time 0.1282/0.7179, allocations: 58.26 MB / 425.2 MB, free: 7.836 MB / 346.7 MB