Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.209e-05/3.218e-05, allocations: 4 kB / 255.5 MB, free: 2.598 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1063, allocations: 44.5 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.5559, allocations: 89.87 MB / 389.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.5562, allocations: 84.2 kB / 389.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1608/0.717, allocations: 40.6 MB / 430.5 MB, free: 15.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.125e-06/0.7171, allocations: 4 kB / 430.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001546/0.7173, allocations: 38.81 kB / 430.6 MB, free: 15.48 MB / 330.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.005163/0.7224, allocations: 1.554 MB / 432.1 MB, free: 14.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.7225, allocations: 7.75 kB / 432.1 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000597/0.7231, allocations: 220 kB / 432.4 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001309/0.7244, allocations: 266.8 kB / 432.6 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003321/0.7278, allocations: 1.093 MB / 433.7 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.7279, allocations: 115.1 kB / 433.8 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000316/0.7283, allocations: 163.2 kB / 434 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003851/0.7321, allocations: 1.403 MB / 435.4 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.014e-05/0.7323, allocations: 15.83 kB / 435.4 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002051/0.7325, allocations: 61.62 kB / 435.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.077e-05/0.7325, allocations: 44 kB / 435.5 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003055/0.7356, allocations: 0.8868 MB / 436.4 MB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02099/0.7567, allocations: 6.652 MB / 443 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.7583, allocations: 375.4 kB / 443.4 MB, free: 6.039 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008581/0.7592, allocations: 198.2 kB / 443.6 MB, free: 5.844 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.149e-05/0.7593, allocations: 4.438 kB / 443.6 MB, free: 5.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009464/0.7603, allocations: 256.7 kB / 443.9 MB, free: 5.566 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 9.117e-06/0.7603, allocations: 4 kB / 443.9 MB, free: 5.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.006386/0.7667, allocations: 1.608 MB / 445.5 MB, free: 3.895 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001846/0.7669, allocations: 192.4 kB / 445.7 MB, free: 3.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003836/0.7708, allocations: 1.073 MB / 446.7 MB, free: 2.574 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001741/0.771, allocations: 37.7 kB / 446.8 MB, free: 2.531 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001539/0.7726, allocations: 0.8748 MB / 447.6 MB, free: 1.652 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000403/0.773, allocations: 205.1 kB / 447.8 MB, free: 1.453 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.7732, allocations: 20 kB / 447.9 MB, free: 1.434 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002636/0.7735, allocations: 357.9 kB / 448.2 MB, free: 1.078 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000996/0.7745, allocations: 206.6 kB / 448.4 MB, free: 0.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.7763, allocations: 0.7775 MB / 449.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.7778, allocations: 380.7 kB / 449.6 MB, free: 15.44 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.533e-05/0.7779, allocations: 8 kB / 449.6 MB, free: 15.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.004639/0.7825, allocations: 1.08 MB / 450.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.7827, allocations: 49.91 kB / 450.7 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-05/0.7827, allocations: 20 kB / 450.7 MB, free: 14.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005046/0.7833, allocations: 65.64 kB / 450.8 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/0.7859, allocations: 271.6 kB / 451 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004163/0.7901, allocations: 2.576 MB / 453.6 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002821/0.793, allocations: 72.02 kB / 453.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002626/0.7933, allocations: 56 kB / 453.7 MB, free: 10.96 MB / 346.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.0004485/0.7937, allocations: 196.3 kB / 453.9 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004867/0.7943, allocations: 138.3 kB / 454.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002336/0.7966, allocations: 0.5097 MB / 454.6 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.7967, allocations: 8 kB / 454.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.7967, allocations: 4 kB / 454.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.7967, allocations: 3.984 kB / 454.6 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007175/0.8039, allocations: 1.881 MB / 456.5 MB, free: 8.094 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.804, allocations: 4 kB / 456.5 MB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/0.8055, allocations: 107.8 kB / 456.6 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004057/0.8059, allocations: 45.7 kB / 456.6 MB, free: 7.934 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-05/0.806, allocations: 16.28 kB / 456.6 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003713/0.8098, allocations: 2.544 MB / 459.2 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-05/0.8098, allocations: 11.94 kB / 459.2 MB, free: 5.098 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003548/0.8134, allocations: 1.079 MB / 460.3 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/0.8146, allocations: 251.5 kB / 460.5 MB, free: 3.566 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000428/0.8151, allocations: 19.98 kB / 460.5 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001719/0.8168, allocations: 31.92 kB / 460.6 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002749/0.8171, allocations: 59.81 kB / 460.6 MB, free: 3.457 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.108e-05/0.8172, allocations: 20 kB / 460.7 MB, free: 3.438 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003276/0.8205, allocations: 0.7858 MB / 461.4 MB, free: 2.648 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.452e-06/0.8206, allocations: 0 / 461.4 MB, free: 2.648 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003464/0.8241, allocations: 340 kB / 461.8 MB, free: 2.316 MB / 346.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.004242/0.8284, allocations: 2.843 MB / 464.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002259/0.8307, allocations: 0.8405 MB / 465.5 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/0.8308, allocations: 0 / 465.5 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002387/0.8332, allocations: 441 kB / 465.9 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002795/0.836, allocations: 309 kB / 466.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007889/0.844, allocations: 2.112 MB / 468.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001265/0.8453, allocations: 1.217 MB / 469.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001274/0.8466, allocations: 171.3 kB / 469.7 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001282/0.8479, allocations: 0.5852 MB / 470.3 MB, free: 9.527 MB / 362.7 MB Notification: Performance of SimCode: time 1.232e-06/0.8479, allocations: 0 / 470.3 MB, free: 9.527 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1713/1.019, allocations: 28.35 MB / 498.6 MB, free: 13.21 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002735/1.02, allocations: 203 kB / 498.8 MB, free: 12.97 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.654/4.673, allocations: 4 kB / 498.8 MB, free: 12.97 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat