Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.002/2.002, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.777e-05/2.788e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3847, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1743/0.5591, allocations: 89.52 MB / 383.7 MB, free: 8.344 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003788/0.5595, allocations: 83.95 kB / 383.8 MB, free: 8.262 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4688/1.028, allocations: 43.9 MB / 427.7 MB, free: 89.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.028, allocations: 0 / 427.7 MB, free: 89.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001384/1.029, allocations: 35.25 kB / 427.7 MB, free: 89.49 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.004667/1.033, allocations: 1.599 MB / 429.3 MB, free: 88.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/1.033, allocations: 12.12 kB / 429.4 MB, free: 88.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0016/1.035, allocations: 285.2 kB / 429.6 MB, free: 88.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003902/1.039, allocations: 1.201 MB / 430.8 MB, free: 88.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.877e-05/1.039, allocations: 49.97 kB / 430.9 MB, free: 88.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003547/1.039, allocations: 98.03 kB / 431 MB, free: 88.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002897/1.042, allocations: 0.8708 MB / 431.8 MB, free: 88.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003565/1.046, allocations: 1.212 MB / 433.1 MB, free: 88.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.58e-05/1.046, allocations: 14.14 kB / 433.1 MB, free: 88.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/1.046, allocations: 1.188 kB / 433.1 MB, free: 88.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.925e-05/1.046, allocations: 38.25 kB / 433.1 MB, free: 88.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01263/1.059, allocations: 6.123 MB / 439.2 MB, free: 85.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001813/1.061, allocations: 0.5333 MB / 439.8 MB, free: 85.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009755/1.062, allocations: 396.7 kB / 440.2 MB, free: 85.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.248e-05/1.062, allocations: 13.03 kB / 440.2 MB, free: 85.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/1.062, allocations: 46.83 kB / 440.2 MB, free: 85.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 3.246e-06/1.062, allocations: 0 / 440.2 MB, free: 85.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=72): time 0.004537/1.066, allocations: 1.662 MB / 441.9 MB, free: 84.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/1.067, allocations: 112 kB / 442 MB, free: 84.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001908/1.068, allocations: 0.8937 MB / 442.9 MB, free: 84.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001588/1.069, allocations: 28.05 kB / 442.9 MB, free: 84.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005426/1.069, allocations: 0.854 MB / 443.8 MB, free: 83.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/1.069, allocations: 254.2 kB / 444 MB, free: 83.78 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.888e-05/1.07, allocations: 0 / 444 MB, free: 83.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.677e-05/1.07, allocations: 350.5 kB / 444.4 MB, free: 83.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005572/1.07, allocations: 234.2 kB / 444.6 MB, free: 83.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007892/1.071, allocations: 0.6738 MB / 445.3 MB, free: 82.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008559/1.072, allocations: 344.9 kB / 445.6 MB, free: 82.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/1.072, allocations: 3.688 kB / 445.6 MB, free: 82.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002728/1.075, allocations: 0.989 MB / 446.6 MB, free: 82.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/1.075, allocations: 12.41 kB / 446.6 MB, free: 82.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.503e-05/1.075, allocations: 15.69 kB / 446.6 MB, free: 82.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005898/1.075, allocations: 119.5 kB / 446.7 MB, free: 82.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001698/1.077, allocations: 256.6 kB / 447 MB, free: 82.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003585/1.081, allocations: 4.075 MB / 451.1 MB, free: 78.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/1.082, allocations: 41.56 kB / 451.1 MB, free: 78.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/1.083, allocations: 58.08 kB / 451.2 MB, free: 78.95 MB / 362.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.0003058/1.083, allocations: 157 kB / 451.3 MB, free: 78.81 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001954/1.085, allocations: 0.6802 MB / 452 MB, free: 78.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002596/1.085, allocations: 128.4 kB / 452.1 MB, free: 78.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002042/1.087, allocations: 0.711 MB / 452.8 MB, free: 78.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/1.087, allocations: 9.125 kB / 452.8 MB, free: 78.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/1.087, allocations: 0 / 452.8 MB, free: 78.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/1.087, allocations: 10.47 kB / 452.8 MB, free: 78.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005083/1.092, allocations: 2.006 MB / 454.8 MB, free: 77.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/1.093, allocations: 10.22 kB / 454.9 MB, free: 77.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/1.094, allocations: 129 kB / 455 MB, free: 77.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005606/1.094, allocations: 117.6 kB / 455.1 MB, free: 77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/1.094, allocations: 7.25 kB / 455.1 MB, free: 77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003767/1.098, allocations: 4.168 MB / 459.3 MB, free: 73.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/1.098, allocations: 3.031 kB / 459.3 MB, free: 73.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002775/1.101, allocations: 1.357 MB / 460.6 MB, free: 72.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008714/1.102, allocations: 264.8 kB / 460.9 MB, free: 71.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002689/1.102, allocations: 6.062 kB / 460.9 MB, free: 71.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/1.103, allocations: 31.42 kB / 460.9 MB, free: 71.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/1.103, allocations: 66.03 kB / 461 MB, free: 71.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.845e-05/1.104, allocations: 23.16 kB / 461 MB, free: 71.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001243/1.105, allocations: 0.6577 MB / 461.7 MB, free: 71.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.573e-06/1.105, allocations: 0 / 461.7 MB, free: 71.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001946/1.107, allocations: 315.2 kB / 462 MB, free: 71.52 MB / 362.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.003453/1.11, allocations: 3.142 MB / 465.1 MB, free: 68.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002025/1.112, allocations: 0.98 MB / 466.1 MB, free: 68.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/1.112, allocations: 0 / 466.1 MB, free: 68.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/1.113, allocations: 0.6334 MB / 466.7 MB, free: 67.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002403/1.116, allocations: 297.8 kB / 467 MB, free: 67.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00798/1.124, allocations: 2.494 MB / 469.5 MB, free: 66.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008252/1.125, allocations: 1.256 MB / 470.8 MB, free: 65.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001116/1.126, allocations: 0.6214 MB / 471.4 MB, free: 65.44 MB / 362.7 MB Notification: Performance of SimCode: time 1.262e-06/1.126, allocations: 0 / 471.4 MB, free: 65.44 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.325/4.451, allocations: 45.9 MB / 0.5052 GB, free: 27.35 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat