Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.019/2.019, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.139e-05, allocations: 7.984 kB / 292.2 MB, free: 8.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 50.41 MB / 342.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5133/0.6153, allocations: 95.18 MB / 437.8 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002955/0.6156, allocations: 81.2 kB / 437.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09965/0.7153, allocations: 23.9 MB / 461.8 MB, free: 11.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.769e-06/0.7153, allocations: 4.641 kB / 461.8 MB, free: 11.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.515e-05/0.7154, allocations: 16 kB / 461.8 MB, free: 11.04 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002687/0.7181, allocations: 1.018 MB / 462.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.7182, allocations: 11.97 kB / 462.9 MB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002719/0.7185, allocations: 136.8 kB / 463 MB, free: 9.934 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000788/0.7193, allocations: 146.7 kB / 463.1 MB, free: 9.789 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/0.721, allocations: 0.6707 MB / 463.8 MB, free: 9.215 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.499e-05/0.7211, allocations: 65.08 kB / 463.9 MB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001769/0.7213, allocations: 89.11 kB / 464 MB, free: 9.117 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/0.7233, allocations: 0.7685 MB / 464.7 MB, free: 8.344 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.051e-05/0.7233, allocations: 3.906 kB / 464.7 MB, free: 8.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/0.7234, allocations: 36 kB / 464.8 MB, free: 8.305 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.829e-05/0.7235, allocations: 24 kB / 464.8 MB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.7249, allocations: 487.9 kB / 465.3 MB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006687/0.7316, allocations: 3.655 MB / 468.9 MB, free: 3.906 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006453/0.7323, allocations: 214.7 kB / 469.1 MB, free: 3.688 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002649/0.7326, allocations: 101.3 kB / 469.2 MB, free: 3.586 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.906e-05/0.7326, allocations: 7.938 kB / 469.2 MB, free: 3.578 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.7327, allocations: 38.55 kB / 469.3 MB, free: 3.531 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.655e-06/0.7327, allocations: 0 / 469.3 MB, free: 3.531 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002141/0.7348, allocations: 0.8411 MB / 470.1 MB, free: 2.633 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.7349, allocations: 85.05 kB / 470.2 MB, free: 2.531 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00142/0.7364, allocations: 0.6801 MB / 470.9 MB, free: 1.848 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.7364, allocations: 29.64 kB / 470.9 MB, free: 1.812 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005217/0.7369, allocations: 0.5061 MB / 471.4 MB, free: 1.297 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.7371, allocations: 114.5 kB / 471.5 MB, free: 1.184 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/0.7371, allocations: 8 kB / 471.5 MB, free: 1.176 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.7373, allocations: 330 kB / 471.9 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.7376, allocations: 109.5 kB / 472 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005559/0.7382, allocations: 394 kB / 472.3 MB, free: 224 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004636/0.7387, allocations: 188.1 kB / 472.5 MB, free: 36 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.7387, allocations: 0 / 472.5 MB, free: 36 kB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001481/0.7402, allocations: 0.5565 MB / 473.1 MB, free: 15.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.7402, allocations: 15.94 kB / 473.1 MB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.2e-05/0.7403, allocations: 12 kB / 473.1 MB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000192/0.7405, allocations: 32.86 kB / 473.1 MB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008859/0.7414, allocations: 148 kB / 473.3 MB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.7426, allocations: 1.284 MB / 474.6 MB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009268/0.7436, allocations: 44.05 kB / 474.6 MB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.547e-05/0.7436, allocations: 39.98 kB / 474.7 MB, free: 13.76 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001661/0.7438, allocations: 144.7 kB / 474.8 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.744, allocations: 86.92 kB / 474.9 MB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008306/0.7448, allocations: 302.8 kB / 475.2 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.363e-06/0.7449, allocations: 4 kB / 475.2 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.7449, allocations: 0 / 475.2 MB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.7449, allocations: 3.938 kB / 475.2 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.7472, allocations: 1.055 MB / 476.2 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.7472, allocations: 4.047 kB / 476.2 MB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005699/0.7478, allocations: 71.88 kB / 476.3 MB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001323/0.7479, allocations: 29.06 kB / 476.3 MB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.748, allocations: 8 kB / 476.4 MB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/0.7492, allocations: 1.28 MB / 477.6 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.7493, allocations: 4 kB / 477.6 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.7504, allocations: 0.6139 MB / 478.3 MB, free: 9.848 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003905/0.7508, allocations: 184.1 kB / 478.4 MB, free: 9.648 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.751, allocations: 11.98 kB / 478.4 MB, free: 9.637 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006369/0.7517, allocations: 23.98 kB / 478.5 MB, free: 9.613 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.995e-05/0.7518, allocations: 27.91 kB / 478.5 MB, free: 9.586 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.7518, allocations: 8 kB / 478.5 MB, free: 9.578 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001073/0.7529, allocations: 0.5263 MB / 479 MB, free: 9.059 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7529, allocations: 0 / 479 MB, free: 9.059 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001112/0.754, allocations: 207.9 kB / 479.2 MB, free: 8.855 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002059/0.7561, allocations: 1.858 MB / 481.1 MB, free: 6.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.7571, allocations: 408 kB / 481.5 MB, free: 6.523 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.7572, allocations: 448 / 481.5 MB, free: 6.523 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000443/0.7576, allocations: 221.6 kB / 481.7 MB, free: 6.297 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/0.7593, allocations: 207.6 kB / 481.9 MB, free: 6.098 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003467/0.7628, allocations: 1.201 MB / 483.1 MB, free: 4.832 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006772/0.7635, allocations: 0.9687 MB / 484.1 MB, free: 3.836 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006511/0.7641, allocations: 102.7 kB / 484.2 MB, free: 3.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005752/0.7647, allocations: 315.3 kB / 484.5 MB, free: 3.422 MB / 394.7 MB Notification: Performance of SimCode: time 1.143e-06/0.7647, allocations: 0 / 484.5 MB, free: 3.422 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0658/0.8305, allocations: 19.35 MB / 0.492 GB, free: 348 kB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002328/0.8308, allocations: 195.4 kB / 0.4922 GB, free: 112 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.033/3.864, allocations: 3.938 kB / 0.4922 GB, free: 108 kB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat