Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 1.772/1.772, allocations: 171.1 MB / 186.3 MB, free: 1.336 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.405e-05, allocations: 4 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09613, allocations: 38.76 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01629/0.1125, allocations: 9.361 MB / 276.3 MB, free: 7.715 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008139/0.1207, allocations: 2.94 MB / 279.2 MB, free: 4.77 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00194/0.1227, allocations: 51.94 kB / 279.2 MB, free: 4.719 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002058/0.1248, allocations: 465.1 kB / 279.7 MB, free: 4.262 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003416/0.1282, allocations: 0.6893 MB / 280.4 MB, free: 3.57 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.1297, allocations: 243.7 kB / 280.6 MB, free: 3.332 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.004578/0.1343, allocations: 1.346 MB / 282 MB, free: 1.984 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00132/0.1357, allocations: 0.4948 MB / 282.5 MB, free: 1.484 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00134/0.1371, allocations: 0.5881 MB / 283.1 MB, free: 0.8945 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.1385, allocations: 0.6733 MB / 283.7 MB, free: 224 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006773/0.1392, allocations: 115.9 kB / 283.8 MB, free: 108 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004176/0.1396, allocations: 72 kB / 283.9 MB, free: 36 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003424/0.14, allocations: 258.9 kB / 284.2 MB, free: 15.78 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005788/0.1406, allocations: 180 kB / 284.3 MB, free: 15.6 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003771/0.1444, allocations: 2.142 MB / 286.5 MB, free: 13.45 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1444, allocations: 0 / 286.5 MB, free: 13.45 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.287e-06/0.1445, allocations: 0 / 286.5 MB, free: 13.45 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.981e-05/0.1446, allocations: 4 kB / 286.5 MB, free: 13.45 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004823/0.1494, allocations: 1.636 MB / 288.1 MB, free: 11.76 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.1495, allocations: 8.031 kB / 288.1 MB, free: 11.75 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.1507, allocations: 253.4 kB / 288.4 MB, free: 11.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003156/0.1539, allocations: 1.079 MB / 289.5 MB, free: 10.37 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.1541, allocations: 115.1 kB / 289.6 MB, free: 10.25 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003848/0.1545, allocations: 159.9 kB / 289.7 MB, free: 10.1 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004561/0.1591, allocations: 1.469 MB / 291.2 MB, free: 8.566 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-05/0.1592, allocations: 7.906 kB / 291.2 MB, free: 8.559 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002057/0.1594, allocations: 68 kB / 291.3 MB, free: 8.492 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.004e-05/0.1595, allocations: 36 kB / 291.3 MB, free: 8.457 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003677/0.1632, allocations: 1.01 MB / 292.3 MB, free: 7.441 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01369/0.1769, allocations: 6.156 MB / 298.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.1789, allocations: 0.5569 MB / 299 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.972e-05/0.179, allocations: 12.7 kB / 299 MB, free: 420 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/0.1791, allocations: 39.12 kB / 299.1 MB, free: 372 kB / 250.7 MB Notification: Performance of pre-optimization done (n=66): time 3.978e-06/0.1791, allocations: 4 kB / 299.1 MB, free: 368 kB / 250.7 MB Notification: Performance of matching and sorting (n=72): time 0.2223/0.4014, allocations: 2.259 MB / 301.3 MB, free: 28.19 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.4015, allocations: 115 kB / 301.5 MB, free: 28.07 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002273/0.4038, allocations: 1.035 MB / 302.5 MB, free: 27.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.404, allocations: 37.23 kB / 302.5 MB, free: 27.8 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006686/0.4047, allocations: 0.827 MB / 303.4 MB, free: 27.1 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003023/0.405, allocations: 258.5 kB / 303.6 MB, free: 26.91 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-05/0.4051, allocations: 24.72 kB / 303.6 MB, free: 26.89 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.4052, allocations: 352.3 kB / 304 MB, free: 26.56 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009912/0.4062, allocations: 267.8 kB / 304.2 MB, free: 26.46 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.4074, allocations: 0.7232 MB / 305 MB, free: 25.78 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.4086, allocations: 388.5 kB / 305.3 MB, free: 25.6 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.4086, allocations: 5.156 kB / 305.3 MB, free: 25.6 MB / 250.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003307/0.4119, allocations: 1.123 MB / 306.5 MB, free: 25.11 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/0.412, allocations: 11.5 kB / 306.5 MB, free: 25.11 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.412, allocations: 14.84 kB / 306.5 MB, free: 25.11 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006087/0.4126, allocations: 119.3 kB / 306.6 MB, free: 25.07 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.4143, allocations: 256.8 kB / 306.9 MB, free: 25.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004163/0.4184, allocations: 4.199 MB / 311.1 MB, free: 20.9 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.4201, allocations: 58.56 kB / 311.1 MB, free: 20.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.4202, allocations: 53.02 kB / 311.2 MB, free: 20.87 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008817/0.4211, allocations: 356 kB / 311.5 MB, free: 20.6 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003114/0.4214, allocations: 145.3 kB / 311.7 MB, free: 20.52 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002572/0.424, allocations: 0.7755 MB / 312.4 MB, free: 20.16 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.4241, allocations: 13.58 kB / 312.4 MB, free: 20.16 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4241, allocations: 0.5625 kB / 312.4 MB, free: 20.16 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.4241, allocations: 5.016 kB / 312.4 MB, free: 20.16 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005965/0.4301, allocations: 2.181 MB / 314.6 MB, free: 19 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.4301, allocations: 6.375 kB / 314.6 MB, free: 19 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.4313, allocations: 128.3 kB / 314.8 MB, free: 18.99 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006093/0.4319, allocations: 115.6 kB / 314.9 MB, free: 18.94 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.7e-05/0.432, allocations: 20.64 kB / 314.9 MB, free: 18.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00448/0.4365, allocations: 4.315 MB / 319.2 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/0.4365, allocations: 8.078 kB / 319.2 MB, free: 14.73 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003525/0.4401, allocations: 1.423 MB / 320.6 MB, free: 13.73 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007549/0.4409, allocations: 259.4 kB / 320.9 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002911/0.4412, allocations: 19.56 kB / 320.9 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009776/0.4422, allocations: 36.34 kB / 320.9 MB, free: 13.5 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.4423, allocations: 63.72 kB / 321 MB, free: 13.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-05/0.4424, allocations: 21.06 kB / 321 MB, free: 13.48 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001644/0.4441, allocations: 0.7807 MB / 321.8 MB, free: 13.16 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4441, allocations: 0 / 321.8 MB, free: 13.16 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002048/0.4462, allocations: 321.1 kB / 322.1 MB, free: 13.12 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002926/0.4465, allocations: 135.6 kB / 322.3 MB, free: 13.01 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002662/0.4492, allocations: 1.087 MB / 323.3 MB, free: 12.41 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.645e-06/0.4492, allocations: 0 / 323.3 MB, free: 12.41 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.4506, allocations: 0.6848 MB / 324 MB, free: 11.95 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002604/0.4532, allocations: 323.9 kB / 324.3 MB, free: 11.83 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007446/0.4607, allocations: 3.467 MB / 327.8 MB, free: 9.531 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008191/0.4616, allocations: 1.248 MB / 329.1 MB, free: 8.574 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004227/0.462, allocations: 95.73 kB / 329.2 MB, free: 8.559 MB / 250.7 MB Notification: Performance of SimCode: time 1.332e-06/0.462, allocations: 0 / 329.2 MB, free: 8.559 MB / 250.7 MB Notification: Performance of Templates: time 0.07392/0.536, allocations: 37.97 MB / 367.1 MB, free: 2.895 MB / 282.7 MB