Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.739/1.739, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.38e-05/3.389e-05, allocations: 4 kB / 225.1 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2607, allocations: 38.77 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1552/0.4159, allocations: 84.74 MB / 348.6 MB, free: 4.82 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004607/0.4165, allocations: 75.95 kB / 348.7 MB, free: 4.746 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4534/0.8699, allocations: 40.75 MB / 389.4 MB, free: 81.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.8699, allocations: 3.594 kB / 389.4 MB, free: 81.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000104/0.8701, allocations: 31.34 kB / 389.5 MB, free: 81.05 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.003829/0.8739, allocations: 1.551 MB / 391 MB, free: 80.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.874, allocations: 9.969 kB / 391 MB, free: 80.08 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004701/0.8744, allocations: 224.9 kB / 391.2 MB, free: 79.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001139/0.8756, allocations: 254.5 kB / 391.5 MB, free: 79.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003037/0.8787, allocations: 1.099 MB / 392.6 MB, free: 79.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.307e-05/0.8788, allocations: 117.8 kB / 392.7 MB, free: 79.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003255/0.8791, allocations: 162.9 kB / 392.9 MB, free: 78.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003625/0.8828, allocations: 1.423 MB / 394.3 MB, free: 77.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-05/0.8829, allocations: 8 kB / 394.3 MB, free: 77.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/0.8831, allocations: 64 kB / 394.4 MB, free: 77.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.609e-05/0.8831, allocations: 36 kB / 394.4 MB, free: 77.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00262/0.8858, allocations: 0.9182 MB / 395.3 MB, free: 76.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01191/0.8977, allocations: 6.667 MB / 402 MB, free: 69.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009078/0.8987, allocations: 372.6 kB / 402.3 MB, free: 69.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004655/0.8992, allocations: 206.1 kB / 402.5 MB, free: 69.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.294e-05/0.8992, allocations: 8.438 kB / 402.5 MB, free: 69.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00052/0.8998, allocations: 253.7 kB / 402.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.477e-06/0.8998, allocations: 3.938 kB / 402.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003605/0.9034, allocations: 1.615 MB / 404.4 MB, free: 67.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/0.9035, allocations: 192.5 kB / 404.6 MB, free: 66.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002008/0.9055, allocations: 1.065 MB / 405.7 MB, free: 65.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.9057, allocations: 37.7 kB / 405.7 MB, free: 65.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007204/0.9064, allocations: 0.8695 MB / 406.6 MB, free: 64.83 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.9067, allocations: 206.6 kB / 406.8 MB, free: 64.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.9067, allocations: 24 kB / 406.8 MB, free: 64.61 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.506e-05/0.9069, allocations: 345.9 kB / 407.1 MB, free: 64.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000552/0.9074, allocations: 214.6 kB / 407.3 MB, free: 64.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008234/0.9083, allocations: 0.7762 MB / 408.1 MB, free: 63 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007933/0.9091, allocations: 392.6 kB / 408.5 MB, free: 62.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.174e-05/0.9091, allocations: 4 kB / 408.5 MB, free: 62.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002523/0.9116, allocations: 1.145 MB / 409.7 MB, free: 61.44 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.478e-05/0.9117, allocations: 37.7 kB / 409.7 MB, free: 61.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.434e-05/0.9118, allocations: 20 kB / 409.7 MB, free: 61.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003189/0.9121, allocations: 74.28 kB / 409.8 MB, free: 61.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.9136, allocations: 275.5 kB / 410.1 MB, free: 61.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/0.9154, allocations: 2.564 MB / 412.6 MB, free: 58.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/0.9172, allocations: 75.84 kB / 412.7 MB, free: 58.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.9174, allocations: 60 kB / 412.7 MB, free: 58.07 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.000255/0.9177, allocations: 196.4 kB / 412.9 MB, free: 57.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002662/0.918, allocations: 130.4 kB / 413.1 MB, free: 57.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001304/0.9193, allocations: 0.5097 MB / 413.6 MB, free: 57.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.906e-06/0.9193, allocations: 4 kB / 413.6 MB, free: 57.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.9194, allocations: 4 kB / 413.6 MB, free: 57.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.9194, allocations: 7.938 kB / 413.6 MB, free: 57.19 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003779/0.9232, allocations: 1.89 MB / 415.5 MB, free: 55.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.9232, allocations: 4 kB / 415.5 MB, free: 55.19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008254/0.9241, allocations: 116.2 kB / 415.6 MB, free: 55.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000231/0.9243, allocations: 41.7 kB / 415.6 MB, free: 55.03 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.771e-05/0.9244, allocations: 19.95 kB / 415.7 MB, free: 55.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001666/0.926, allocations: 2.552 MB / 418.2 MB, free: 52.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/0.9261, allocations: 4 kB / 418.2 MB, free: 52.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.9279, allocations: 1.082 MB / 419.3 MB, free: 50.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006492/0.9286, allocations: 251.5 kB / 419.5 MB, free: 50.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.9288, allocations: 27.94 kB / 419.6 MB, free: 50.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009842/0.9298, allocations: 27.98 kB / 419.6 MB, free: 50.6 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.93, allocations: 51.86 kB / 419.6 MB, free: 50.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.053e-05/0.9301, allocations: 24 kB / 419.7 MB, free: 50.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001598/0.9317, allocations: 0.7896 MB / 420.5 MB, free: 49.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.9317, allocations: 0 / 420.5 MB, free: 49.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001914/0.9336, allocations: 344 kB / 420.8 MB, free: 49.39 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.002664/0.9363, allocations: 2.839 MB / 423.6 MB, free: 46.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00269/0.9391, allocations: 0.8889 MB / 424.5 MB, free: 45.52 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.036e-06/0.9392, allocations: 1.812 kB / 424.5 MB, free: 45.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008672/0.94, allocations: 454.2 kB / 425 MB, free: 45.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.9424, allocations: 303.7 kB / 425.3 MB, free: 44.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00843/0.9508, allocations: 2.124 MB / 427.4 MB, free: 42.54 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001489/0.9524, allocations: 1.209 MB / 428.6 MB, free: 41.3 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.002152/0.9546, allocations: 175.3 kB / 428.8 MB, free: 41.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/0.9563, allocations: 0.5852 MB / 429.4 MB, free: 40.54 MB / 314.7 MB Notification: Performance of SimCode: time 1.853e-06/0.9564, allocations: 3.938 kB / 429.4 MB, free: 40.54 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07574/1.032, allocations: 28.43 MB / 457.8 MB, free: 12.13 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/1.032, allocations: 203.9 kB / 458 MB, free: 11.9 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.58/4.613, allocations: 3.938 kB / 458 MB, free: 11.89 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat