Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.644/1.644, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.201e-05/2.214e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2515, allocations: 38.76 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1404/0.392, allocations: 83.35 MB / 341.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/0.3923, allocations: 75.95 kB / 341.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1015/0.4938, allocations: 23.54 MB / 365.3 MB, free: 2.754 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4939, allocations: 0 / 365.3 MB, free: 2.754 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.432e-05/0.494, allocations: 20 kB / 365.3 MB, free: 2.734 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002732/0.4967, allocations: 1.015 MB / 366.3 MB, free: 1.676 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.4968, allocations: 12.03 kB / 366.3 MB, free: 1.664 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008936/0.4977, allocations: 150.6 kB / 366.5 MB, free: 1.516 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002059/0.4998, allocations: 0.6796 MB / 367.2 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.537e-05/0.4999, allocations: 28 kB / 367.2 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001785/0.5001, allocations: 51.91 kB / 367.2 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00147/0.5015, allocations: 452 kB / 367.7 MB, free: 276 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2178/0.7194, allocations: 0.6524 MB / 368.3 MB, free: 83.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.997e-05/0.7195, allocations: 2.984 kB / 368.3 MB, free: 83.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.544e-05/0.7196, allocations: 1.719 kB / 368.3 MB, free: 83.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.133e-05/0.7197, allocations: 20.91 kB / 368.4 MB, free: 83.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006812/0.7265, allocations: 3.316 MB / 371.7 MB, free: 81.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.7271, allocations: 203.3 kB / 371.9 MB, free: 81.51 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.7274, allocations: 93.14 kB / 372 MB, free: 81.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.7274, allocations: 9.344 kB / 372 MB, free: 81.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.7275, allocations: 32 kB / 372 MB, free: 81.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=26): time 3.977e-06/0.7275, allocations: 2.203 kB / 372 MB, free: 81.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001953/0.7294, allocations: 0.7903 MB / 372.8 MB, free: 81.05 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.7295, allocations: 86.77 kB / 372.9 MB, free: 80.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009792/0.7305, allocations: 0.5129 MB / 373.4 MB, free: 80.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.826e-05/0.7306, allocations: 27.14 kB / 373.4 MB, free: 80.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003336/0.7309, allocations: 0.5334 MB / 374 MB, free: 80.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.731, allocations: 108.6 kB / 374.1 MB, free: 80.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.663e-05/0.7311, allocations: 0 / 374.1 MB, free: 80.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.819e-05/0.7312, allocations: 333.5 kB / 374.4 MB, free: 80.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002609/0.7314, allocations: 104.1 kB / 374.5 MB, free: 80.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003994/0.7318, allocations: 381.1 kB / 374.9 MB, free: 79.78 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003886/0.7322, allocations: 163.1 kB / 375 MB, free: 79.78 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.7323, allocations: 2.875 kB / 375 MB, free: 79.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001154/0.7334, allocations: 473.3 kB / 375.5 MB, free: 79.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.7335, allocations: 9.188 kB / 375.5 MB, free: 79.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.7335, allocations: 17.69 kB / 375.5 MB, free: 79.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002181/0.7337, allocations: 33.73 kB / 375.5 MB, free: 79.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008744/0.7346, allocations: 150.3 kB / 375.7 MB, free: 79.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009388/0.7356, allocations: 1.239 MB / 376.9 MB, free: 78.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009136/0.7365, allocations: 34.19 kB / 377 MB, free: 78.51 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.507e-05/0.7366, allocations: 30.88 kB / 377 MB, free: 78.51 MB / 314.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.0001475/0.7368, allocations: 129.1 kB / 377.1 MB, free: 78.41 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006444/0.7374, allocations: 263.1 kB / 377.4 MB, free: 78.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.7376, allocations: 68.75 kB / 377.4 MB, free: 78.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000687/0.7383, allocations: 269.4 kB / 377.7 MB, free: 78.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.7383, allocations: 4 kB / 377.7 MB, free: 78.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.7383, allocations: 0 / 377.7 MB, free: 78.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.7383, allocations: 3.609 kB / 377.7 MB, free: 78.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00186/0.7402, allocations: 0.9347 MB / 378.6 MB, free: 77.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.7402, allocations: 2.844 kB / 378.7 MB, free: 77.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005174/0.7408, allocations: 64.48 kB / 378.7 MB, free: 77.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.7409, allocations: 29.53 kB / 378.7 MB, free: 77.88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.741, allocations: 3.938 kB / 378.7 MB, free: 77.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008151/0.7418, allocations: 1.229 MB / 380 MB, free: 76.69 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.7418, allocations: 3.906 kB / 380 MB, free: 76.69 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008895/0.7427, allocations: 0.5761 MB / 380.6 MB, free: 76.33 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002911/0.743, allocations: 167.5 kB / 380.7 MB, free: 76.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.7432, allocations: 3.875 kB / 380.7 MB, free: 76.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005267/0.7437, allocations: 19.03 kB / 380.7 MB, free: 76.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/0.7438, allocations: 32.83 kB / 380.8 MB, free: 76.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.7438, allocations: 11.44 kB / 380.8 MB, free: 76.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006224/0.7445, allocations: 398.5 kB / 381.2 MB, free: 76.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7445, allocations: 0 / 381.2 MB, free: 76.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000988/0.7455, allocations: 154.3 kB / 381.3 MB, free: 76.11 MB / 314.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.001465/0.747, allocations: 1.791 MB / 383.1 MB, free: 74.74 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008819/0.7479, allocations: 391.4 kB / 383.5 MB, free: 74.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.7479, allocations: 0 / 383.5 MB, free: 74.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003635/0.7483, allocations: 212.6 kB / 383.7 MB, free: 74.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.7496, allocations: 156.5 kB / 383.9 MB, free: 74.49 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003212/0.7528, allocations: 1.178 MB / 385 MB, free: 73.92 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.7533, allocations: 0.9658 MB / 386 MB, free: 73.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005362/0.7539, allocations: 320 kB / 386.3 MB, free: 73.2 MB / 314.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7539, allocations: 0 / 386.3 MB, free: 73.2 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.89/3.644, allocations: 17.32 MB / 403.6 MB, free: 68.06 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat