Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.093/2.093, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.898e-05/3.889e-05, allocations: 4 kB / 292.8 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 50.41 MB / 343.2 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4762/0.5841, allocations: 99.99 MB / 443.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003017/0.5845, allocations: 81.83 kB / 443.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1292/0.7137, allocations: 30.64 MB / 473.9 MB, free: 15.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7137, allocations: 0 / 473.9 MB, free: 15.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001072/0.7138, allocations: 35.94 kB / 473.9 MB, free: 15.69 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003604/0.7175, allocations: 1.364 MB / 475.3 MB, free: 14.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.7175, allocations: 8.031 kB / 475.3 MB, free: 14.26 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003508/0.7179, allocations: 164.8 kB / 475.4 MB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009225/0.7188, allocations: 198.1 kB / 475.6 MB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002422/0.7213, allocations: 0.8438 MB / 476.5 MB, free: 13 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.7215, allocations: 115.8 kB / 476.6 MB, free: 12.88 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002464/0.7217, allocations: 111.9 kB / 476.7 MB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002691/0.7244, allocations: 1.076 MB / 477.8 MB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.836e-05/0.7245, allocations: 4 kB / 477.8 MB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001545/0.7247, allocations: 44 kB / 477.8 MB, free: 11.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.72e-05/0.7247, allocations: 28 kB / 477.8 MB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002069/0.7268, allocations: 0.6795 MB / 478.5 MB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009456/0.7363, allocations: 3.946 MB / 482.5 MB, free: 6.711 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002287/0.7386, allocations: 0.5375 MB / 483 MB, free: 6.156 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007145/0.7394, allocations: 235.9 kB / 483.2 MB, free: 5.926 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-05/0.7395, allocations: 20.53 kB / 483.3 MB, free: 5.906 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007001/0.7402, allocations: 262 kB / 483.5 MB, free: 5.641 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 3.145e-06/0.7402, allocations: 0 / 483.5 MB, free: 5.641 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.004289/0.7445, allocations: 1.497 MB / 485 MB, free: 4.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002431/0.7448, allocations: 475.2 kB / 485.5 MB, free: 3.512 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/0.7468, allocations: 0.9249 MB / 486.4 MB, free: 2.574 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.7469, allocations: 37.7 kB / 486.4 MB, free: 2.531 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007143/0.7476, allocations: 0.6428 MB / 487.1 MB, free: 1.879 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002771/0.7479, allocations: 248.6 kB / 487.3 MB, free: 1.633 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.6e-05/0.748, allocations: 20 kB / 487.3 MB, free: 1.613 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.7482, allocations: 349.9 kB / 487.7 MB, free: 1.266 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006422/0.7488, allocations: 218.6 kB / 487.9 MB, free: 1.055 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.7499, allocations: 0.6717 MB / 488.6 MB, free: 176 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009001/0.7508, allocations: 383.4 kB / 488.9 MB, free: 15.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.7508, allocations: 7.938 kB / 489 MB, free: 15.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002783/0.7536, allocations: 1.055 MB / 490 MB, free: 14.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.484e-05/0.7537, allocations: 67.44 kB / 490.1 MB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.223e-05/0.7537, allocations: 12 kB / 490.1 MB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008453/0.7546, allocations: 165.6 kB / 490.3 MB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.756, allocations: 215.6 kB / 490.5 MB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005649/0.7616, allocations: 3.526 MB / 494 MB, free: 10.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.7633, allocations: 80.03 kB / 494.1 MB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.7635, allocations: 44 kB / 494.1 MB, free: 10.32 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002864/0.7638, allocations: 180.8 kB / 494.3 MB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002411/0.764, allocations: 126.5 kB / 494.4 MB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.7661, allocations: 0.657 MB / 495.1 MB, free: 9.332 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.7662, allocations: 8 kB / 495.1 MB, free: 9.324 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.7662, allocations: 4 kB / 495.1 MB, free: 9.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001534/0.7677, allocations: 0.8905 MB / 496 MB, free: 8.316 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/0.7721, allocations: 1.739 MB / 497.7 MB, free: 6.496 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.7722, allocations: 4 kB / 497.7 MB, free: 6.492 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009978/0.7732, allocations: 116.1 kB / 497.8 MB, free: 6.379 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006943/0.7739, allocations: 125.6 kB / 497.9 MB, free: 6.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.224e-05/0.774, allocations: 15.98 kB / 498 MB, free: 6.234 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004543/0.7785, allocations: 3.26 MB / 0.4895 GB, free: 2.707 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.7786, allocations: 0 / 0.4895 GB, free: 2.707 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002636/0.7812, allocations: 1.095 MB / 0.4905 GB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006898/0.782, allocations: 259.5 kB / 0.4908 GB, free: 1.262 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002365/0.7822, allocations: 16 kB / 0.4908 GB, free: 1.246 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.7833, allocations: 39.97 kB / 0.4908 GB, free: 1.207 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.7835, allocations: 64.44 kB / 0.4909 GB, free: 1.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.914e-05/0.7836, allocations: 24.11 kB / 0.4909 GB, free: 1.121 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001521/0.7851, allocations: 0.6991 MB / 0.4916 GB, free: 424 kB / 410.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7851, allocations: 0 / 0.4916 GB, free: 424 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.00185/0.787, allocations: 348 kB / 0.4919 GB, free: 76 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * 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 (53): * Single equations (assignments): 49 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.003678/0.7907, allocations: 2.379 MB / 0.4943 GB, free: 13.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002695/0.7934, allocations: 1.002 MB / 0.4952 GB, free: 12.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.7934, allocations: 0 / 0.4952 GB, free: 12.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.7947, allocations: 0.4912 MB / 0.4957 GB, free: 12.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/0.7972, allocations: 312.4 kB / 0.496 GB, free: 11.76 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00587/0.8031, allocations: 1.807 MB / 0.4978 GB, free: 9.883 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008903/0.804, allocations: 1.113 MB / 0.4989 GB, free: 8.742 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009936/0.8051, allocations: 145.8 kB / 0.499 GB, free: 8.598 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008979/0.806, allocations: 467.3 kB / 0.4995 GB, free: 8.141 MB / 426.7 MB Notification: Performance of SimCode: time 2.915e-06/0.806, allocations: 3.938 kB / 0.4995 GB, free: 8.137 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.375/1.181, allocations: 29.82 MB / 0.5286 GB, free: 128.4 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002901/1.181, allocations: 192.9 kB / 0.5288 GB, free: 128.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.711/4.892, allocations: 2.688 kB / 0.5288 GB, free: 128.2 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat