Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.116/2.116, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.82e-05/2.833e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3019, allocations: 44.5 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1605/0.4624, allocations: 89.51 MB / 383.7 MB, free: 8.297 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003186/0.4628, allocations: 83.94 kB / 383.8 MB, free: 8.215 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4579/0.9207, allocations: 43.9 MB / 427.7 MB, free: 89.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.9208, allocations: 1.156 kB / 427.7 MB, free: 89.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001526/0.9209, allocations: 36.7 kB / 427.8 MB, free: 89.79 MB / 362.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.005105/0.9261, allocations: 1.599 MB / 429.4 MB, free: 89.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.9261, allocations: 8.656 kB / 429.4 MB, free: 89.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001855/0.928, allocations: 289.6 kB / 429.7 MB, free: 88.94 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004136/0.9322, allocations: 1.198 MB / 430.9 MB, free: 88.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.827e-05/0.9323, allocations: 50.03 kB / 430.9 MB, free: 88.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004109/0.9327, allocations: 98.16 kB / 431 MB, free: 88.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003016/0.9358, allocations: 0.8702 MB / 431.9 MB, free: 88.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003656/0.9395, allocations: 1.215 MB / 433.1 MB, free: 88.35 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.349e-05/0.9396, allocations: 14.45 kB / 433.1 MB, free: 88.35 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001572/0.9398, allocations: 1.938 kB / 433.1 MB, free: 88.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.731e-05/0.9398, allocations: 37.78 kB / 433.1 MB, free: 88.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01552/0.9554, allocations: 6.123 MB / 439.3 MB, free: 85.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/0.9581, allocations: 0.5416 MB / 439.8 MB, free: 85.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/0.9596, allocations: 395.7 kB / 440.2 MB, free: 85.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.631e-05/0.9597, allocations: 9.188 kB / 440.2 MB, free: 85.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.9598, allocations: 44.61 kB / 440.2 MB, free: 85.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 4.889e-06/0.9598, allocations: 2.812 kB / 440.2 MB, free: 85.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=72): time 0.006341/0.9662, allocations: 1.661 MB / 441.9 MB, free: 85.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.9663, allocations: 109.2 kB / 442 MB, free: 84.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002487/0.9688, allocations: 0.901 MB / 442.9 MB, free: 84.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000171/0.969, allocations: 29.23 kB / 442.9 MB, free: 84.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008638/0.9699, allocations: 0.862 MB / 443.8 MB, free: 84.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003076/0.9702, allocations: 247.9 kB / 444 MB, free: 84.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.266e-05/0.9703, allocations: 0 / 444 MB, free: 84.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.9704, allocations: 350.8 kB / 444.4 MB, free: 83.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008282/0.9713, allocations: 231 kB / 444.6 MB, free: 83.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.9724, allocations: 0.6691 MB / 445.3 MB, free: 83.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/0.9736, allocations: 350.2 kB / 445.6 MB, free: 83.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.622e-05/0.9736, allocations: 3.906 kB / 445.6 MB, free: 83.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.004251/0.9779, allocations: 1.067 MB / 446.7 MB, free: 83.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.51e-05/0.978, allocations: 15.47 kB / 446.7 MB, free: 83.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.307e-05/0.978, allocations: 18.5 kB / 446.7 MB, free: 83.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007383/0.9788, allocations: 118.4 kB / 446.8 MB, free: 83.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002485/0.9813, allocations: 261.4 kB / 447.1 MB, free: 83.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004767/0.9861, allocations: 4.065 MB / 451.2 MB, free: 79.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00244/0.9886, allocations: 46.09 kB / 451.2 MB, free: 79.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/0.9888, allocations: 60.89 kB / 451.3 MB, free: 79.19 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real 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.0003914/0.9892, allocations: 144.1 kB / 451.4 MB, free: 79.06 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002752/0.992, allocations: 0.6904 MB / 452.1 MB, free: 78.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004588/0.9925, allocations: 130.8 kB / 452.2 MB, free: 78.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002856/0.9954, allocations: 0.7099 MB / 452.9 MB, free: 78.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/0.9954, allocations: 5.25 kB / 452.9 MB, free: 78.37 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.9955, allocations: 2.312 kB / 452.9 MB, free: 78.37 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.9955, allocations: 3.844 kB / 452.9 MB, free: 78.37 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006953/1.002, allocations: 2.016 MB / 455 MB, free: 77.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/1.003, allocations: 3.875 kB / 455 MB, free: 77.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/1.004, allocations: 135.4 kB / 455.1 MB, free: 77.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007559/1.005, allocations: 111.4 kB / 455.2 MB, free: 77.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.065e-05/1.005, allocations: 13.53 kB / 455.2 MB, free: 77.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005839/1.011, allocations: 4.164 MB / 459.4 MB, free: 73.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.174e-05/1.011, allocations: 3.938 kB / 459.4 MB, free: 73.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003764/1.015, allocations: 1.352 MB / 460.7 MB, free: 72.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009605/1.016, allocations: 264.4 kB / 461 MB, free: 72.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003826/1.016, allocations: 3.875 kB / 461 MB, free: 72.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/1.018, allocations: 39.08 kB / 461 MB, free: 72.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/1.018, allocations: 61.75 kB / 461.1 MB, free: 72.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.419e-05/1.018, allocations: 25.38 kB / 461.1 MB, free: 72.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001787/1.02, allocations: 0.6604 MB / 461.8 MB, free: 71.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.733e-06/1.02, allocations: 0 / 461.8 MB, free: 71.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002868/1.023, allocations: 310 kB / 462.1 MB, free: 71.76 MB / 362.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.003594/1.026, allocations: 3.142 MB / 465.2 MB, free: 69.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002046/1.028, allocations: 0.9786 MB / 466.2 MB, free: 68.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/1.028, allocations: 0 / 466.2 MB, free: 68.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/1.029, allocations: 0.6422 MB / 466.9 MB, free: 68.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002479/1.032, allocations: 303.5 kB / 467.1 MB, free: 68.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008222/1.04, allocations: 2.447 MB / 469.6 MB, free: 66.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/1.041, allocations: 1.249 MB / 470.8 MB, free: 66.21 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001208/1.043, allocations: 161.7 kB / 471 MB, free: 66.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/1.044, allocations: 0.6145 MB / 471.6 MB, free: 65.68 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/1.044, allocations: 0 / 471.6 MB, free: 65.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1471/1.191, allocations: 26.51 MB / 498.1 MB, free: 46.53 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/1.191, allocations: 162.9 kB / 498.3 MB, free: 46.33 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.551/4.742, allocations: 0 / 498.3 MB, free: 46.33 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat