Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.009/2.009, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.991e-05/4.003e-05, allocations: 4 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1004, allocations: 44.5 MB / 300 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.453/0.5535, allocations: 93.11 MB / 393.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.5538, allocations: 76.14 kB / 393.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1126/0.6664, allocations: 28.1 MB / 421.2 MB, free: 3.543 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6665, allocations: 3.938 kB / 421.2 MB, free: 3.539 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001026/0.6666, allocations: 19.41 kB / 421.3 MB, free: 3.539 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003385/0.67, allocations: 1.115 MB / 422.4 MB, free: 2.766 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.6701, allocations: 9.594 kB / 422.4 MB, free: 2.766 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004276/0.6705, allocations: 147.7 kB / 422.5 MB, free: 2.703 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/0.6716, allocations: 182.1 kB / 422.7 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002532/0.6742, allocations: 0.7941 MB / 423.5 MB, free: 2.188 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.665e-05/0.6743, allocations: 76.83 kB / 423.6 MB, free: 2.184 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002768/0.6746, allocations: 106.5 kB / 423.7 MB, free: 2.176 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/0.6769, allocations: 0.8775 MB / 424.6 MB, free: 1.969 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-05/0.677, allocations: 11.17 kB / 424.6 MB, free: 1.965 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001296/0.6772, allocations: 43.28 kB / 424.6 MB, free: 1.961 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.6772, allocations: 23.25 kB / 424.6 MB, free: 1.961 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.6791, allocations: 0.5766 MB / 425.2 MB, free: 1.941 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008751/0.6879, allocations: 3.904 MB / 429.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000973/0.6889, allocations: 441 kB / 429.6 MB, free: 15.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007409/0.6897, allocations: 247.7 kB / 429.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.378e-05/0.6897, allocations: 7.812 kB / 429.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.6898, allocations: 34.25 kB / 429.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 2.915e-06/0.6898, allocations: 0 / 429.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.003259/0.6931, allocations: 1.196 MB / 431 MB, free: 14.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.6932, allocations: 81.42 kB / 431.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.6945, allocations: 0.683 MB / 431.8 MB, free: 14.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.07e-05/0.6946, allocations: 39.58 kB / 431.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000454/0.6951, allocations: 0.5661 MB / 432.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001865/0.6953, allocations: 165.2 kB / 432.6 MB, free: 13.94 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/0.6953, allocations: 17.38 kB / 432.6 MB, free: 13.94 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.6955, allocations: 336.6 kB / 432.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/0.6959, allocations: 153.3 kB / 433.1 MB, free: 13.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006277/0.6966, allocations: 439.7 kB / 433.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005367/0.6971, allocations: 232.3 kB / 433.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.6971, allocations: 3.781 kB / 433.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001639/0.6988, allocations: 0.6766 MB / 434.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.6988, allocations: 11.17 kB / 434.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.6988, allocations: 10.5 kB / 434.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004519/0.6993, allocations: 97.64 kB / 434.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009474/0.7003, allocations: 160.2 kB / 434.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003364/0.7036, allocations: 2.983 MB / 437.6 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.7048, allocations: 35.94 kB / 437.7 MB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.928e-05/0.7049, allocations: 39.11 kB / 437.7 MB, free: 10.21 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002187/0.7051, allocations: 157.7 kB / 437.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/0.7053, allocations: 90.92 kB / 438 MB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.7067, allocations: 498.7 kB / 438.5 MB, free: 9.633 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.7068, allocations: 4 kB / 438.5 MB, free: 9.629 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.7068, allocations: 3.984 kB / 438.5 MB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.7068, allocations: 0 / 438.5 MB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003448/0.7103, allocations: 1.417 MB / 439.9 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.762e-06/0.7103, allocations: 4.031 kB / 439.9 MB, free: 8.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006413/0.711, allocations: 83.45 kB / 440 MB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003938/0.7114, allocations: 80.11 kB / 440 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.917e-05/0.7114, allocations: 15.25 kB / 440.1 MB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003312/0.7148, allocations: 2.969 MB / 443 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/0.7148, allocations: 8.016 kB / 443 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001876/0.7167, allocations: 0.8461 MB / 443.9 MB, free: 4.625 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004419/0.7171, allocations: 199.7 kB / 444.1 MB, free: 4.441 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000157/0.7173, allocations: 10.25 kB / 444.1 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000759/0.7181, allocations: 29.67 kB / 444.1 MB, free: 4.414 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.7182, allocations: 34.64 kB / 444.1 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-05/0.7183, allocations: 19.17 kB / 444.2 MB, free: 4.371 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001123/0.7194, allocations: 0.5192 MB / 444.7 MB, free: 3.996 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7194, allocations: 3.938 kB / 444.7 MB, free: 3.992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001377/0.7208, allocations: 249.8 kB / 444.9 MB, free: 3.773 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002832/0.7236, allocations: 2.088 MB / 447 MB, free: 1.832 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.7253, allocations: 0.638 MB / 447.7 MB, free: 1.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.7253, allocations: 0 / 447.7 MB, free: 1.293 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009467/0.7262, allocations: 425.7 kB / 448.1 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.728, allocations: 211.5 kB / 448.3 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004531/0.7326, allocations: 1.458 MB / 449.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000868/0.7335, allocations: 1.028 MB / 450.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007687/0.7343, allocations: 379.3 kB / 451.1 MB, free: 13.7 MB / 346.7 MB Notification: Performance of SimCode: time 2.875e-06/0.7343, allocations: 8 kB / 451.1 MB, free: 13.69 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.191/3.925, allocations: 25.31 MB / 476.5 MB, free: 4.383 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat