Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.684/1.684, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.58e-05/3.593e-05, allocations: 0 / 225.1 MB, free: 2.199 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2737, allocations: 38.77 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1542/0.428, allocations: 89.22 MB / 353.1 MB, free: 344 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.4284, allocations: 75.95 kB / 353.2 MB, free: 268 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3922/0.8206, allocations: 30.32 MB / 383.5 MB, free: 84.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.8207, allocations: 0 / 383.5 MB, free: 84.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001176/0.8208, allocations: 30.56 kB / 383.5 MB, free: 84.06 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003743/0.8245, allocations: 1.342 MB / 384.9 MB, free: 83.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.8246, allocations: 14.12 kB / 384.9 MB, free: 83.18 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003896/0.825, allocations: 163.8 kB / 385 MB, free: 83.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008849/0.8259, allocations: 198.5 kB / 385.2 MB, free: 82.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002861/0.8288, allocations: 0.8428 MB / 386.1 MB, free: 82.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003043/0.8292, allocations: 114.6 kB / 386.2 MB, free: 82.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004526/0.8297, allocations: 109.8 kB / 386.3 MB, free: 82.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002477/0.8321, allocations: 1.089 MB / 387.4 MB, free: 81.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.264e-05/0.8322, allocations: 7.75 kB / 387.4 MB, free: 81.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001428/0.8324, allocations: 47.53 kB / 387.4 MB, free: 81.69 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.505e-05/0.8324, allocations: 24.06 kB / 387.4 MB, free: 81.69 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.8343, allocations: 0.6907 MB / 388.1 MB, free: 81.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008091/0.8424, allocations: 3.92 MB / 392.1 MB, free: 79.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.8445, allocations: 0.5498 MB / 392.6 MB, free: 78.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005464/0.8451, allocations: 238.5 kB / 392.8 MB, free: 78.34 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.318e-05/0.8452, allocations: 11.89 kB / 392.9 MB, free: 78.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006283/0.8458, allocations: 269.6 kB / 393.1 MB, free: 78.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 3.326e-06/0.8459, allocations: 0 / 393.1 MB, free: 78.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.003991/0.8499, allocations: 1.521 MB / 394.6 MB, free: 76.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.85, allocations: 482.8 kB / 395.1 MB, free: 76.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.8517, allocations: 0.907 MB / 396 MB, free: 75.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.8519, allocations: 41.7 kB / 396.1 MB, free: 75.12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005355/0.8524, allocations: 0.6432 MB / 396.7 MB, free: 74.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.8526, allocations: 229.1 kB / 396.9 MB, free: 74.33 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.108e-05/0.8527, allocations: 24 kB / 396.9 MB, free: 74.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.545e-05/0.8528, allocations: 343.7 kB / 397.3 MB, free: 73.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005985/0.8534, allocations: 214.6 kB / 397.5 MB, free: 73.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000839/0.8543, allocations: 0.6771 MB / 398.2 MB, free: 72.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000767/0.855, allocations: 382.9 kB / 398.5 MB, free: 72.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.8551, allocations: 3.953 kB / 398.5 MB, free: 72.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002794/0.8579, allocations: 1.132 MB / 399.7 MB, free: 71.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.427e-05/0.858, allocations: 63.41 kB / 399.7 MB, free: 71.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.858, allocations: 12 kB / 399.8 MB, free: 71.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.859, allocations: 191.2 kB / 399.9 MB, free: 71.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.8603, allocations: 215.6 kB / 400.1 MB, free: 70.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005118/0.8655, allocations: 3.546 MB / 403.7 MB, free: 67.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.8671, allocations: 75.97 kB / 403.8 MB, free: 67.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.8672, allocations: 47.98 kB / 403.8 MB, free: 67.04 MB / 314.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: 2 {(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002378/0.8675, allocations: 186.4 kB / 404 MB, free: 66.85 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001884/0.8677, allocations: 126.4 kB / 404.1 MB, free: 66.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002013/0.8697, allocations: 0.6879 MB / 404.8 MB, free: 66.01 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.8697, allocations: 4 kB / 404.8 MB, free: 66.01 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.8697, allocations: 4 kB / 404.8 MB, free: 66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00151/0.8713, allocations: 0.9294 MB / 405.7 MB, free: 64.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003846/0.8751, allocations: 1.757 MB / 407.5 MB, free: 63.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.8752, allocations: 0 / 407.5 MB, free: 63.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009146/0.8761, allocations: 116.1 kB / 407.6 MB, free: 63.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006574/0.8768, allocations: 129.6 kB / 407.7 MB, free: 62.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.19e-05/0.8769, allocations: 23.98 kB / 407.8 MB, free: 62.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003614/0.8805, allocations: 3.275 MB / 411 MB, free: 59.33 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.8805, allocations: 0 / 411 MB, free: 59.33 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/0.883, allocations: 1.106 MB / 412.1 MB, free: 58.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006195/0.8836, allocations: 251.5 kB / 412.4 MB, free: 57.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/0.8839, allocations: 16 kB / 412.4 MB, free: 57.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009892/0.8849, allocations: 51.92 kB / 412.5 MB, free: 57.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.8851, allocations: 60.41 kB / 412.5 MB, free: 57.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.124e-05/0.8851, allocations: 20 kB / 412.5 MB, free: 57.73 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001282/0.8864, allocations: 0.6865 MB / 413.2 MB, free: 57.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8864, allocations: 0 / 413.2 MB, free: 57.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001676/0.8881, allocations: 355.9 kB / 413.6 MB, free: 56.69 MB / 314.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.003139/0.8913, allocations: 2.373 MB / 415.9 MB, free: 54.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002669/0.894, allocations: 1.042 MB / 417 MB, free: 53.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.894, allocations: 4 kB / 417 MB, free: 53.17 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.8951, allocations: 0.5157 MB / 417.5 MB, free: 52.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002131/0.8973, allocations: 297.2 kB / 417.8 MB, free: 52.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.9026, allocations: 1.835 MB / 419.6 MB, free: 50.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005768/0.9033, allocations: 1.101 MB / 420.7 MB, free: 49.31 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0009342/0.9042, allocations: 141.8 kB / 420.9 MB, free: 49.17 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007075/0.9049, allocations: 463.3 kB / 421.3 MB, free: 48.72 MB / 314.7 MB Notification: Performance of SimCode: time 1.263e-06/0.9049, allocations: 0 / 421.3 MB, free: 48.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07379/0.9787, allocations: 29.44 MB / 450.8 MB, free: 19.3 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002533/0.9791, allocations: 198.3 kB / 451 MB, free: 19.08 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.863/4.842, allocations: 3.938 kB / 451 MB, free: 19.07 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_Cooling_res.mat does not exist to compare? outputFormat=mat