Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.599/1.599, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.234e-05/3.25e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2483, allocations: 38.76 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1732/0.4216, allocations: 88.79 MB / 352.6 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.4219, allocations: 79.95 kB / 352.7 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3263/0.7482, allocations: 28.69 MB / 381.4 MB, free: 84.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.7483, allocations: 3.938 kB / 381.4 MB, free: 84.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.308e-05/0.7484, allocations: 25.94 kB / 381.4 MB, free: 84.7 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002457/0.7508, allocations: 1.132 MB / 382.5 MB, free: 84.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.7509, allocations: 7.812 kB / 382.6 MB, free: 84.03 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002743/0.7512, allocations: 160.1 kB / 382.7 MB, free: 83.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009708/0.7522, allocations: 190.7 kB / 382.9 MB, free: 83.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00217/0.7544, allocations: 0.8059 MB / 383.7 MB, free: 83.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.888e-05/0.7545, allocations: 77.38 kB / 383.8 MB, free: 83.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001881/0.7547, allocations: 101.9 kB / 383.9 MB, free: 83.42 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/0.7568, allocations: 0.9001 MB / 384.8 MB, free: 82.99 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.875e-05/0.7568, allocations: 0 / 384.8 MB, free: 82.99 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/0.757, allocations: 41.44 kB / 384.8 MB, free: 82.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.757, allocations: 25.31 kB / 384.8 MB, free: 82.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.7586, allocations: 0.5938 MB / 385.4 MB, free: 82.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006809/0.7654, allocations: 3.948 MB / 389.4 MB, free: 80.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008296/0.7663, allocations: 443.9 kB / 389.8 MB, free: 79.87 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008274/0.7671, allocations: 254.8 kB / 390.1 MB, free: 79.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.391e-05/0.7672, allocations: 11.17 kB / 390.1 MB, free: 79.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.7672, allocations: 39.22 kB / 390.1 MB, free: 79.74 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 2.635e-06/0.7673, allocations: 0 / 390.1 MB, free: 79.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.003158/0.7704, allocations: 1.218 MB / 391.3 MB, free: 78.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.7705, allocations: 88.05 kB / 391.4 MB, free: 78.89 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001331/0.7719, allocations: 0.7007 MB / 392.1 MB, free: 78.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.124e-05/0.772, allocations: 33.55 kB / 392.2 MB, free: 78.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/0.7723, allocations: 0.5727 MB / 392.7 MB, free: 78.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.7725, allocations: 172.9 kB / 392.9 MB, free: 77.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.7725, allocations: 16 kB / 392.9 MB, free: 77.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.842e-05/0.7726, allocations: 342.3 kB / 393.2 MB, free: 77.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.773, allocations: 153.6 kB / 393.4 MB, free: 77.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005271/0.7736, allocations: 452.6 kB / 393.8 MB, free: 76.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005533/0.7741, allocations: 241 kB / 394.1 MB, free: 76.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.7742, allocations: 0 / 394.1 MB, free: 76.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001575/0.7757, allocations: 0.7128 MB / 394.8 MB, free: 75.94 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.7758, allocations: 15.94 kB / 394.8 MB, free: 75.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.7758, allocations: 8 kB / 394.8 MB, free: 75.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000425/0.7762, allocations: 96.69 kB / 394.9 MB, free: 75.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009485/0.7772, allocations: 164.5 kB / 395.1 MB, free: 75.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002567/0.7798, allocations: 2.999 MB / 398.1 MB, free: 72.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.7809, allocations: 40 kB / 398.1 MB, free: 72.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-05/0.7809, allocations: 32 kB / 398.1 MB, free: 72.45 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001674/0.7811, allocations: 156 kB / 398.3 MB, free: 72.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.7813, allocations: 98.16 kB / 398.4 MB, free: 72.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.7825, allocations: 0.4955 MB / 398.9 MB, free: 71.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.7825, allocations: 4 kB / 398.9 MB, free: 71.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.7826, allocations: 0 / 398.9 MB, free: 71.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.7826, allocations: 0 / 398.9 MB, free: 71.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.7853, allocations: 1.46 MB / 400.3 MB, free: 70.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.7854, allocations: 4.031 kB / 400.3 MB, free: 70.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000637/0.786, allocations: 88.2 kB / 400.4 MB, free: 70.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003579/0.7864, allocations: 80.11 kB / 400.5 MB, free: 70.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/0.7864, allocations: 20 kB / 400.5 MB, free: 70.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002483/0.7889, allocations: 2.97 MB / 403.5 MB, free: 67.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.789, allocations: 4 kB / 403.5 MB, free: 67.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.7906, allocations: 0.872 MB / 404.4 MB, free: 66.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004018/0.791, allocations: 197 kB / 404.6 MB, free: 66.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.7912, allocations: 15.52 kB / 404.6 MB, free: 66.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007481/0.7919, allocations: 39.8 kB / 404.6 MB, free: 65.97 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.7921, allocations: 37.44 kB / 404.7 MB, free: 65.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.758e-05/0.7921, allocations: 12 kB / 404.7 MB, free: 65.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009527/0.7931, allocations: 0.5391 MB / 405.2 MB, free: 65.44 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7931, allocations: 0 / 405.2 MB, free: 65.44 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001222/0.7943, allocations: 244 kB / 405.4 MB, free: 65.2 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002174/0.7965, allocations: 2.083 MB / 407.5 MB, free: 63.12 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.7979, allocations: 0.6863 MB / 408.2 MB, free: 62.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.7979, allocations: 0 / 408.2 MB, free: 62.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007888/0.7987, allocations: 447 kB / 408.7 MB, free: 61.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001528/0.8003, allocations: 209.6 kB / 408.9 MB, free: 61.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00376/0.8041, allocations: 1.493 MB / 410.3 MB, free: 60.4 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005183/0.8046, allocations: 1.036 MB / 411.4 MB, free: 59.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006507/0.8053, allocations: 391.3 kB / 411.8 MB, free: 58.99 MB / 314.7 MB Notification: Performance of SimCode: time 1.092e-06/0.8053, allocations: 0 / 411.8 MB, free: 58.99 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.822/3.628, allocations: 25.87 MB / 437.6 MB, free: 33.12 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat does not exist to compare? outputFormat=mat