Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.093/2.093, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.208e-05/5.218e-05, allocations: 4 kB / 269.5 MB, free: 6.297 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1291, allocations: 47.57 MB / 317 MB, free: 6.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4995/0.6286, allocations: 94.76 MB / 411.8 MB, free: 9.223 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.629, allocations: 80.27 kB / 411.9 MB, free: 9.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.194/0.8231, allocations: 44.68 MB / 456.5 MB, free: 3.574 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.8231, allocations: 0 / 456.5 MB, free: 3.574 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000127/0.8233, allocations: 32 kB / 456.6 MB, free: 3.543 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.004758/0.828, allocations: 1.599 MB / 458.2 MB, free: 1.957 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.8281, allocations: 15.97 kB / 458.2 MB, free: 1.941 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000566/0.8287, allocations: 223.9 kB / 458.4 MB, free: 1.711 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/0.8302, allocations: 289.7 kB / 458.7 MB, free: 1.426 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003964/0.8342, allocations: 1.204 MB / 459.9 MB, free: 168 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.8344, allocations: 115.1 kB / 460 MB, free: 52 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004119/0.8348, allocations: 160 kB / 460.2 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003876/0.8387, allocations: 1.409 MB / 461.6 MB, free: 14.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-05/0.8388, allocations: 11.84 kB / 461.6 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002111/0.8391, allocations: 64 kB / 461.6 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.696e-05/0.8391, allocations: 40 kB / 461.7 MB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002891/0.842, allocations: 0.9466 MB / 462.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01373/0.8558, allocations: 6.415 MB / 469 MB, free: 6.637 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002126/0.858, allocations: 0.5517 MB / 469.6 MB, free: 6.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/0.8592, allocations: 419 kB / 470 MB, free: 5.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.996e-05/0.8593, allocations: 12.52 kB / 470 MB, free: 5.648 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.8593, allocations: 39.12 kB / 470.1 MB, free: 5.602 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 3.707e-06/0.8593, allocations: 3.938 kB / 470.1 MB, free: 5.598 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.005136/0.8645, allocations: 1.788 MB / 471.8 MB, free: 3.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.5e-05/0.8646, allocations: 115.6 kB / 472 MB, free: 3.613 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002441/0.867, allocations: 1.086 MB / 473 MB, free: 2.516 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.8672, allocations: 41.7 kB / 473.1 MB, free: 2.469 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00089/0.8681, allocations: 0.8608 MB / 473.9 MB, free: 1.598 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003193/0.8684, allocations: 260.3 kB / 474.2 MB, free: 1.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.27e-05/0.8685, allocations: 28 kB / 474.2 MB, free: 1.312 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.8687, allocations: 349.9 kB / 474.6 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007627/0.8695, allocations: 250.6 kB / 474.8 MB, free: 0.7227 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/0.8706, allocations: 0.6929 MB / 475.5 MB, free: 15.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000994/0.8716, allocations: 377.9 kB / 475.9 MB, free: 15.45 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/0.8716, allocations: 4 kB / 475.9 MB, free: 15.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003523/0.8751, allocations: 1.169 MB / 477.1 MB, free: 14.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.8752, allocations: 12.59 kB / 477.1 MB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.589e-05/0.8753, allocations: 12 kB / 477.1 MB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006196/0.8759, allocations: 126.5 kB / 477.2 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001753/0.8777, allocations: 267.5 kB / 477.5 MB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004722/0.8824, allocations: 4.204 MB / 481.7 MB, free: 9.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/0.8843, allocations: 67.88 kB / 481.7 MB, free: 9.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/0.8844, allocations: 55.94 kB / 481.8 MB, free: 9.105 MB / 394.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.0003004/0.8847, allocations: 184.6 kB / 482 MB, free: 8.918 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003046/0.8851, allocations: 138.3 kB / 482.1 MB, free: 8.781 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002549/0.8876, allocations: 0.7896 MB / 482.9 MB, free: 7.965 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.8877, allocations: 8 kB / 482.9 MB, free: 7.957 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.8877, allocations: 0 / 482.9 MB, free: 7.957 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.8877, allocations: 3.984 kB / 482.9 MB, free: 7.953 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006132/0.8938, allocations: 2.248 MB / 485.1 MB, free: 5.586 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.8939, allocations: 4.469 kB / 485.2 MB, free: 5.582 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001511/0.8954, allocations: 135.8 kB / 485.3 MB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000777/0.8962, allocations: 122.5 kB / 485.4 MB, free: 5.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.141e-05/0.8963, allocations: 16 kB / 485.4 MB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005136/0.9015, allocations: 4.317 MB / 489.7 MB, free: 0.5859 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/0.9016, allocations: 7.938 kB / 489.7 MB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003373/0.9049, allocations: 1.434 MB / 491.2 MB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007594/0.9057, allocations: 283.3 kB / 491.5 MB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000266/0.906, allocations: 20 kB / 491.5 MB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.9073, allocations: 39.97 kB / 491.5 MB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/0.9075, allocations: 68.38 kB / 491.6 MB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.142e-05/0.9076, allocations: 20 kB / 491.6 MB, free: 14.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002025/0.9097, allocations: 0.8218 MB / 492.4 MB, free: 13.69 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.02e-07/0.9097, allocations: 0 / 492.4 MB, free: 13.69 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002315/0.912, allocations: 379.9 kB / 492.8 MB, free: 13.32 MB / 410.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.004833/0.9169, allocations: 3.268 MB / 496.1 MB, free: 9.922 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002579/0.9195, allocations: 1.012 MB / 497.1 MB, free: 8.883 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/0.9196, allocations: 0 / 497.1 MB, free: 8.883 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.9211, allocations: 0.653 MB / 497.7 MB, free: 8.199 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002968/0.9241, allocations: 333.2 kB / 498.1 MB, free: 7.875 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009814/0.934, allocations: 2.536 MB / 0.4889 GB, free: 5.246 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/0.9352, allocations: 1.249 MB / 0.4901 GB, free: 3.969 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001332/0.9365, allocations: 175.7 kB / 0.4902 GB, free: 3.793 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/0.9379, allocations: 0.6243 MB / 0.4909 GB, free: 3.168 MB / 410.7 MB Notification: Performance of SimCode: time 1.303e-06/0.9379, allocations: 0 / 0.4909 GB, free: 3.168 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3765/1.314, allocations: 32.51 MB / 0.5226 GB, free: 119 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/1.315, allocations: 198.6 kB / 0.5228 GB, free: 118.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.983/5.298, allocations: 0 / 0.5228 GB, free: 118.8 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat