Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadModel(ModelicaTest): time 2.441/2.441, allocations: 234.9 MB / 250.1 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.022e-05/6.02e-05, allocations: 4.047 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3813/0.3814, allocations: 54.86 MB / 362.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01619/0.3977, allocations: 9.302 MB / 372.1 MB, free: 4.539 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009586/0.4073, allocations: 3.438 MB / 375.6 MB, free: 1.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002319/0.4097, allocations: 87.69 kB / 375.7 MB, free: 1.004 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002643/0.4124, allocations: 0.6447 MB / 376.3 MB, free: 364 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004256/0.4166, allocations: 0.767 MB / 377.1 MB, free: 15.59 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001856/0.4185, allocations: 331.6 kB / 377.4 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00503/0.4236, allocations: 1.623 MB / 379 MB, free: 13.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003432/0.4271, allocations: 1.659 MB / 380.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002075/0.4292, allocations: 0.8453 MB / 381.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002954/0.4322, allocations: 1.238 MB / 382.8 MB, free: 9.875 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001182/0.4334, allocations: 207.8 kB / 383 MB, free: 9.672 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006695/0.4341, allocations: 108 kB / 383.1 MB, free: 9.566 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001347/0.4355, allocations: 0.7944 MB / 383.9 MB, free: 8.77 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001011/0.4365, allocations: 252 kB / 384.1 MB, free: 8.523 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007232/0.4437, allocations: 4.41 MB / 388.5 MB, free: 4.098 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.4438, allocations: 3.938 kB / 388.5 MB, free: 4.094 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.702e-06/0.4438, allocations: 0 / 388.5 MB, free: 4.094 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001922/0.444, allocations: 3.938 kB / 388.5 MB, free: 4.09 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.009867/0.4539, allocations: 2.889 MB / 391.4 MB, free: 1.137 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.454, allocations: 11.97 kB / 391.4 MB, free: 1.125 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002119/0.4561, allocations: 395.5 kB / 391.8 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006073/0.4622, allocations: 1.892 MB / 393.7 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002778/0.4626, allocations: 213.6 kB / 393.9 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009787/0.4635, allocations: 287.9 kB / 394.2 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01226/0.4758, allocations: 3.66 MB / 397.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001452/0.476, allocations: 3.906 kB / 397.9 MB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006711/0.4767, allocations: 116 kB / 398 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002422/0.477, allocations: 145.5 kB / 398.1 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01118/0.4882, allocations: 3.098 MB / 401.2 MB, free: 7.195 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03377/0.522, allocations: 11.45 MB / 412.7 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005687/0.5277, allocations: 2.084 MB / 414.8 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005534/0.5284, allocations: 207.5 kB / 415 MB, free: 9 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.689e-05/0.5284, allocations: 51.86 kB / 415 MB, free: 8.941 MB / 346.7 MB Notification: Performance of pre-optimization done (n=138): time 4.849e-06/0.5284, allocations: 0 / 415 MB, free: 8.941 MB / 346.7 MB Notification: Performance of matching and sorting (n=153): time 0.03364/0.5621, allocations: 7.985 MB / 423 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.931e-05/0.5622, allocations: 68.72 kB / 423.1 MB, free: 0.793 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004598/0.5668, allocations: 1.653 MB / 424.7 MB, free: 15.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003848/0.5673, allocations: 49.7 kB / 424.8 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001403/0.5687, allocations: 1.287 MB / 426.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009416/0.5696, allocations: 0.516 MB / 426.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.5699, allocations: 32 kB / 426.6 MB, free: 13.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002385/0.5701, allocations: 382.7 kB / 427 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002795/0.5729, allocations: 0.8628 MB / 427.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003376/0.5764, allocations: 1.321 MB / 429.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003422/0.5798, allocations: 1.064 MB / 430.2 MB, free: 9.363 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.119e-05/0.5799, allocations: 8 kB / 430.2 MB, free: 9.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.009086/0.589, allocations: 2.725 MB / 433 MB, free: 6.594 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.46e-05/0.5891, allocations: 12 kB / 433 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.999e-05/0.5892, allocations: 15.98 kB / 433 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.5907, allocations: 367.3 kB / 433.3 MB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003794/0.5946, allocations: 455.3 kB / 433.8 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.6049, allocations: 6.107 MB / 439.9 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002678/0.6077, allocations: 119.8 kB / 440 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004461/0.6082, allocations: 71.98 kB / 440.1 MB, free: 15.05 MB / 378.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 (209): * Single equations (assignments): 205 * 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.002943/0.6111, allocations: 0.907 MB / 441 MB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007796/0.6119, allocations: 201.5 kB / 441.2 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009614/0.6215, allocations: 2.864 MB / 444.1 MB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/0.6216, allocations: 16 kB / 444.1 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-05/0.6217, allocations: 4 kB / 444.1 MB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-05/0.6217, allocations: 11.97 kB / 444.1 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01939/0.6411, allocations: 5.998 MB / 450.1 MB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.459e-05/0.6412, allocations: 8.031 kB / 450.1 MB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00224/0.6434, allocations: 231.6 kB / 450.3 MB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003965/0.6475, allocations: 0.8031 MB / 451.1 MB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003509/0.6479, allocations: 43.88 kB / 451.2 MB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02161/0.6695, allocations: 10.1 MB / 461.3 MB, free: 9.301 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/0.6695, allocations: 4 kB / 461.3 MB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/0.6829, allocations: 4.338 MB / 465.6 MB, free: 4.742 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001919/0.6848, allocations: 490.2 kB / 466.1 MB, free: 4.242 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008316/0.6857, allocations: 36 kB / 466.1 MB, free: 4.207 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002564/0.6883, allocations: 91.89 kB / 466.2 MB, free: 4.117 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006383/0.689, allocations: 125 kB / 466.3 MB, free: 3.996 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001954/0.6892, allocations: 43.98 kB / 466.4 MB, free: 3.953 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004062/0.6933, allocations: 1.274 MB / 467.6 MB, free: 2.656 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.6934, allocations: 0 / 467.6 MB, free: 2.656 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003675/0.6971, allocations: 0.5703 MB / 468.2 MB, free: 2.086 MB / 394.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,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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.0007566/0.6979, allocations: 160.4 kB / 468.4 MB, free: 1.922 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007669/0.7056, allocations: 2.574 MB / 470.9 MB, free: 15.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/0.7056, allocations: 0 / 470.9 MB, free: 15.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005246/0.7109, allocations: 1.65 MB / 472.6 MB, free: 13.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004627/0.7156, allocations: 0.4887 MB / 473.1 MB, free: 13.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01835/0.734, allocations: 6.839 MB / 479.9 MB, free: 6.184 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00513/0.7392, allocations: 2.236 MB / 482.2 MB, free: 3.918 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/0.7405, allocations: 163.4 kB / 482.3 MB, free: 3.758 MB / 410.7 MB Notification: Performance of SimCode: time 1.913e-06/0.7405, allocations: 0 / 482.3 MB, free: 3.758 MB / 410.7 MB Notification: Performance of Templates: time 0.4511/1.192, allocations: 79.63 MB / 0.5488 GB, free: 67.01 MB / 426.7 MB