Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.63e-05/2.673e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3428, allocations: 44.5 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2232/0.566, allocations: 89.19 MB / 383.4 MB, free: 8.672 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003341/0.5664, allocations: 83.95 kB / 383.5 MB, free: 8.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1774/0.7439, allocations: 40.05 MB / 423.5 MB, free: 240 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.7439, allocations: 0 / 423.5 MB, free: 240 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001246/0.7441, allocations: 36 kB / 423.6 MB, free: 204 kB / 362.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.2549/0.999, allocations: 1.548 MB / 425.1 MB, free: 88.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.9991, allocations: 9.438 kB / 425.1 MB, free: 88.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001692/1.001, allocations: 260 kB / 425.4 MB, free: 88.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003526/1.004, allocations: 1.099 MB / 426.5 MB, free: 88.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.981e-05/1.004, allocations: 49.66 kB / 426.5 MB, free: 88.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003179/1.005, allocations: 104.2 kB / 426.6 MB, free: 88.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002666/1.007, allocations: 0.811 MB / 427.4 MB, free: 88.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003387/1.011, allocations: 1.207 MB / 428.6 MB, free: 88.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.584e-05/1.011, allocations: 10.09 kB / 428.6 MB, free: 88.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/1.011, allocations: 2.312 kB / 428.7 MB, free: 88.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-05/1.011, allocations: 37.84 kB / 428.7 MB, free: 88.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0127/1.024, allocations: 6.356 MB / 435 MB, free: 85.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009926/1.025, allocations: 350.4 kB / 435.4 MB, free: 85.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000512/1.026, allocations: 189 kB / 435.6 MB, free: 85.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.016e-05/1.026, allocations: 8.938 kB / 435.6 MB, free: 85.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005637/1.026, allocations: 240.4 kB / 435.8 MB, free: 85.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.978e-06/1.026, allocations: 0 / 435.8 MB, free: 85.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.004387/1.031, allocations: 1.507 MB / 437.3 MB, free: 84.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.06e-05/1.031, allocations: 191.1 kB / 437.5 MB, free: 84.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/1.033, allocations: 0.8483 MB / 438.4 MB, free: 83.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/1.033, allocations: 29.14 kB / 438.4 MB, free: 83.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007917/1.034, allocations: 0.8791 MB / 439.3 MB, free: 83.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002424/1.034, allocations: 202 kB / 439.5 MB, free: 83.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-05/1.034, allocations: 3.062 kB / 439.5 MB, free: 83.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/1.034, allocations: 351 kB / 439.8 MB, free: 82.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004821/1.035, allocations: 192.7 kB / 440 MB, free: 82.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008192/1.035, allocations: 0.7462 MB / 440.7 MB, free: 82.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007193/1.036, allocations: 332.4 kB / 441.1 MB, free: 82.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.371e-05/1.036, allocations: 6.156 kB / 441.1 MB, free: 82.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002163/1.038, allocations: 0.8843 MB / 442 MB, free: 82.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.343e-05/1.038, allocations: 38.95 kB / 442 MB, free: 82.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.852e-05/1.038, allocations: 21.62 kB / 442 MB, free: 82.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003125/1.039, allocations: 66.67 kB / 442.1 MB, free: 82.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/1.04, allocations: 274.7 kB / 442.3 MB, free: 82.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001756/1.042, allocations: 2.477 MB / 444.8 MB, free: 79.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/1.044, allocations: 50.2 kB / 444.9 MB, free: 79.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/1.044, allocations: 61.81 kB / 444.9 MB, free: 79.65 MB / 362.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.0002431/1.044, allocations: 167.7 kB / 445.1 MB, free: 79.51 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001161/1.045, allocations: 458.5 kB / 445.5 MB, free: 79.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/1.046, allocations: 113.1 kB / 445.7 MB, free: 79.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001115/1.047, allocations: 471.8 kB / 446.1 MB, free: 79.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/1.047, allocations: 10.5 kB / 446.1 MB, free: 79.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/1.047, allocations: 3.719 kB / 446.1 MB, free: 79.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/1.047, allocations: 6.359 kB / 446.1 MB, free: 79.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00346/1.05, allocations: 1.665 MB / 447.8 MB, free: 78.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/1.05, allocations: 3.875 kB / 447.8 MB, free: 78.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008112/1.051, allocations: 99.45 kB / 447.9 MB, free: 78.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002199/1.051, allocations: 51.81 kB / 448 MB, free: 78.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.23e-05/1.051, allocations: 11.56 kB / 448 MB, free: 78.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/1.053, allocations: 2.442 MB / 450.4 MB, free: 76.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/1.053, allocations: 3.969 kB / 450.4 MB, free: 76.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/1.055, allocations: 1.007 MB / 451.4 MB, free: 75.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007288/1.056, allocations: 232.5 kB / 451.6 MB, free: 75.53 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002572/1.056, allocations: 7.719 kB / 451.7 MB, free: 75.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008614/1.057, allocations: 24.73 kB / 451.7 MB, free: 75.53 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/1.057, allocations: 59.47 kB / 451.7 MB, free: 75.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-05/1.057, allocations: 21.59 kB / 451.8 MB, free: 75.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001157/1.058, allocations: 0.6108 MB / 452.4 MB, free: 75.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.058, allocations: 0 / 452.4 MB, free: 75.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001898/1.06, allocations: 281.7 kB / 452.6 MB, free: 75.4 MB / 362.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.002333/1.062, allocations: 2.734 MB / 455.4 MB, free: 73.06 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001806/1.064, allocations: 0.8121 MB / 456.2 MB, free: 72.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/1.064, allocations: 0 / 456.2 MB, free: 72.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008084/1.065, allocations: 425.2 kB / 456.6 MB, free: 72.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/1.068, allocations: 276.3 kB / 456.9 MB, free: 72.22 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006104/1.074, allocations: 2.073 MB / 458.9 MB, free: 71.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00076/1.075, allocations: 1.205 MB / 460.2 MB, free: 70.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/1.076, allocations: 0.5833 MB / 460.7 MB, free: 69.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.272e-06/1.076, allocations: 0 / 460.7 MB, free: 69.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.26/4.336, allocations: 36.37 MB / 497.1 MB, free: 46.73 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat