Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.096/2.096, allocations: 171.2 MB / 183.8 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.834e-05/4.861e-05, allocations: 8 kB / 225.1 MB, free: 2.73 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3399, allocations: 38.76 MB / 263.9 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1596/0.4995, allocations: 85.06 MB / 348.9 MB, free: 4.688 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.4999, allocations: 79.95 kB / 349 MB, free: 4.609 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3964/0.8963, allocations: 42.86 MB / 391.8 MB, free: 80.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.8963, allocations: 0 / 391.8 MB, free: 80.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001064/0.8965, allocations: 30.69 kB / 391.9 MB, free: 80.45 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.004137/0.9006, allocations: 1.6 MB / 393.5 MB, free: 78.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.9007, allocations: 8.031 kB / 393.5 MB, free: 78.91 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005047/0.9012, allocations: 219.9 kB / 393.7 MB, free: 78.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001407/0.9026, allocations: 289.4 kB / 394 MB, free: 78.4 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003586/0.9062, allocations: 1.201 MB / 395.2 MB, free: 77.17 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.233e-05/0.9063, allocations: 115 kB / 395.3 MB, free: 77.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003091/0.9067, allocations: 159.9 kB / 395.5 MB, free: 76.9 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003301/0.91, allocations: 1.42 MB / 396.9 MB, free: 75.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.132e-05/0.9101, allocations: 7.906 kB / 396.9 MB, free: 75.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001927/0.9103, allocations: 64 kB / 396.9 MB, free: 75.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.578e-05/0.9103, allocations: 47.88 kB / 397 MB, free: 75.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0025/0.9128, allocations: 0.9465 MB / 397.9 MB, free: 74.35 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01141/0.9243, allocations: 6.42 MB / 404.4 MB, free: 67.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/0.926, allocations: 0.5557 MB / 404.9 MB, free: 67.1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.9271, allocations: 420.9 kB / 405.3 MB, free: 66.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.21e-05/0.9271, allocations: 12.5 kB / 405.3 MB, free: 66.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.9272, allocations: 47.12 kB / 405.4 MB, free: 66.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=66): time 3.106e-06/0.9272, allocations: 0 / 405.4 MB, free: 66.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.004508/0.9317, allocations: 1.804 MB / 407.2 MB, free: 64.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.9318, allocations: 115.5 kB / 407.3 MB, free: 64.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/0.9339, allocations: 1.086 MB / 408.4 MB, free: 63.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.35e-05/0.934, allocations: 33.7 kB / 408.4 MB, free: 63.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005384/0.9346, allocations: 0.8424 MB / 409.3 MB, free: 62.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000213/0.9348, allocations: 261.7 kB / 409.5 MB, free: 62.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.019e-05/0.9349, allocations: 24 kB / 409.5 MB, free: 62.36 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.627e-05/0.935, allocations: 350.8 kB / 409.9 MB, free: 62.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006435/0.9356, allocations: 258.6 kB / 410.1 MB, free: 61.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008555/0.9365, allocations: 0.6968 MB / 410.8 MB, free: 60.85 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000823/0.9373, allocations: 373.9 kB / 411.2 MB, free: 60.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.9374, allocations: 8 kB / 411.2 MB, free: 60.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002746/0.9401, allocations: 1.084 MB / 412.3 MB, free: 59.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/0.9402, allocations: 15.95 kB / 412.3 MB, free: 59.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.347e-05/0.9402, allocations: 16 kB / 412.3 MB, free: 59.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005879/0.9408, allocations: 123 kB / 412.4 MB, free: 59.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/0.9425, allocations: 263.6 kB / 412.7 MB, free: 58.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003686/0.9462, allocations: 4.213 MB / 416.9 MB, free: 54.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001749/0.948, allocations: 68 kB / 417 MB, free: 54.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.9481, allocations: 59.98 kB / 417 MB, free: 54.21 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.0002402/0.9484, allocations: 176.5 kB / 417.2 MB, free: 54.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002307/0.9486, allocations: 138.3 kB / 417.3 MB, free: 53.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002247/0.9509, allocations: 0.7974 MB / 418.1 MB, free: 53.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.9509, allocations: 8 kB / 418.1 MB, free: 53.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.9509, allocations: 0 / 418.1 MB, free: 53.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.951, allocations: 7.938 kB / 418.2 MB, free: 53.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005161/0.9561, allocations: 2.262 MB / 420.4 MB, free: 50.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.9562, allocations: 12.06 kB / 420.4 MB, free: 50.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.9573, allocations: 131.8 kB / 420.6 MB, free: 50.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005766/0.9579, allocations: 118.9 kB / 420.7 MB, free: 50.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.737e-05/0.958, allocations: 16 kB / 420.7 MB, free: 50.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004001/0.962, allocations: 4.32 MB / 425 MB, free: 45.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/0.962, allocations: 12 kB / 425 MB, free: 45.69 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002963/0.965, allocations: 1.442 MB / 426.5 MB, free: 44.06 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007022/0.9658, allocations: 287.4 kB / 426.7 MB, free: 43.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002607/0.966, allocations: 16 kB / 426.8 MB, free: 43.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.9672, allocations: 47.95 kB / 426.8 MB, free: 43.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.9673, allocations: 64.38 kB / 426.9 MB, free: 43.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.605e-05/0.9674, allocations: 28 kB / 426.9 MB, free: 43.61 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001576/0.969, allocations: 0.814 MB / 427.7 MB, free: 42.79 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.969, allocations: 4 kB / 427.7 MB, free: 42.79 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002053/0.9711, allocations: 375.9 kB / 428.1 MB, free: 42.42 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.004088/0.9752, allocations: 3.271 MB / 431.4 MB, free: 39.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002852/0.9781, allocations: 1.011 MB / 432.4 MB, free: 38.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/0.9781, allocations: 0 / 432.4 MB, free: 38.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.9796, allocations: 0.6423 MB / 433 MB, free: 37.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003493/0.9831, allocations: 329.2 kB / 433.3 MB, free: 37.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01897/1.002, allocations: 2.589 MB / 435.9 MB, free: 34.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001227/1.003, allocations: 1.245 MB / 437.2 MB, free: 33.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001669/1.005, allocations: 0.6321 MB / 437.8 MB, free: 32.44 MB / 314.7 MB Notification: Performance of SimCode: time 1.954e-06/1.005, allocations: 0 / 437.8 MB, free: 32.44 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.477/4.482, allocations: 46.91 MB / 484.7 MB, free: 1.484 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat