Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadModel(Modelica): time 2.016/2.016, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.325e-05/4.378e-05, allocations: 0 / 292.2 MB, free: 8.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1359, allocations: 50.41 MB / 342.6 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4152/0.5511, allocations: 96.13 MB / 438.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.5514, allocations: 83.27 kB / 438.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1736/0.725, allocations: 44.68 MB / 483.5 MB, free: 5.578 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.905e-06/0.7251, allocations: 4 kB / 483.5 MB, free: 5.574 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001268/0.7252, allocations: 36 kB / 483.5 MB, free: 5.539 MB / 394.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.003703/0.7289, allocations: 1.6 MB / 485.1 MB, free: 3.887 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.729, allocations: 8.031 kB / 485.1 MB, free: 3.879 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/0.7303, allocations: 281.5 kB / 485.4 MB, free: 3.602 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003389/0.7337, allocations: 1.208 MB / 486.6 MB, free: 2.336 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.7338, allocations: 111.1 kB / 486.7 MB, free: 2.227 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003408/0.7342, allocations: 159.8 kB / 486.9 MB, free: 2.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003415/0.7376, allocations: 1.409 MB / 488.3 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.011e-05/0.7377, allocations: 11.98 kB / 488.3 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001866/0.7379, allocations: 68 kB / 488.3 MB, free: 0.5234 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.212e-05/0.738, allocations: 39.94 kB / 488.4 MB, free: 496 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002576/0.7406, allocations: 0.9466 MB / 489.3 MB, free: 15.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01192/0.7525, allocations: 6.408 MB / 495.7 MB, free: 8.816 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.7542, allocations: 0.5558 MB / 496.3 MB, free: 8.246 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009964/0.7552, allocations: 415 kB / 496.7 MB, free: 7.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.446e-05/0.7553, allocations: 12.55 kB / 496.7 MB, free: 7.828 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.7553, allocations: 43.12 kB / 496.8 MB, free: 7.777 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.72e-06/0.7553, allocations: 0 / 496.8 MB, free: 7.777 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.004323/0.7597, allocations: 1.795 MB / 498.5 MB, free: 5.926 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.309e-05/0.7598, allocations: 119.5 kB / 498.7 MB, free: 5.785 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/0.7619, allocations: 1.086 MB / 499.7 MB, free: 4.688 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.712e-05/0.762, allocations: 37.7 kB / 499.8 MB, free: 4.645 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008572/0.7629, allocations: 0.8608 MB / 0.4889 GB, free: 3.773 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/0.7632, allocations: 256.4 kB / 0.4892 GB, free: 3.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.341e-05/0.7633, allocations: 20 kB / 0.4892 GB, free: 3.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.7635, allocations: 353.9 kB / 0.4895 GB, free: 3.148 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006348/0.7641, allocations: 246.6 kB / 0.4897 GB, free: 2.906 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/0.7652, allocations: 0.7006 MB / 0.4904 GB, free: 1.992 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008699/0.7661, allocations: 373.9 kB / 0.4908 GB, free: 1.629 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.7661, allocations: 4 kB / 0.4908 GB, free: 1.625 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002881/0.769, allocations: 1.177 MB / 0.4919 GB, free: 436 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.7691, allocations: 12 kB / 0.492 GB, free: 424 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.7691, allocations: 16 kB / 0.492 GB, free: 408 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00051/0.7696, allocations: 122.7 kB / 0.4921 GB, free: 276 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/0.7708, allocations: 259.7 kB / 0.4923 GB, free: 16 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004787/0.7756, allocations: 4.216 MB / 0.4965 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.7769, allocations: 67.91 kB / 0.4965 GB, free: 11.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.777, allocations: 55.98 kB / 0.4966 GB, free: 11.27 MB / 426.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 (139): * Single equations (assignments): 136 * 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.0002599/0.7773, allocations: 180.5 kB / 0.4967 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002672/0.7776, allocations: 138.4 kB / 0.4969 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002101/0.7797, allocations: 0.7819 MB / 0.4976 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.7797, allocations: 16 kB / 0.4977 GB, free: 10.13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.7797, allocations: 0 / 0.4977 GB, free: 10.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.7798, allocations: 7.938 kB / 0.4977 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005037/0.7848, allocations: 2.249 MB / 0.4999 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.7848, allocations: 4 kB / 0.4999 GB, free: 7.754 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000784/0.7856, allocations: 131.8 kB / 0.5 GB, free: 7.625 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004903/0.7861, allocations: 110.8 kB / 0.5001 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.547e-05/0.7862, allocations: 27.98 kB / 0.5001 GB, free: 7.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004986/0.7912, allocations: 4.317 MB / 0.5043 GB, free: 2.762 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.616e-06/0.7913, allocations: 7.938 kB / 0.5043 GB, free: 2.754 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002891/0.7942, allocations: 1.44 MB / 0.5057 GB, free: 1.129 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000665/0.7949, allocations: 275.4 kB / 0.506 GB, free: 0.8398 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002208/0.7951, allocations: 16 kB / 0.506 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008639/0.796, allocations: 51.92 kB / 0.5061 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.7961, allocations: 60.42 kB / 0.5061 GB, free: 0.7109 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.7963, allocations: 27.98 kB / 0.5062 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002047/0.7983, allocations: 0.8101 MB / 0.507 GB, free: 15.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.361e-06/0.7984, allocations: 0 / 0.507 GB, free: 15.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002078/0.8005, allocations: 387.9 kB / 0.5073 GB, free: 15.49 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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.0006637/0.8012, allocations: 397.4 kB / 0.5077 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002114/0.8033, allocations: 1.004 MB / 0.5087 GB, free: 14.08 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.994e-06/0.8033, allocations: 4 kB / 0.5087 GB, free: 14.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.8045, allocations: 0.6489 MB / 0.5093 GB, free: 13.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001918/0.8065, allocations: 329 kB / 0.5096 GB, free: 13.07 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005842/0.8123, allocations: 2.306 MB / 0.5119 GB, free: 10.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.8136, allocations: 1.249 MB / 0.5131 GB, free: 9.406 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00108/0.8147, allocations: 171.8 kB / 0.5133 GB, free: 9.234 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003201/0.815, allocations: 95.36 kB / 0.5134 GB, free: 9.141 MB / 442.7 MB Notification: Performance of SimCode: time 1.811e-06/0.8151, allocations: 4 kB / 0.5134 GB, free: 9.137 MB / 442.7 MB Notification: Performance of Templates: time 0.2914/1.106, allocations: 19.51 MB / 0.5324 GB, free: 117.3 MB / 442.7 MB