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.839/1.839, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.293e-05/2.305e-05, allocations: 4 kB / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2564, allocations: 38.76 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1494/0.4058, allocations: 84.39 MB / 342.7 MB, free: 9.355 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003219/0.4062, allocations: 83.95 kB / 342.8 MB, free: 9.273 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4453/0.8515, allocations: 42.22 MB / 385 MB, free: 81.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.8516, allocations: 0 / 385 MB, free: 81.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001382/0.8517, allocations: 39.22 kB / 385.1 MB, free: 81.5 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.004613/0.8563, allocations: 1.598 MB / 386.7 MB, free: 80.65 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.8564, allocations: 11.44 kB / 386.7 MB, free: 80.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001645/0.8581, allocations: 286.7 kB / 387 MB, free: 80.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003797/0.8619, allocations: 1.204 MB / 388.2 MB, free: 80.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.44e-05/0.862, allocations: 50.09 kB / 388.2 MB, free: 80.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003749/0.8624, allocations: 96.81 kB / 388.3 MB, free: 80.03 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00263/0.865, allocations: 0.8841 MB / 389.2 MB, free: 79.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003199/0.8683, allocations: 1.218 MB / 390.4 MB, free: 79.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.86e-05/0.8684, allocations: 11.53 kB / 390.4 MB, free: 79.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/0.8686, allocations: 0 / 390.4 MB, free: 79.08 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.481e-05/0.8686, allocations: 40.44 kB / 390.5 MB, free: 79.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01173/0.8803, allocations: 6.125 MB / 396.6 MB, free: 75.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.8819, allocations: 0.543 MB / 397.1 MB, free: 74.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009728/0.8829, allocations: 394.9 kB / 397.5 MB, free: 74.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.965e-05/0.883, allocations: 11.69 kB / 397.5 MB, free: 74.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.883, allocations: 39.03 kB / 397.6 MB, free: 74.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 2.986e-06/0.8831, allocations: 4 kB / 397.6 MB, free: 74.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.004192/0.8873, allocations: 1.67 MB / 399.2 MB, free: 73.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.8873, allocations: 119.5 kB / 399.4 MB, free: 73.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.889, allocations: 0.8916 MB / 400.3 MB, free: 72.58 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.369e-05/0.8891, allocations: 25.7 kB / 400.3 MB, free: 72.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005609/0.8897, allocations: 0.8611 MB / 401.1 MB, free: 71.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/0.8899, allocations: 249.6 kB / 401.4 MB, free: 71.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-05/0.89, allocations: 4 kB / 401.4 MB, free: 71.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.259e-05/0.8901, allocations: 348.9 kB / 401.7 MB, free: 71.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005776/0.8906, allocations: 230.6 kB / 402 MB, free: 70.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007524/0.8914, allocations: 0.6821 MB / 402.6 MB, free: 70.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007223/0.8921, allocations: 344.1 kB / 403 MB, free: 69.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.8922, allocations: 11.94 kB / 403 MB, free: 69.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002745/0.8949, allocations: 1.075 MB / 404.1 MB, free: 68.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.895, allocations: 8 kB / 404.1 MB, free: 68.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/0.895, allocations: 16 kB / 404.1 MB, free: 68.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005296/0.8956, allocations: 122.8 kB / 404.2 MB, free: 68.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/0.8972, allocations: 263.5 kB / 404.5 MB, free: 68.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003403/0.9006, allocations: 4.065 MB / 408.5 MB, free: 63.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.9023, allocations: 44.03 kB / 408.6 MB, free: 63.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.9024, allocations: 55.52 kB / 408.6 MB, free: 63.79 MB / 314.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.0002935/0.9027, allocations: 152.5 kB / 408.8 MB, free: 63.63 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001789/0.9045, allocations: 0.6925 MB / 409.5 MB, free: 62.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.9047, allocations: 130.4 kB / 409.6 MB, free: 62.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001945/0.9067, allocations: 0.7223 MB / 410.3 MB, free: 62.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.9067, allocations: 4 kB / 410.3 MB, free: 62.05 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.9067, allocations: 4 kB / 410.3 MB, free: 62.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.9067, allocations: 3.984 kB / 410.3 MB, free: 62.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00453/0.9113, allocations: 2.021 MB / 412.3 MB, free: 59.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.9113, allocations: 4 kB / 412.3 MB, free: 59.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.9124, allocations: 136.2 kB / 412.5 MB, free: 59.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005196/0.9129, allocations: 118.4 kB / 412.6 MB, free: 59.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.505e-05/0.913, allocations: 8 kB / 412.6 MB, free: 59.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003652/0.9167, allocations: 4.174 MB / 416.8 MB, free: 55.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/0.9167, allocations: 7.938 kB / 416.8 MB, free: 55.15 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.9194, allocations: 1.366 MB / 418.2 MB, free: 53.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000618/0.92, allocations: 263.5 kB / 418.4 MB, free: 53.37 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002691/0.9203, allocations: 7.953 kB / 418.4 MB, free: 53.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.9213, allocations: 35.97 kB / 418.5 MB, free: 53.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.9215, allocations: 60.42 kB / 418.5 MB, free: 53.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.473e-05/0.9215, allocations: 27.95 kB / 418.5 MB, free: 53.24 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001202/0.9228, allocations: 0.6595 MB / 419.2 MB, free: 52.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.9228, allocations: 0 / 419.2 MB, free: 52.57 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001741/0.9245, allocations: 304 kB / 419.5 MB, free: 52.28 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.003256/0.9278, allocations: 3.16 MB / 422.7 MB, free: 49.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.9297, allocations: 0.9868 MB / 423.6 MB, free: 48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.9298, allocations: 0 / 423.6 MB, free: 48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.9308, allocations: 0.6193 MB / 424.3 MB, free: 47.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002304/0.9331, allocations: 296.5 kB / 424.6 MB, free: 47.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007377/0.9405, allocations: 2.444 MB / 427 MB, free: 44.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007968/0.9414, allocations: 1.249 MB / 428.2 MB, free: 43.24 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001131/0.9425, allocations: 166.8 kB / 428.4 MB, free: 43.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/0.9437, allocations: 0.6125 MB / 429 MB, free: 42.46 MB / 314.7 MB Notification: Performance of SimCode: time 1.332e-06/0.9438, allocations: 3.938 kB / 429 MB, free: 42.45 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09117/1.035, allocations: 26.66 MB / 455.7 MB, free: 15.78 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/1.035, allocations: 158.5 kB / 455.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.62/4.655, allocations: 4.031 kB / 455.8 MB, free: 15.58 MB / 314.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