Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.621/1.621, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.005e-05/3.009e-05, allocations: 0 / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2536, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1512/0.4048, allocations: 83.47 MB / 347.3 MB, free: 6.27 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003731/0.4052, allocations: 83.95 kB / 347.4 MB, free: 6.188 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3607/0.7659, allocations: 23.02 MB / 370.4 MB, free: 82.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.566e-05/0.766, allocations: 0 / 370.4 MB, free: 82.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.201e-05/0.7661, allocations: 16.91 kB / 370.4 MB, free: 82.84 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002493/0.7686, allocations: 0.9789 MB / 371.4 MB, free: 82.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.7687, allocations: 9.031 kB / 371.4 MB, free: 82.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002764/0.769, allocations: 127.7 kB / 371.5 MB, free: 82.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008467/0.7698, allocations: 149.2 kB / 371.7 MB, free: 82.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/0.7719, allocations: 0.6807 MB / 372.4 MB, free: 81.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.096e-05/0.772, allocations: 57.91 kB / 372.4 MB, free: 81.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.7722, allocations: 86.53 kB / 372.5 MB, free: 81.92 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.7739, allocations: 0.7409 MB / 373.2 MB, free: 81.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.17e-05/0.7739, allocations: 2.688 kB / 373.2 MB, free: 81.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.774, allocations: 33 kB / 373.3 MB, free: 81.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.7741, allocations: 19.59 kB / 373.3 MB, free: 81.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.7753, allocations: 480.3 kB / 373.8 MB, free: 81.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006969/0.7823, allocations: 3.458 MB / 377.2 MB, free: 80.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005324/0.7828, allocations: 212.6 kB / 377.4 MB, free: 80.1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.7831, allocations: 92.11 kB / 377.5 MB, free: 80.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.372e-05/0.7831, allocations: 3.844 kB / 377.5 MB, free: 80.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.7832, allocations: 38.94 kB / 377.6 MB, free: 80.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 2.835e-06/0.7832, allocations: 4 kB / 377.6 MB, free: 80.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=28): time 0.001858/0.785, allocations: 0.8066 MB / 378.4 MB, free: 79.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/0.7851, allocations: 81.31 kB / 378.4 MB, free: 79.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.7862, allocations: 0.6126 MB / 379.1 MB, free: 79.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.7863, allocations: 35.33 kB / 379.1 MB, free: 79.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002954/0.7866, allocations: 0.5098 MB / 379.6 MB, free: 79.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.928e-05/0.7867, allocations: 109.3 kB / 379.7 MB, free: 78.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.7868, allocations: 14 kB / 379.7 MB, free: 78.97 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.377e-05/0.7868, allocations: 331.1 kB / 380.1 MB, free: 78.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000269/0.7871, allocations: 106.8 kB / 380.2 MB, free: 78.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003998/0.7875, allocations: 406 kB / 380.6 MB, free: 78.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003879/0.7879, allocations: 179.2 kB / 380.7 MB, free: 78.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.788, allocations: 3.719 kB / 380.7 MB, free: 78.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001122/0.7891, allocations: 0.5274 MB / 381.3 MB, free: 78.22 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.7891, allocations: 12.84 kB / 381.3 MB, free: 78.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.7892, allocations: 6.938 kB / 381.3 MB, free: 78.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002004/0.7894, allocations: 43.67 kB / 381.3 MB, free: 78.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008567/0.7902, allocations: 140.4 kB / 381.5 MB, free: 78.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009441/0.7912, allocations: 1.285 MB / 382.7 MB, free: 76.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009098/0.7921, allocations: 44.34 kB / 382.8 MB, free: 76.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/0.7922, allocations: 29.69 kB / 382.8 MB, free: 76.95 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 (74): * Single equations (assignments): 73 * 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.0001406/0.7923, allocations: 150.4 kB / 383 MB, free: 76.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.7925, allocations: 69.41 kB / 383 MB, free: 76.79 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007089/0.7932, allocations: 292.7 kB / 383.3 MB, free: 76.72 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.7932, allocations: 3.906 kB / 383.3 MB, free: 76.72 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.7932, allocations: 0 / 383.3 MB, free: 76.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.7933, allocations: 3.562 kB / 383.3 MB, free: 76.72 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00197/0.7952, allocations: 1.051 MB / 384.4 MB, free: 76.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.7953, allocations: 3.781 kB / 384.4 MB, free: 76.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005245/0.7958, allocations: 65.62 kB / 384.4 MB, free: 76.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001317/0.796, allocations: 26.28 kB / 384.5 MB, free: 76.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.796, allocations: 7.938 kB / 384.5 MB, free: 76.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008436/0.7969, allocations: 1.268 MB / 385.7 MB, free: 74.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.7969, allocations: 3.844 kB / 385.7 MB, free: 74.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009269/0.7978, allocations: 0.5961 MB / 386.3 MB, free: 74.42 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/0.7982, allocations: 171 kB / 386.5 MB, free: 74.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.7984, allocations: 11.81 kB / 386.5 MB, free: 74.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005704/0.7989, allocations: 23.61 kB / 386.5 MB, free: 74.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.112e-05/0.799, allocations: 31.42 kB / 386.6 MB, free: 74.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.7991, allocations: 7.875 kB / 386.6 MB, free: 74.24 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008108/0.7999, allocations: 477.7 kB / 387 MB, free: 74.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.7999, allocations: 0 / 387 MB, free: 74.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001068/0.801, allocations: 192.7 kB / 387.2 MB, free: 74 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 (27): * Single equations (assignments): 26 * 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.001612/0.8026, allocations: 1.781 MB / 389 MB, free: 72.51 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009847/0.8036, allocations: 417 kB / 389.4 MB, free: 72.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.8037, allocations: 0 / 389.4 MB, free: 72.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003927/0.8041, allocations: 221.9 kB / 389.6 MB, free: 72.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.8055, allocations: 170.4 kB / 389.8 MB, free: 72.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003223/0.8088, allocations: 1.192 MB / 391 MB, free: 71.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000488/0.8093, allocations: 0.9598 MB / 392 MB, free: 70.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005024/0.8098, allocations: 306.9 kB / 392.3 MB, free: 70.46 MB / 314.7 MB Notification: Performance of SimCode: time 1.233e-06/0.8098, allocations: 0 / 392.3 MB, free: 70.46 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.863/3.673, allocations: 17.48 MB / 409.7 MB, free: 60.28 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_Start_res.mat does not exist to compare? outputFormat=mat