Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.561e-05/2.571e-05, allocations: 1.562 kB / 292.7 MB, free: 8.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08783/0.08787, allocations: 50.42 MB / 343.1 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4361/0.524, allocations: 95.89 MB / 439 MB, free: 14.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/0.5244, allocations: 83.52 kB / 439.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.172/0.6964, allocations: 40.74 MB / 479.8 MB, free: 9.777 MB / 394.7 MB Notification: Performance of FrontEnd: time 2e-06/0.6964, allocations: 0 / 479.8 MB, free: 9.777 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001082/0.6966, allocations: 28 kB / 479.8 MB, free: 9.75 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003813/0.7004, allocations: 1.557 MB / 481.4 MB, free: 8.133 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.196e-05/0.7005, allocations: 8.031 kB / 481.4 MB, free: 8.125 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002312/0.7028, allocations: 257.6 kB / 481.6 MB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005868/0.7087, allocations: 1.094 MB / 482.7 MB, free: 6.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002691/0.709, allocations: 111.1 kB / 482.8 MB, free: 6.621 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006542/0.7097, allocations: 159.9 kB / 483 MB, free: 6.465 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007418/0.7172, allocations: 1.411 MB / 484.4 MB, free: 4.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001402/0.7173, allocations: 7.906 kB / 484.4 MB, free: 4.973 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004172/0.7178, allocations: 75.94 kB / 484.5 MB, free: 4.898 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.092e-05/0.7179, allocations: 36 kB / 484.5 MB, free: 4.863 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005532/0.7235, allocations: 0.8839 MB / 485.4 MB, free: 3.977 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02378/0.7473, allocations: 6.663 MB / 492.1 MB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/0.7492, allocations: 359.4 kB / 492.4 MB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001064/0.7504, allocations: 201.8 kB / 492.6 MB, free: 12.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-05/0.7505, allocations: 12.38 kB / 492.6 MB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/0.7517, allocations: 260.8 kB / 492.9 MB, free: 12.11 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 7.57e-06/0.7517, allocations: 0 / 492.9 MB, free: 12.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.007619/0.7594, allocations: 1.616 MB / 494.5 MB, free: 10.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002356/0.7596, allocations: 188.5 kB / 494.7 MB, free: 10.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004653/0.7643, allocations: 1.065 MB / 495.8 MB, free: 9.129 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.7645, allocations: 37.7 kB / 495.8 MB, free: 9.086 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001872/0.7664, allocations: 0.8711 MB / 496.7 MB, free: 8.203 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004591/0.7669, allocations: 209.1 kB / 496.9 MB, free: 7.996 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.767, allocations: 20 kB / 496.9 MB, free: 7.977 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003805/0.7674, allocations: 353.9 kB / 497.2 MB, free: 7.625 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.7687, allocations: 210.6 kB / 497.4 MB, free: 7.418 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002274/0.771, allocations: 0.7697 MB / 498.2 MB, free: 6.367 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001846/0.7729, allocations: 388.6 kB / 498.6 MB, free: 5.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-05/0.773, allocations: 4 kB / 498.6 MB, free: 5.977 MB / 410.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.005725/0.7787, allocations: 1.088 MB / 499.7 MB, free: 4.875 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.7789, allocations: 41.64 kB / 499.7 MB, free: 4.828 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-05/0.779, allocations: 20 kB / 499.7 MB, free: 4.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005407/0.7795, allocations: 69.64 kB / 499.8 MB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002499/0.782, allocations: 267.6 kB / 0.4883 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003131/0.7852, allocations: 2.576 MB / 0.4909 GB, free: 1.629 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.7866, allocations: 72.05 kB / 0.4909 GB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.7868, allocations: 67.98 kB / 0.491 GB, free: 1.492 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002659/0.7871, allocations: 188.4 kB / 0.4912 GB, free: 1.301 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.7873, allocations: 138.3 kB / 0.4913 GB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.7886, allocations: 0.5136 MB / 0.4918 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.7887, allocations: 8 kB / 0.4918 GB, free: 0.625 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.896e-06/0.7887, allocations: 0 / 0.4918 GB, free: 0.625 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.7887, allocations: 3.984 kB / 0.4918 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004021/0.7927, allocations: 1.885 MB / 0.4937 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.7928, allocations: 4 kB / 0.4937 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006157/0.7934, allocations: 103.8 kB / 0.4938 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002114/0.7936, allocations: 46.14 kB / 0.4938 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.381e-05/0.7937, allocations: 23.98 kB / 0.4938 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.7963, allocations: 2.537 MB / 0.4963 GB, free: 11.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.444e-06/0.7963, allocations: 7.938 kB / 0.4963 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.7983, allocations: 1.077 MB / 0.4974 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005998/0.7989, allocations: 255.5 kB / 0.4976 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.7991, allocations: 16 kB / 0.4976 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007585/0.7999, allocations: 43.95 kB / 0.4977 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.8, allocations: 51.83 kB / 0.4977 GB, free: 9.984 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.547e-05/0.8001, allocations: 19.94 kB / 0.4977 GB, free: 9.965 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001717/0.8018, allocations: 0.7897 MB / 0.4985 GB, free: 9.172 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.33e-07/0.8018, allocations: 0 / 0.4985 GB, free: 9.172 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001716/0.8036, allocations: 347.9 kB / 0.4988 GB, free: 8.832 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005814/0.8042, allocations: 325.2 kB / 0.4992 GB, free: 8.508 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001846/0.806, allocations: 0.8408 MB / 0.5 GB, free: 7.637 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.965e-06/0.8061, allocations: 3.938 kB / 0.5 GB, free: 7.633 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008519/0.8069, allocations: 436.1 kB / 0.5004 GB, free: 7.188 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/0.8088, allocations: 305.6 kB / 0.5007 GB, free: 6.891 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006847/0.8156, allocations: 1.889 MB / 0.5025 GB, free: 4.922 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001718/0.8174, allocations: 1.213 MB / 0.5037 GB, free: 3.68 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001767/0.8192, allocations: 171.3 kB / 0.5039 GB, free: 3.508 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004169/0.8196, allocations: 87.44 kB / 0.504 GB, free: 3.422 MB / 426.7 MB Notification: Performance of SimCode: time 2.219e-06/0.8197, allocations: 0 / 0.504 GB, free: 3.422 MB / 426.7 MB Notification: Performance of Templates: time 0.04884/0.8685, allocations: 16.13 MB / 0.5197 GB, free: 3.477 MB / 442.7 MB