Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 194.9 MB / 211.2 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.885e-05/2.884e-05, allocations: 4 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3348, allocations: 44.51 MB / 303.3 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01526/0.3501, allocations: 8.66 MB / 312 MB, free: 5.023 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009055/0.3592, allocations: 3.214 MB / 315.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002092/0.3614, allocations: 79.69 kB / 315.2 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002505/0.3639, allocations: 0.5982 MB / 315.8 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004092/0.3681, allocations: 0.7086 MB / 316.6 MB, free: 420 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.3699, allocations: 295.6 kB / 316.8 MB, free: 124 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004497/0.3745, allocations: 1.436 MB / 318.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00307/0.3776, allocations: 1.434 MB / 319.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001832/0.3795, allocations: 0.7519 MB / 320.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002516/0.382, allocations: 1.09 MB / 321.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001172/0.3832, allocations: 167.9 kB / 321.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005682/0.3838, allocations: 96 kB / 321.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001247/0.3851, allocations: 0.7048 MB / 322.5 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009545/0.3861, allocations: 232 kB / 322.7 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006277/0.3924, allocations: 3.864 MB / 326.6 MB, free: 6.316 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3924, allocations: 0 / 326.6 MB, free: 6.316 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.526e-06/0.3925, allocations: 4 kB / 326.6 MB, free: 6.312 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000213/0.3927, allocations: 0 / 326.6 MB, free: 6.312 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.008705/0.4014, allocations: 2.57 MB / 329.2 MB, free: 3.688 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.4015, allocations: 15.97 kB / 329.2 MB, free: 3.672 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001763/0.4033, allocations: 344.1 kB / 329.5 MB, free: 3.332 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00507/0.4084, allocations: 1.651 MB / 331.2 MB, free: 1.625 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002806/0.4087, allocations: 185 kB / 331.4 MB, free: 1.441 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008825/0.4096, allocations: 244 kB / 331.6 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.4197, allocations: 3.22 MB / 334.8 MB, free: 13.9 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/0.4199, allocations: 11.91 kB / 334.8 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000382/0.4203, allocations: 100 kB / 334.9 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002436/0.4205, allocations: 128.9 kB / 335.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009046/0.4296, allocations: 2.701 MB / 337.8 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02764/0.4573, allocations: 10.46 MB / 348.2 MB, free: 132 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003383/0.4607, allocations: 1.323 MB / 349.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005161/0.4613, allocations: 203.2 kB / 349.7 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.223e-05/0.4614, allocations: 47.56 kB / 349.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 4.759e-06/0.4614, allocations: 0 / 349.8 MB, free: 14.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=121): time 0.02801/0.4894, allocations: 7.034 MB / 356.8 MB, free: 7.305 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.711e-05/0.4896, allocations: 72.36 kB / 356.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003874/0.4934, allocations: 1.518 MB / 358.4 MB, free: 5.707 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002966/0.4938, allocations: 45.7 kB / 358.5 MB, free: 5.656 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/0.4951, allocations: 1.208 MB / 359.7 MB, free: 4.434 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007708/0.4959, allocations: 421.9 kB / 360.1 MB, free: 4.016 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.4961, allocations: 32 kB / 360.1 MB, free: 3.984 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002508/0.4964, allocations: 374.8 kB / 360.5 MB, free: 3.609 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002168/0.4986, allocations: 0.7613 MB / 361.2 MB, free: 2.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002678/0.5013, allocations: 1.277 MB / 362.5 MB, free: 1.336 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002786/0.5041, allocations: 0.9706 MB / 363.5 MB, free: 372 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-05/0.5042, allocations: 4 kB / 363.5 MB, free: 368 kB / 298.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.006715/0.5109, allocations: 2.339 MB / 365.8 MB, free: 14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.511, allocations: 12 kB / 365.8 MB, free: 13.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.88e-05/0.5111, allocations: 19.94 kB / 365.9 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.5121, allocations: 243.6 kB / 366.1 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003093/0.5152, allocations: 415.3 kB / 366.5 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004119/0.5194, allocations: 3.037 MB / 369.5 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002379/0.5218, allocations: 119.8 kB / 369.7 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002593/0.5221, allocations: 71.98 kB / 369.7 MB, free: 9.816 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 193 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002258/0.5244, allocations: 0.8135 MB / 370.5 MB, free: 8.992 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000645/0.5251, allocations: 185.7 kB / 370.7 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005638/0.5307, allocations: 2.015 MB / 372.7 MB, free: 6.77 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-05/0.5308, allocations: 16 kB / 372.7 MB, free: 6.754 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.5308, allocations: 0 / 372.7 MB, free: 6.754 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.316e-05/0.5308, allocations: 7.969 kB / 372.8 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/0.5449, allocations: 4.7 MB / 377.5 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/0.545, allocations: 0 / 377.5 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002325/0.5473, allocations: 259.9 kB / 377.7 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.5484, allocations: 199.3 kB / 377.9 MB, free: 1.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002956/0.5487, allocations: 24 kB / 377.9 MB, free: 1.457 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004051/0.5528, allocations: 3.025 MB / 381 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.5528, allocations: 3.938 kB / 381 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008562/0.5614, allocations: 3.248 MB / 384.2 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/0.563, allocations: 422.7 kB / 384.6 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006697/0.5637, allocations: 27.98 kB / 384.6 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002054/0.5658, allocations: 91.88 kB / 384.7 MB, free: 10.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004134/0.5663, allocations: 80.84 kB / 384.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/0.5664, allocations: 36.06 kB / 384.8 MB, free: 10.14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003267/0.5697, allocations: 1.161 MB / 386 MB, free: 8.992 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.132e-06/0.5698, allocations: 0 / 386 MB, free: 8.992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002788/0.5726, allocations: 484 kB / 386.5 MB, free: 8.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 115 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006208/0.5733, allocations: 155 kB / 386.6 MB, free: 8.355 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006114/0.5794, allocations: 2.323 MB / 389 MB, free: 5.965 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/0.5795, allocations: 4.188 kB / 389 MB, free: 5.961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003325/0.5828, allocations: 1.331 MB / 390.3 MB, free: 4.562 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003857/0.5867, allocations: 443.1 kB / 390.7 MB, free: 4.129 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/0.6021, allocations: 5.827 MB / 396.6 MB, free: 14.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00386/0.6061, allocations: 2.02 MB / 398.6 MB, free: 12.17 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00117/0.6073, allocations: 147.4 kB / 398.7 MB, free: 12.03 MB / 346.7 MB Notification: Performance of SimCode: time 1.583e-06/0.6074, allocations: 4 kB / 398.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of Templates: time 0.388/0.9953, allocations: 77.36 MB / 476.1 MB, free: 64.84 MB / 362.7 MB