Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.759/1.759, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.247e-05/3.253e-05, allocations: 4 kB / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3588, allocations: 38.77 MB / 263.8 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1539/0.5128, allocations: 84.75 MB / 348.6 MB, free: 4.887 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/0.5132, allocations: 75.95 kB / 348.7 MB, free: 4.812 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3953/0.9085, allocations: 40.76 MB / 389.4 MB, free: 81.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.9086, allocations: 0 / 389.4 MB, free: 81.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000104/0.9087, allocations: 31.88 kB / 389.5 MB, free: 81.12 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004179/0.9129, allocations: 1.557 MB / 391 MB, free: 80.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.9129, allocations: 11.78 kB / 391 MB, free: 80.15 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004107/0.9134, allocations: 222.5 kB / 391.2 MB, free: 80.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.9145, allocations: 259.1 kB / 391.5 MB, free: 79.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002872/0.9174, allocations: 1.094 MB / 392.6 MB, free: 79.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.9175, allocations: 123.6 kB / 392.7 MB, free: 79.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003139/0.9178, allocations: 156.6 kB / 392.9 MB, free: 79.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003224/0.9211, allocations: 1.411 MB / 394.3 MB, free: 77.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-05/0.9212, allocations: 4 kB / 394.3 MB, free: 77.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001835/0.9214, allocations: 60 kB / 394.3 MB, free: 77.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.385e-05/0.9214, allocations: 40 kB / 394.4 MB, free: 77.58 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002383/0.9238, allocations: 0.8943 MB / 395.3 MB, free: 76.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01719/0.941, allocations: 6.659 MB / 401.9 MB, free: 69.74 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.9422, allocations: 367.8 kB / 402.3 MB, free: 69.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/0.9427, allocations: 204.2 kB / 402.5 MB, free: 69.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.87e-05/0.9427, allocations: 4.438 kB / 402.5 MB, free: 69.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000515/0.9432, allocations: 252.9 kB / 402.7 MB, free: 68.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.337e-06/0.9433, allocations: 0 / 402.7 MB, free: 68.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003581/0.9469, allocations: 1.62 MB / 404.4 MB, free: 67.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.162e-05/0.947, allocations: 188.5 kB / 404.5 MB, free: 66.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001968/0.949, allocations: 1.061 MB / 405.6 MB, free: 65.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.335e-05/0.949, allocations: 41.69 kB / 405.6 MB, free: 65.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006353/0.9497, allocations: 0.8453 MB / 406.5 MB, free: 65.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.9499, allocations: 204.6 kB / 406.7 MB, free: 64.81 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.234e-05/0.9499, allocations: 28 kB / 406.7 MB, free: 64.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.723e-05/0.9501, allocations: 358.7 kB / 407.1 MB, free: 64.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000529/0.9506, allocations: 206.6 kB / 407.3 MB, free: 64.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008045/0.9514, allocations: 0.7814 MB / 408.1 MB, free: 63.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007675/0.9522, allocations: 388.6 kB / 408.4 MB, free: 62.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.145e-05/0.9522, allocations: 4 kB / 408.4 MB, free: 62.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002187/0.9544, allocations: 1.01 MB / 409.4 MB, free: 61.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.978e-05/0.9545, allocations: 37.7 kB / 409.5 MB, free: 61.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.9545, allocations: 23.98 kB / 409.5 MB, free: 61.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003101/0.9548, allocations: 69.7 kB / 409.6 MB, free: 61.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.9563, allocations: 275.9 kB / 409.8 MB, free: 61.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.9581, allocations: 2.564 MB / 412.4 MB, free: 58.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/0.9598, allocations: 80.03 kB / 412.5 MB, free: 58.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.965e-05/0.9599, allocations: 60 kB / 412.5 MB, free: 58.37 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002205/0.9601, allocations: 193.9 kB / 412.7 MB, free: 58.17 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001918/0.9603, allocations: 134.4 kB / 412.9 MB, free: 58.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.9616, allocations: 0.5036 MB / 413.4 MB, free: 57.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.9616, allocations: 8 kB / 413.4 MB, free: 57.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.9617, allocations: 4 kB / 413.4 MB, free: 57.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.9617, allocations: 11.97 kB / 413.4 MB, free: 57.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.9652, allocations: 1.877 MB / 415.3 MB, free: 55.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.9652, allocations: 4 kB / 415.3 MB, free: 55.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008094/0.966, allocations: 104.4 kB / 415.4 MB, free: 55.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002169/0.9663, allocations: 53.62 kB / 415.4 MB, free: 55.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.28e-05/0.9663, allocations: 15.95 kB / 415.4 MB, free: 55.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001617/0.968, allocations: 2.552 MB / 418 MB, free: 52.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.968, allocations: 4 kB / 418 MB, free: 52.51 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.9697, allocations: 1.077 MB / 419.1 MB, free: 51.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005682/0.9703, allocations: 251.4 kB / 419.3 MB, free: 50.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.9705, allocations: 19.95 kB / 419.3 MB, free: 50.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009397/0.9715, allocations: 39.97 kB / 419.4 MB, free: 50.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.9716, allocations: 51.88 kB / 419.4 MB, free: 50.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/0.9717, allocations: 16 kB / 419.4 MB, free: 50.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001548/0.9732, allocations: 0.7974 MB / 420.2 MB, free: 50.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9733, allocations: 0 / 420.2 MB, free: 50.05 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00172/0.975, allocations: 347.9 kB / 420.6 MB, free: 49.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002421/0.9774, allocations: 2.833 MB / 423.4 MB, free: 46.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.9792, allocations: 0.8478 MB / 424.3 MB, free: 45.9 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.9792, allocations: 0 / 424.3 MB, free: 45.9 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007094/0.9799, allocations: 425.4 kB / 424.7 MB, free: 45.47 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/0.9822, allocations: 304 kB / 425 MB, free: 45.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005712/0.9879, allocations: 2.157 MB / 427.1 MB, free: 42.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007311/0.9887, allocations: 1.213 MB / 428.3 MB, free: 41.67 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009806/0.9897, allocations: 0.5891 MB / 428.9 MB, free: 41.08 MB / 314.7 MB Notification: Performance of SimCode: time 2.084e-06/0.9897, allocations: 0 / 428.9 MB, free: 41.08 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.088/4.078, allocations: 37.5 MB / 466.4 MB, free: 3.566 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.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat