Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.776/1.776, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.417e-05/3.421e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2587, allocations: 38.77 MB / 263.9 MB, free: 9.723 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.207/0.4658, allocations: 85.05 MB / 348.9 MB, free: 4.535 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004582/0.4663, allocations: 79.95 kB / 349 MB, free: 4.457 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4242/0.8905, allocations: 42.84 MB / 391.8 MB, free: 78.28 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.8906, allocations: 0 / 391.8 MB, free: 78.28 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001393/0.8907, allocations: 37.42 kB / 391.9 MB, free: 78.28 MB / 314.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.004563/0.8953, allocations: 1.599 MB / 393.5 MB, free: 77.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.8954, allocations: 7.531 kB / 393.5 MB, free: 77.32 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000557/0.8959, allocations: 227.5 kB / 393.7 MB, free: 77.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001473/0.8974, allocations: 284 kB / 394 MB, free: 77.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003953/0.9014, allocations: 1.196 MB / 395.2 MB, free: 76.1 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.9016, allocations: 119 kB / 395.3 MB, free: 75.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004195/0.902, allocations: 171.8 kB / 395.4 MB, free: 75.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003651/0.9057, allocations: 1.434 MB / 396.9 MB, free: 74.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.483e-05/0.9058, allocations: 15.84 kB / 396.9 MB, free: 74.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00019/0.906, allocations: 60 kB / 397 MB, free: 74.24 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.664e-05/0.906, allocations: 40 kB / 397 MB, free: 74.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003026/0.9091, allocations: 0.9714 MB / 398 MB, free: 73.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01217/0.9213, allocations: 6.421 MB / 404.4 MB, free: 66.55 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001721/0.9231, allocations: 0.5627 MB / 405 MB, free: 65.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.9241, allocations: 426.9 kB / 405.4 MB, free: 65.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.204e-05/0.9242, allocations: 10.91 kB / 405.4 MB, free: 65.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.9243, allocations: 43.12 kB / 405.4 MB, free: 65.49 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 3.707e-06/0.9243, allocations: 0 / 405.4 MB, free: 65.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.004732/0.929, allocations: 1.81 MB / 407.2 MB, free: 63.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.9291, allocations: 111.6 kB / 407.3 MB, free: 63.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002053/0.9312, allocations: 1.082 MB / 408.4 MB, free: 62.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001397/0.9314, allocations: 37.7 kB / 408.5 MB, free: 62.35 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006015/0.932, allocations: 0.8649 MB / 409.3 MB, free: 61.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002418/0.9322, allocations: 271 kB / 409.6 MB, free: 61.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.767e-05/0.9323, allocations: 20 kB / 409.6 MB, free: 61.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.224e-05/0.9324, allocations: 349.9 kB / 410 MB, free: 60.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006853/0.9331, allocations: 250.6 kB / 410.2 MB, free: 60.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000844/0.934, allocations: 0.6994 MB / 410.9 MB, free: 59.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008373/0.9348, allocations: 389.8 kB / 411.3 MB, free: 59.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.9349, allocations: 4 kB / 411.3 MB, free: 59.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.004007/0.9389, allocations: 1.223 MB / 412.5 MB, free: 58.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/0.939, allocations: 8 kB / 412.5 MB, free: 58.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.263e-05/0.939, allocations: 16 kB / 412.5 MB, free: 58.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008128/0.9398, allocations: 119.1 kB / 412.6 MB, free: 57.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002385/0.9423, allocations: 259.6 kB / 412.9 MB, free: 57.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005415/0.9477, allocations: 4.219 MB / 417.1 MB, free: 53.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00263/0.9504, allocations: 75.98 kB / 417.2 MB, free: 52.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002851/0.9508, allocations: 52 kB / 417.2 MB, free: 52.92 MB / 314.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.0003696/0.9512, allocations: 180.5 kB / 417.4 MB, free: 52.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005393/0.9517, allocations: 138.3 kB / 417.6 MB, free: 52.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00337/0.9551, allocations: 0.791 MB / 418.3 MB, free: 51.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/0.9552, allocations: 4.125 kB / 418.3 MB, free: 51.78 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.9552, allocations: 11.98 kB / 418.4 MB, free: 51.77 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/0.9552, allocations: 3.953 kB / 418.4 MB, free: 51.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007429/0.9627, allocations: 2.292 MB / 420.7 MB, free: 49.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.9627, allocations: 4 kB / 420.7 MB, free: 49.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.9639, allocations: 128.3 kB / 420.8 MB, free: 49.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005741/0.9645, allocations: 118.5 kB / 420.9 MB, free: 49.12 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.56e-05/0.9646, allocations: 16 kB / 420.9 MB, free: 49.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005096/0.9697, allocations: 4.333 MB / 425.2 MB, free: 44.38 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.9697, allocations: 4 kB / 425.3 MB, free: 44.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003004/0.9727, allocations: 1.445 MB / 426.7 MB, free: 42.74 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008062/0.9736, allocations: 275.4 kB / 427 MB, free: 42.45 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002901/0.9739, allocations: 23.98 kB / 427 MB, free: 42.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.9752, allocations: 47.92 kB / 427 MB, free: 42.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.9754, allocations: 60.44 kB / 427.1 MB, free: 42.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.25e-05/0.9755, allocations: 20 kB / 427.1 MB, free: 42.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001781/0.9773, allocations: 0.8179 MB / 427.9 MB, free: 41.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.202e-06/0.9773, allocations: 0 / 427.9 MB, free: 41.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002115/0.9794, allocations: 376 kB / 428.3 MB, free: 41.11 MB / 314.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.00392/0.9834, allocations: 3.269 MB / 431.6 MB, free: 37.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.9857, allocations: 1.06 MB / 432.6 MB, free: 36.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.9858, allocations: 8.188 kB / 432.6 MB, free: 36.64 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.987, allocations: 0.6628 MB / 433.3 MB, free: 35.94 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002719/0.9897, allocations: 331.8 kB / 433.6 MB, free: 35.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008404/0.9982, allocations: 2.554 MB / 436.2 MB, free: 32.97 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008222/0.999, allocations: 1.245 MB / 437.4 MB, free: 31.7 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001279/1, allocations: 175.8 kB / 437.6 MB, free: 31.52 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/1.002, allocations: 0.6203 MB / 438.2 MB, free: 30.9 MB / 314.7 MB Notification: Performance of SimCode: time 1.553e-06/1.002, allocations: 0 / 438.2 MB, free: 30.9 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1212/1.123, allocations: 32.75 MB / 471 MB, free: 14.16 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003209/1.123, allocations: 209.4 kB / 471.2 MB, free: 13.93 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.053/5.176, allocations: 3.938 kB / 471.2 MB, free: 13.92 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat