Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadModel(ModelicaTest): time 2.495/2.495, allocations: 269 MB / 284.1 MB, free: 3.562 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.909e-05/2.91e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1327, allocations: 61.89 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01561/0.1484, allocations: 9.263 MB / 420.2 MB, free: 3.551 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.009109/0.1576, allocations: 3.417 MB / 423.6 MB, free: 124 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002099/0.1597, allocations: 95.69 kB / 423.7 MB, free: 28 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.3271/0.4869, allocations: 0.6305 MB / 424.3 MB, free: 3.855 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004403/0.4913, allocations: 0.7806 MB / 425.1 MB, free: 3.844 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002034/0.4934, allocations: 326 kB / 425.4 MB, free: 3.844 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005529/0.4989, allocations: 1.621 MB / 427 MB, free: 3.832 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004238/0.5032, allocations: 1.714 MB / 428.8 MB, free: 3.602 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003008/0.5063, allocations: 0.8509 MB / 429.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003736/0.5101, allocations: 1.239 MB / 430.8 MB, free: 3.598 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002124/0.5123, allocations: 192.1 kB / 431 MB, free: 3.598 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007723/0.5131, allocations: 109.3 kB / 431.1 MB, free: 3.598 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001677/0.5148, allocations: 0.7986 MB / 431.9 MB, free: 3.598 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001832/0.5166, allocations: 257 kB / 432.2 MB, free: 3.594 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008506/0.5252, allocations: 4.421 MB / 436.6 MB, free: 3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.5252, allocations: 2.906 kB / 436.6 MB, free: 3 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.5252, allocations: 0 / 436.6 MB, free: 3 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002402/0.5255, allocations: 0 / 436.6 MB, free: 3 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01063/0.5361, allocations: 2.931 MB / 439.5 MB, free: 1.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.5362, allocations: 9.156 kB / 439.6 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002666/0.5389, allocations: 390.4 kB / 439.9 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006815/0.5457, allocations: 1.995 MB / 441.9 MB, free: 268 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000345/0.5461, allocations: 221.8 kB / 442.1 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001284/0.5474, allocations: 283.7 kB / 442.4 MB, free: 252 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01382/0.5613, allocations: 3.677 MB / 446.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001471/0.5615, allocations: 11.06 kB / 446.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000629/0.5621, allocations: 118.7 kB / 446.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002482/0.5624, allocations: 148.4 kB / 446.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01228/0.5747, allocations: 3.129 MB / 449.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03525/0.61, allocations: 11.49 MB / 461 MB, free: 4.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005703/0.6157, allocations: 2.119 MB / 463.1 MB, free: 2.672 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005206/0.6163, allocations: 215 kB / 463.3 MB, free: 2.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/0.6164, allocations: 59.81 kB / 463.4 MB, free: 2.363 MB / 362.7 MB Notification: Performance of pre-optimization done (n=139): time 4.077e-06/0.6164, allocations: 0 / 463.4 MB, free: 2.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=154): time 0.03316/0.6496, allocations: 7.936 MB / 471.3 MB, free: 10.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.187e-05/0.6497, allocations: 68.72 kB / 471.4 MB, free: 10.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004587/0.6543, allocations: 1.669 MB / 473 MB, free: 8.578 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004398/0.6548, allocations: 49.7 kB / 473.1 MB, free: 8.523 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001373/0.6562, allocations: 1.285 MB / 474.4 MB, free: 7.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009534/0.6571, allocations: 0.5235 MB / 474.9 MB, free: 6.711 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.6573, allocations: 36 kB / 474.9 MB, free: 6.676 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002201/0.6576, allocations: 382.8 kB / 475.3 MB, free: 6.293 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/0.6602, allocations: 0.8667 MB / 476.2 MB, free: 5.426 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003104/0.6633, allocations: 1.329 MB / 477.5 MB, free: 3.898 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003317/0.6667, allocations: 1.084 MB / 478.6 MB, free: 2.816 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/0.6668, allocations: 7.938 kB / 478.6 MB, free: 2.809 MB / 378.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.008447/0.6752, allocations: 2.742 MB / 481.3 MB, free: 28 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.34e-05/0.6753, allocations: 14.66 kB / 481.4 MB, free: 16 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.234e-05/0.6753, allocations: 16.39 kB / 481.4 MB, free: 0 / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001472/0.6768, allocations: 359.2 kB / 481.7 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003743/0.6806, allocations: 471.2 kB / 482.2 MB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009303/0.6899, allocations: 6.084 MB / 488.3 MB, free: 8.691 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003106/0.6931, allocations: 131.7 kB / 488.4 MB, free: 8.562 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004081/0.6936, allocations: 72 kB / 488.5 MB, free: 8.492 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 206 * 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: 3 * 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: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003134/0.6967, allocations: 0.8993 MB / 489.4 MB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008399/0.6976, allocations: 205.5 kB / 489.6 MB, free: 7.379 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009548/0.7071, allocations: 2.89 MB / 492.5 MB, free: 4.473 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.72e-05/0.7072, allocations: 19.94 kB / 492.5 MB, free: 4.453 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.806e-05/0.7072, allocations: 8 kB / 492.5 MB, free: 4.445 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-05/0.7073, allocations: 7.969 kB / 492.5 MB, free: 4.438 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02027/0.7276, allocations: 6.033 MB / 498.5 MB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.982e-05/0.7276, allocations: 4.375 kB / 498.5 MB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002232/0.7299, allocations: 235.6 kB / 498.8 MB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003807/0.7337, allocations: 0.8001 MB / 499.6 MB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003177/0.7341, allocations: 43.97 kB / 499.6 MB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0207/0.7548, allocations: 10.13 MB / 0.4978 GB, free: 2.699 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/0.7548, allocations: 7.938 kB / 0.4978 GB, free: 2.691 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01224/0.7671, allocations: 4.372 MB / 0.5021 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/0.7691, allocations: 486.3 kB / 0.5025 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007342/0.7698, allocations: 36 kB / 0.5026 GB, free: 13.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002175/0.772, allocations: 91.89 kB / 0.5027 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004118/0.7725, allocations: 125 kB / 0.5028 GB, free: 13.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001852/0.7727, allocations: 47.98 kB / 0.5028 GB, free: 13.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003388/0.7761, allocations: 1.282 MB / 0.5041 GB, free: 12.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.346e-06/0.7761, allocations: 112 / 0.5041 GB, free: 12.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003581/0.7797, allocations: 0.5742 MB / 0.5046 GB, free: 11.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * 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 {(2,100.0%) 9,(1,100.0%) 2,(5,84.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006483/0.7804, allocations: 170.9 kB / 0.5048 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006725/0.7871, allocations: 2.577 MB / 0.5073 GB, free: 8.629 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.929e-06/0.7872, allocations: 4 kB / 0.5073 GB, free: 8.625 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004673/0.7919, allocations: 1.665 MB / 0.5089 GB, free: 6.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004316/0.7962, allocations: 499.6 kB / 0.5094 GB, free: 6.438 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01733/0.8136, allocations: 6.876 MB / 0.5161 GB, free: 15.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003671/0.8173, allocations: 2.248 MB / 0.5183 GB, free: 13.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001232/0.8186, allocations: 163.4 kB / 0.5185 GB, free: 13.05 MB / 442.7 MB Notification: Performance of SimCode: time 1.212e-06/0.8186, allocations: 0 / 0.5185 GB, free: 13.05 MB / 442.7 MB Notification: Performance of Templates: time 0.1571/0.9757, allocations: 80.03 MB / 0.5966 GB, free: 13.06 MB / 0.5105 GB