Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.946/1.946, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.983e-05/3.015e-05, allocations: 0 / 292.2 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1089, allocations: 50.41 MB / 342.7 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4738/0.5828, allocations: 96.14 MB / 438.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.5832, allocations: 81.83 kB / 438.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1889/0.7721, allocations: 44.7 MB / 483.6 MB, free: 5.391 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.7721, allocations: 0 / 483.6 MB, free: 5.391 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001489/0.7723, allocations: 36 kB / 483.6 MB, free: 5.355 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.005005/0.7773, allocations: 1.612 MB / 485.2 MB, free: 3.691 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.7774, allocations: 8.031 kB / 485.2 MB, free: 3.684 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005297/0.7779, allocations: 215.9 kB / 485.4 MB, free: 3.461 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.7794, allocations: 281.5 kB / 485.7 MB, free: 3.184 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004056/0.7835, allocations: 1.212 MB / 486.9 MB, free: 1.914 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001221/0.7837, allocations: 111.1 kB / 487 MB, free: 1.805 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003667/0.784, allocations: 159.9 kB / 487.2 MB, free: 1.648 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00378/0.7878, allocations: 1.412 MB / 488.6 MB, free: 180 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.502e-05/0.788, allocations: 11.84 kB / 488.6 MB, free: 168 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000207/0.7882, allocations: 67.98 kB / 488.7 MB, free: 100 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.466e-05/0.7882, allocations: 36 kB / 488.7 MB, free: 64 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002989/0.7912, allocations: 0.9466 MB / 489.7 MB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01388/0.8052, allocations: 6.404 MB / 496.1 MB, free: 8.398 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002123/0.8073, allocations: 0.5517 MB / 496.6 MB, free: 7.832 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/0.8086, allocations: 419 kB / 497 MB, free: 7.422 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.807e-05/0.8086, allocations: 16.69 kB / 497 MB, free: 7.406 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.8087, allocations: 47.12 kB / 497.1 MB, free: 7.352 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 6.112e-06/0.8087, allocations: 0 / 497.1 MB, free: 7.352 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.0051/0.8138, allocations: 1.791 MB / 498.9 MB, free: 5.504 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.349e-05/0.8139, allocations: 111.6 kB / 499 MB, free: 5.371 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00241/0.8164, allocations: 1.086 MB / 0.4884 GB, free: 4.273 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.8165, allocations: 37.7 kB / 0.4884 GB, free: 4.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008909/0.8174, allocations: 0.8686 MB / 0.4892 GB, free: 3.352 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002987/0.8178, allocations: 264.3 kB / 0.4895 GB, free: 3.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.388e-05/0.8178, allocations: 20 kB / 0.4895 GB, free: 3.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.818, allocations: 349.9 kB / 0.4898 GB, free: 2.723 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007141/0.8187, allocations: 250.6 kB / 0.4901 GB, free: 2.477 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.8198, allocations: 0.6967 MB / 0.4908 GB, free: 1.566 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009286/0.8207, allocations: 369.9 kB / 0.4911 GB, free: 1.207 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.246e-05/0.8207, allocations: 4 kB / 0.4911 GB, free: 1.203 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003361/0.8241, allocations: 1.177 MB / 0.4923 GB, free: 4 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.844e-05/0.8242, allocations: 12.05 kB / 0.4923 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.691e-05/0.8243, allocations: 16 kB / 0.4923 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006103/0.8249, allocations: 122.9 kB / 0.4924 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/0.8267, allocations: 259.6 kB / 0.4927 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004537/0.8312, allocations: 4.22 MB / 0.4968 GB, free: 10.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.8331, allocations: 60.02 kB / 0.4968 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.8332, allocations: 59.98 kB / 0.4969 GB, free: 10.85 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.0002997/0.8335, allocations: 180.5 kB / 0.4971 GB, free: 10.67 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002698/0.8338, allocations: 138.3 kB / 0.4972 GB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002429/0.8363, allocations: 0.7819 MB / 0.498 GB, free: 9.723 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.8363, allocations: 8 kB / 0.498 GB, free: 9.715 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.8363, allocations: 4.078 kB / 0.498 GB, free: 9.711 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.8363, allocations: 3.984 kB / 0.498 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005819/0.8422, allocations: 2.256 MB / 0.5002 GB, free: 7.336 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/0.8422, allocations: 4 kB / 0.5002 GB, free: 7.332 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.8434, allocations: 131.8 kB / 0.5003 GB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005954/0.844, allocations: 111 kB / 0.5004 GB, free: 7.086 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.109e-05/0.8441, allocations: 24 kB / 0.5004 GB, free: 7.062 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004973/0.8491, allocations: 4.321 MB / 0.5047 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/0.8491, allocations: 11.92 kB / 0.5047 GB, free: 2.328 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003327/0.8525, allocations: 1.432 MB / 0.5061 GB, free: 0.7109 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007749/0.8533, allocations: 275.4 kB / 0.5063 GB, free: 432 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/0.8536, allocations: 16 kB / 0.5063 GB, free: 416 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.8548, allocations: 55.92 kB / 0.5064 GB, free: 360 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.8549, allocations: 56.42 kB / 0.5065 GB, free: 300 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.977e-05/0.855, allocations: 27.98 kB / 0.5065 GB, free: 272 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001869/0.8569, allocations: 0.814 MB / 0.5073 GB, free: 15.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.615e-06/0.8569, allocations: 0 / 0.5073 GB, free: 15.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002181/0.8591, allocations: 383.9 kB / 0.5076 GB, free: 15.07 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.004506/0.8637, allocations: 3.268 MB / 0.5108 GB, free: 11.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002381/0.8661, allocations: 1.008 MB / 0.5118 GB, free: 10.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.8661, allocations: 0 / 0.5118 GB, free: 10.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.8675, allocations: 0.6449 MB / 0.5124 GB, free: 9.969 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002766/0.8703, allocations: 341.1 kB / 0.5128 GB, free: 9.637 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008852/0.8792, allocations: 2.529 MB / 0.5152 GB, free: 7.016 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001096/0.8803, allocations: 1.253 MB / 0.5165 GB, free: 5.73 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001305/0.8817, allocations: 175.8 kB / 0.5166 GB, free: 5.555 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/0.8829, allocations: 0.6203 MB / 0.5172 GB, free: 4.934 MB / 442.7 MB Notification: Performance of SimCode: time 1.292e-06/0.8829, allocations: 0 / 0.5172 GB, free: 4.934 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3985/1.281, allocations: 32.52 MB / 0.549 GB, free: 118.4 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002068/1.282, allocations: 200.4 kB / 0.5492 GB, free: 118.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.65/4.932, allocations: 0 / 0.5492 GB, free: 118.2 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat