Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 2.133/2.133, allocations: 194.9 MB / 211.2 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.292e-05/3.306e-05, allocations: 3.906 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3191, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01154/0.3307, allocations: 6.433 MB / 309.7 MB, free: 7.266 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006241/0.337, allocations: 2.391 MB / 312.1 MB, free: 4.867 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001331/0.3384, allocations: 31.94 kB / 312.2 MB, free: 4.836 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.3402, allocations: 397.7 kB / 312.5 MB, free: 4.445 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002205/0.3424, allocations: 458.5 kB / 313 MB, free: 3.996 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008522/0.3433, allocations: 163.7 kB / 313.1 MB, free: 3.836 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002662/0.3459, allocations: 0.8232 MB / 314 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008079/0.3468, allocations: 312.2 kB / 314.3 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008473/0.3477, allocations: 374.9 kB / 314.6 MB, free: 2.328 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009243/0.3486, allocations: 438.3 kB / 315.1 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000492/0.3491, allocations: 87.91 kB / 315.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002869/0.3494, allocations: 48 kB / 315.2 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002048/0.3497, allocations: 167.2 kB / 315.4 MB, free: 1.602 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003794/0.35, allocations: 115.9 kB / 315.5 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002268/0.3523, allocations: 1.324 MB / 316.8 MB, free: 164 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3524, allocations: 4 kB / 316.8 MB, free: 160 kB / 250.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3524, allocations: 0 / 316.8 MB, free: 160 kB / 250.7 MB Notification: Performance of Transformations before backend: time 5.566e-05/0.3525, allocations: 0 / 316.8 MB, free: 160 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003089/0.3556, allocations: 1.146 MB / 318 MB, free: 14.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.3556, allocations: 12.02 kB / 318 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009244/0.3566, allocations: 178.3 kB / 318.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.3585, allocations: 0.7154 MB / 318.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-05/0.3587, allocations: 74 kB / 318.9 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002525/0.3589, allocations: 99.91 kB / 319 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002781/0.3617, allocations: 0.9385 MB / 320 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.103e-05/0.3618, allocations: 0 / 320 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001378/0.362, allocations: 44 kB / 320 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.4e-05/0.362, allocations: 24 kB / 320 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002262/0.3643, allocations: 0.6558 MB / 320.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008816/0.3731, allocations: 3.926 MB / 324.6 MB, free: 8.008 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.3744, allocations: 447.7 kB / 325 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.317e-05/0.3744, allocations: 11.92 kB / 325.1 MB, free: 7.535 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.002e-05/0.3745, allocations: 42.56 kB / 325.1 MB, free: 7.484 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 3.036e-06/0.3745, allocations: 0 / 325.1 MB, free: 7.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.004658/0.3792, allocations: 1.439 MB / 326.5 MB, free: 5.969 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/0.3793, allocations: 81.11 kB / 326.6 MB, free: 5.871 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.3808, allocations: 0.6879 MB / 327.3 MB, free: 5.176 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.78e-05/0.3809, allocations: 33.7 kB / 327.3 MB, free: 5.137 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005753/0.3815, allocations: 0.5784 MB / 327.9 MB, free: 4.551 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002049/0.3817, allocations: 161.8 kB / 328.1 MB, free: 4.391 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.3818, allocations: 16 kB / 328.1 MB, free: 4.375 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.3819, allocations: 338.8 kB / 328.4 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006346/0.3826, allocations: 165.9 kB / 328.6 MB, free: 3.875 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008453/0.3834, allocations: 479.5 kB / 329.1 MB, free: 3.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007686/0.3842, allocations: 243.6 kB / 329.3 MB, free: 3.031 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.3843, allocations: 4 kB / 329.3 MB, free: 3.027 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002123/0.3864, allocations: 0.7212 MB / 330 MB, free: 2.293 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.3865, allocations: 12.92 kB / 330 MB, free: 2.281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/0.3865, allocations: 12 kB / 330 MB, free: 2.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003497/0.3869, allocations: 69.69 kB / 330.1 MB, free: 2.195 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.3879, allocations: 160 kB / 330.3 MB, free: 2.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003119/0.3911, allocations: 2.814 MB / 333.1 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.3922, allocations: 43.84 kB / 333.1 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.39e-05/0.3923, allocations: 36 kB / 333.2 MB, free: 14.88 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000648/0.3929, allocations: 257.9 kB / 333.4 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002264/0.3932, allocations: 86.97 kB / 333.5 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.3948, allocations: 0.4994 MB / 334 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/0.3949, allocations: 4 kB / 334 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3949, allocations: 3.938 kB / 334 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.3949, allocations: 3.984 kB / 334 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003679/0.3986, allocations: 1.407 MB / 335.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.3987, allocations: 0 / 335.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006587/0.3993, allocations: 83.89 kB / 335.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002857/0.3996, allocations: 53.91 kB / 335.5 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.591e-05/0.3997, allocations: 16 kB / 335.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003018/0.4027, allocations: 2.798 MB / 338.4 MB, free: 9.289 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/0.4028, allocations: 4.031 kB / 338.4 MB, free: 9.285 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.4052, allocations: 0.8826 MB / 339.2 MB, free: 8.309 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005447/0.4058, allocations: 196 kB / 339.4 MB, free: 8.098 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002017/0.406, allocations: 11.98 kB / 339.5 MB, free: 8.086 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007675/0.4068, allocations: 31.98 kB / 339.5 MB, free: 8.055 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.4069, allocations: 39.84 kB / 339.5 MB, free: 8.016 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-05/0.407, allocations: 20 kB / 339.5 MB, free: 7.996 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001129/0.4081, allocations: 0.5224 MB / 340.1 MB, free: 7.48 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4081, allocations: 0 / 340.1 MB, free: 7.48 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001356/0.4095, allocations: 204 kB / 340.3 MB, free: 7.281 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003172/0.4098, allocations: 130.9 kB / 340.4 MB, free: 7.145 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002024/0.4119, allocations: 0.7017 MB / 341.1 MB, free: 6.418 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.138e-06/0.4119, allocations: 0 / 341.1 MB, free: 6.418 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.413, allocations: 453.4 kB / 341.5 MB, free: 5.949 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001717/0.4148, allocations: 203.9 kB / 341.7 MB, free: 5.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004824/0.4196, allocations: 2.149 MB / 343.9 MB, free: 3.547 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008394/0.4205, allocations: 1.036 MB / 344.9 MB, free: 2.484 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.4208, allocations: 59.44 kB / 345 MB, free: 2.426 MB / 282.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4209, allocations: 0 / 345 MB, free: 2.426 MB / 282.7 MB Notification: Performance of Templates: time 0.04112/0.462, allocations: 19.97 MB / 364.9 MB, free: 14.45 MB / 314.7 MB