Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.954/1.954, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.731e-05/3.738e-05, allocations: 6.812 kB / 292.8 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 50.4 MB / 343.2 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4826/0.5897, allocations: 96.16 MB / 439.3 MB, free: 13.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004231/0.5902, allocations: 80.2 kB / 439.4 MB, free: 13.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.194/0.7842, allocations: 44.69 MB / 484.1 MB, free: 5.457 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.7843, allocations: 0 / 484.1 MB, free: 5.457 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000128/0.7844, allocations: 43.98 kB / 484.1 MB, free: 5.414 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.004524/0.789, allocations: 1.604 MB / 485.7 MB, free: 3.758 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.789, allocations: 8.031 kB / 485.7 MB, free: 3.75 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005171/0.7896, allocations: 223.9 kB / 486 MB, free: 3.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001507/0.7911, allocations: 281.5 kB / 486.2 MB, free: 3.242 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0038/0.7949, allocations: 1.204 MB / 487.4 MB, free: 1.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.795, allocations: 119.1 kB / 487.6 MB, free: 1.863 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003566/0.7954, allocations: 159.9 kB / 487.7 MB, free: 1.707 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003658/0.7991, allocations: 1.409 MB / 489.1 MB, free: 244 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.338e-05/0.7992, allocations: 15.83 kB / 489.1 MB, free: 228 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002075/0.7994, allocations: 64 kB / 489.2 MB, free: 164 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.023e-05/0.7995, allocations: 40 kB / 489.2 MB, free: 124 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002876/0.8024, allocations: 0.9388 MB / 490.2 MB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01314/0.8155, allocations: 6.404 MB / 496.6 MB, free: 8.465 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.8176, allocations: 0.5558 MB / 497.1 MB, free: 7.895 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.8189, allocations: 423 kB / 497.5 MB, free: 7.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.242e-05/0.819, allocations: 20.48 kB / 497.6 MB, free: 7.461 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.819, allocations: 35.12 kB / 497.6 MB, free: 7.418 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.327e-06/0.819, allocations: 0 / 497.6 MB, free: 7.418 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.005012/0.8241, allocations: 1.791 MB / 499.4 MB, free: 5.566 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.624e-05/0.8242, allocations: 111.6 kB / 499.5 MB, free: 5.434 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002426/0.8266, allocations: 1.09 MB / 0.4889 GB, free: 4.332 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.8267, allocations: 37.7 kB / 0.4889 GB, free: 4.289 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008806/0.8276, allocations: 0.8686 MB / 0.4897 GB, free: 3.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/0.828, allocations: 256.3 kB / 0.49 GB, free: 3.156 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.899e-05/0.828, allocations: 24 kB / 0.49 GB, free: 3.133 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.8282, allocations: 349.9 kB / 0.4903 GB, free: 2.785 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007267/0.8289, allocations: 254.6 kB / 0.4906 GB, free: 2.535 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/0.83, allocations: 0.6929 MB / 0.4913 GB, free: 1.629 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009507/0.831, allocations: 369.9 kB / 0.4916 GB, free: 1.27 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.831, allocations: 4 kB / 0.4916 GB, free: 1.266 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003331/0.8343, allocations: 1.177 MB / 0.4928 GB, free: 72 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.8344, allocations: 9.406 kB / 0.4928 GB, free: 64 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.383e-05/0.8344, allocations: 16 kB / 0.4928 GB, free: 48 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006186/0.8351, allocations: 123.2 kB / 0.4929 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.8367, allocations: 263.6 kB / 0.4932 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004543/0.8413, allocations: 4.216 MB / 0.4973 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/0.8431, allocations: 64.05 kB / 0.4973 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.8433, allocations: 63.92 kB / 0.4974 GB, free: 10.91 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.000274/0.8435, allocations: 176.5 kB / 0.4976 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002652/0.8438, allocations: 142.5 kB / 0.4977 GB, free: 10.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002395/0.8462, allocations: 0.7819 MB / 0.4985 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.8463, allocations: 8 kB / 0.4985 GB, free: 9.777 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.8463, allocations: 3.953 kB / 0.4985 GB, free: 9.773 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.8463, allocations: 3.984 kB / 0.4985 GB, free: 9.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005647/0.852, allocations: 2.244 MB / 0.5007 GB, free: 7.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.852, allocations: 4 kB / 0.5007 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.8532, allocations: 132.4 kB / 0.5008 GB, free: 7.277 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005757/0.8538, allocations: 122.5 kB / 0.5009 GB, free: 7.148 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-05/0.8539, allocations: 19.98 kB / 0.5009 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005011/0.8589, allocations: 4.317 MB / 0.5052 GB, free: 2.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/0.8589, allocations: 7.938 kB / 0.5052 GB, free: 2.402 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003338/0.8623, allocations: 1.432 MB / 0.5066 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000724/0.863, allocations: 279.5 kB / 0.5068 GB, free: 500 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002661/0.8633, allocations: 20 kB / 0.5069 GB, free: 480 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.8645, allocations: 51.92 kB / 0.5069 GB, free: 428 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.8647, allocations: 64.42 kB / 0.507 GB, free: 360 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.61e-05/0.8648, allocations: 23.98 kB / 0.507 GB, free: 336 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001875/0.8666, allocations: 0.8139 MB / 0.5078 GB, free: 15.51 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8667, allocations: 3.938 kB / 0.5078 GB, free: 15.51 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002068/0.8687, allocations: 383.9 kB / 0.5081 GB, free: 15.13 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.004456/0.8732, allocations: 3.262 MB / 0.5113 GB, free: 11.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002397/0.8756, allocations: 1.002 MB / 0.5123 GB, free: 10.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.8757, allocations: 4 kB / 0.5123 GB, free: 10.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001326/0.877, allocations: 0.6506 MB / 0.513 GB, free: 10.03 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/0.8797, allocations: 339.5 kB / 0.5133 GB, free: 9.699 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009125/0.8889, allocations: 2.529 MB / 0.5157 GB, free: 7.078 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.8902, allocations: 1.257 MB / 0.517 GB, free: 5.789 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001303/0.8915, allocations: 179.7 kB / 0.5171 GB, free: 5.609 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/0.8927, allocations: 0.6203 MB / 0.5178 GB, free: 4.988 MB / 442.7 MB Notification: Performance of SimCode: time 1.212e-06/0.8927, allocations: 0 / 0.5178 GB, free: 4.988 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4102/1.303, allocations: 32.51 MB / 0.5495 GB, free: 118.3 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/1.303, allocations: 201.3 kB / 0.5497 GB, free: 118.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.81/5.113, allocations: 0 / 0.5497 GB, free: 118.1 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat