Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.985/1.985, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.08e-05, allocations: 4 kB / 292.2 MB, free: 8.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 50.4 MB / 342.6 MB, free: 5.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4957/0.6005, allocations: 116.4 MB / 459 MB, free: 9.812 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003817/0.601, allocations: 86.02 kB / 459.1 MB, free: 9.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1643/0.7652, allocations: 39.61 MB / 498.7 MB, free: 6.309 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.7653, allocations: 0 / 498.7 MB, free: 6.309 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001758/0.7655, allocations: 36 kB / 498.8 MB, free: 6.273 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004928/0.7704, allocations: 1.525 MB / 0.4886 GB, free: 4.695 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.7705, allocations: 8.031 kB / 0.4886 GB, free: 4.688 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006432/0.7711, allocations: 216 kB / 0.4888 GB, free: 4.465 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001319/0.7725, allocations: 253.5 kB / 0.489 GB, free: 4.215 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003787/0.7763, allocations: 1.063 MB / 0.4901 GB, free: 3.109 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001511/0.7765, allocations: 111 kB / 0.4902 GB, free: 3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005285/0.7771, allocations: 155.9 kB / 0.4903 GB, free: 2.848 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003978/0.7811, allocations: 1.336 MB / 0.4916 GB, free: 1.457 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-05/0.7812, allocations: 7.984 kB / 0.4916 GB, free: 1.449 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/0.7814, allocations: 67.98 kB / 0.4917 GB, free: 1.383 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.521e-05/0.7815, allocations: 36 kB / 0.4917 GB, free: 1.348 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003009/0.7845, allocations: 0.8568 MB / 0.4926 GB, free: 500 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/0.7989, allocations: 6.217 MB / 0.4986 GB, free: 9.961 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001687/0.8006, allocations: 0.6177 MB / 0.4992 GB, free: 9.297 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005153/0.8012, allocations: 211.4 kB / 0.4994 GB, free: 9.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.945e-05/0.8013, allocations: 12.42 kB / 0.4995 GB, free: 9.074 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.8013, allocations: 35 kB / 0.4995 GB, free: 9.031 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 3.246e-06/0.8013, allocations: 3.938 kB / 0.4995 GB, free: 9.027 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.003618/0.805, allocations: 1.352 MB / 0.5008 GB, free: 7.621 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.8051, allocations: 89.5 kB / 0.5009 GB, free: 7.516 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.8072, allocations: 0.9429 MB / 0.5018 GB, free: 6.559 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001135/0.8074, allocations: 37.7 kB / 0.5019 GB, free: 6.516 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007922/0.8082, allocations: 0.8014 MB / 0.5026 GB, free: 5.703 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002503/0.8084, allocations: 209.1 kB / 0.5028 GB, free: 5.496 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.167e-05/0.8085, allocations: 24 kB / 0.5029 GB, free: 5.473 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.8087, allocations: 341.9 kB / 0.5032 GB, free: 5.133 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006063/0.8093, allocations: 202 kB / 0.5034 GB, free: 4.934 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008674/0.8102, allocations: 0.5922 MB / 0.504 GB, free: 4.164 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000788/0.811, allocations: 311.1 kB / 0.5043 GB, free: 3.863 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.811, allocations: 4 kB / 0.5043 GB, free: 3.859 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002352/0.8134, allocations: 0.9014 MB / 0.5051 GB, free: 2.945 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00188/0.8153, allocations: 5.136 MB / 0.5102 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/0.8153, allocations: 12 kB / 0.5102 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002838/0.8156, allocations: 44.84 kB / 0.5102 GB, free: 13.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.8172, allocations: 231.6 kB / 0.5104 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.8185, allocations: 1.292 MB / 0.5117 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.8198, allocations: 55.88 kB / 0.5117 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.59e-05/0.8199, allocations: 48 kB / 0.5118 GB, free: 11.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.82, allocations: 8.094 kB / 0.5118 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001923/0.8219, allocations: 0.7484 MB / 0.5125 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/0.8219, allocations: 16 kB / 0.5125 GB, free: 10.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001663/0.8221, allocations: 44.75 kB / 0.5126 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.8235, allocations: 216.2 kB / 0.5128 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.8247, allocations: 1.295 MB / 0.5141 GB, free: 9.141 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.8259, allocations: 40.14 kB / 0.5141 GB, free: 9.102 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.68e-05/0.826, allocations: 48 kB / 0.5141 GB, free: 9.055 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0002814/0.8263, allocations: 160.6 kB / 0.5143 GB, free: 8.891 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.8266, allocations: 118.5 kB / 0.5144 GB, free: 8.773 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001443/0.828, allocations: 0.5122 MB / 0.5149 GB, free: 8.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.8281, allocations: 8 kB / 0.5149 GB, free: 8.242 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.8281, allocations: 4 kB / 0.5149 GB, free: 8.238 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.8281, allocations: 3.984 kB / 0.5149 GB, free: 8.234 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004051/0.8322, allocations: 1.765 MB / 0.5166 GB, free: 6.391 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.8322, allocations: 4 kB / 0.5166 GB, free: 6.387 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.8332, allocations: 115.8 kB / 0.5168 GB, free: 6.273 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001433/0.8334, allocations: 29.06 kB / 0.5168 GB, free: 6.242 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.014e-05/0.8335, allocations: 19.95 kB / 0.5168 GB, free: 6.223 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.8346, allocations: 1.276 MB / 0.5181 GB, free: 4.809 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.8346, allocations: 3.984 kB / 0.5181 GB, free: 4.805 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001932/0.8366, allocations: 0.9276 MB / 0.519 GB, free: 3.805 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005522/0.8371, allocations: 243.8 kB / 0.5192 GB, free: 3.547 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002107/0.8374, allocations: 15.98 kB / 0.5192 GB, free: 3.531 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009067/0.8383, allocations: 35.92 kB / 0.5192 GB, free: 3.496 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.8384, allocations: 36.39 kB / 0.5193 GB, free: 3.461 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.225e-05/0.8385, allocations: 24.03 kB / 0.5193 GB, free: 3.438 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001597/0.8401, allocations: 0.7099 MB / 0.52 GB, free: 2.719 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.8401, allocations: 0 / 0.52 GB, free: 2.719 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002514/0.8426, allocations: 0.5077 MB / 0.5205 GB, free: 2.211 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.2847/1.127, allocations: 2.239 MB / 0.5227 GB, free: 119.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003092/1.13, allocations: 1.153 MB / 0.5238 GB, free: 119.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/1.131, allocations: 0.9688 kB / 0.5238 GB, free: 119.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006714/1.131, allocations: 314.1 kB / 0.5241 GB, free: 119.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/1.133, allocations: 264.3 kB / 0.5244 GB, free: 119.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006612/1.14, allocations: 2.076 MB / 0.5264 GB, free: 118.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009835/1.141, allocations: 1.206 MB / 0.5276 GB, free: 117.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001747/1.143, allocations: 203.7 kB / 0.5278 GB, free: 117.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000936/1.144, allocations: 0.544 MB / 0.5283 GB, free: 117.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.113e-06/1.144, allocations: 3.25 kB / 0.5283 GB, free: 117.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08335/1.227, allocations: 28.39 MB / 0.556 GB, free: 116.1 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002256/1.227, allocations: 197.7 kB / 0.5562 GB, free: 115.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.598/4.825, allocations: 0 / 0.5562 GB, free: 115.8 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat