Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.667/1.667, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.764e-05/3.776e-05, allocations: 4 kB / 225.1 MB, free: 2.602 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.262, allocations: 38.76 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1852/0.4473, allocations: 103.7 MB / 367.5 MB, free: 1.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000327/0.4477, allocations: 83.95 kB / 367.6 MB, free: 1.848 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6039/1.052, allocations: 82.36 MB / 450 MB, free: 25.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.052, allocations: 0 / 450 MB, free: 25.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002923/1.052, allocations: 63.94 kB / 450 MB, free: 25.04 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: 655 * Number of variables: 655 Notification: Performance of Generate backend data structure: time 0.009679/1.062, allocations: 2.609 MB / 452.6 MB, free: 22.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/1.062, allocations: 15.97 kB / 452.6 MB, free: 22.36 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001526/1.063, allocations: 358.7 kB / 453 MB, free: 22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002893/1.066, allocations: 420 kB / 453.4 MB, free: 21.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00587/1.072, allocations: 1.733 MB / 455.1 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000295/1.073, allocations: 197 kB / 455.3 MB, free: 19.6 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001148/1.074, allocations: 251.9 kB / 455.6 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01055/1.084, allocations: 3.111 MB / 458.7 MB, free: 16.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001777/1.084, allocations: 11.94 kB / 458.7 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009012/1.085, allocations: 108.3 kB / 458.8 MB, free: 15.99 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/1.086, allocations: 116.9 kB / 458.9 MB, free: 15.87 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008072/1.094, allocations: 2.419 MB / 461.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02889/1.123, allocations: 10.39 MB / 471.7 MB, free: 2.719 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003623/1.126, allocations: 1.733 MB / 473.5 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002199/1.129, allocations: 0.8544 MB / 474.3 MB, free: 12 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005616/1.129, allocations: 142 kB / 474.5 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.115e-05/1.129, allocations: 47.5 kB / 474.5 MB, free: 15.8 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 4.639e-06/1.129, allocations: 0 / 474.5 MB, free: 15.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=141): time 0.03174/1.161, allocations: 6.865 MB / 481.4 MB, free: 8.879 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/1.161, allocations: 68.72 kB / 481.4 MB, free: 8.801 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004707/1.166, allocations: 1.574 MB / 483 MB, free: 7.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003811/1.166, allocations: 45.7 kB / 483.1 MB, free: 7.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001434/1.168, allocations: 1.17 MB / 484.2 MB, free: 5.996 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009401/1.169, allocations: 485 kB / 484.7 MB, free: 5.516 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/1.169, allocations: 32 kB / 484.7 MB, free: 5.484 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002621/1.169, allocations: 382.7 kB / 485.1 MB, free: 5.102 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002481/1.172, allocations: 0.8004 MB / 485.9 MB, free: 4.301 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003121/1.175, allocations: 1.28 MB / 487.2 MB, free: 2.812 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003016/1.178, allocations: 1.012 MB / 488.2 MB, free: 1.797 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.176e-05/1.178, allocations: 4 kB / 488.2 MB, free: 1.793 MB / 330.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.009173/1.187, allocations: 2.665 MB / 490.9 MB, free: 15.11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/1.187, allocations: 15.94 kB / 490.9 MB, free: 15.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-05/1.187, allocations: 16.31 kB / 490.9 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002891/1.19, allocations: 0.5871 MB / 491.5 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00334/1.194, allocations: 407.4 kB / 491.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01381/1.208, allocations: 5.453 MB / 497.3 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003028/1.211, allocations: 131.8 kB / 497.5 MB, free: 8.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005008/1.211, allocations: 75.98 kB / 497.5 MB, free: 8.297 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005085/1.212, allocations: 212.4 kB / 497.7 MB, free: 8.082 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008023/1.213, allocations: 193.7 kB / 497.9 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008234/1.221, allocations: 2.478 MB / 0.4887 GB, free: 5.395 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.185e-05/1.221, allocations: 19.98 kB / 0.4887 GB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.221, allocations: 4 kB / 0.4887 GB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.993e-05/1.221, allocations: 7.984 kB / 0.4887 GB, free: 5.363 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2613/1.482, allocations: 5.34 MB / 0.4939 GB, free: 73.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.458e-05/1.482, allocations: 4.859 kB / 0.4939 GB, free: 73.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00241/1.485, allocations: 243.8 kB / 0.4942 GB, free: 73.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003526/1.488, allocations: 0.6543 MB / 0.4948 GB, free: 73.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003632/1.489, allocations: 38.77 kB / 0.4948 GB, free: 73.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01315/1.502, allocations: 7.13 MB / 0.5018 GB, free: 71.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/1.502, allocations: 6.656 kB / 0.5018 GB, free: 71.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009408/1.512, allocations: 3.901 MB / 0.5056 GB, free: 70.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001722/1.513, allocations: 470.3 kB / 0.5061 GB, free: 70.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007406/1.514, allocations: 29.59 kB / 0.5061 GB, free: 70.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002673/1.517, allocations: 116.3 kB / 0.5062 GB, free: 70.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006172/1.517, allocations: 119.6 kB / 0.5063 GB, free: 70.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001658/1.518, allocations: 43.86 kB / 0.5064 GB, free: 70.51 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003067/1.521, allocations: 1.205 MB / 0.5075 GB, free: 70.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.242e-06/1.521, allocations: 0 / 0.5075 GB, free: 70.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003674/1.524, allocations: 0.6232 MB / 0.5081 GB, free: 70.39 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01062/1.535, allocations: 5.548 MB / 0.5136 GB, free: 68.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006612/1.542, allocations: 2.403 MB / 0.5159 GB, free: 68.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/1.542, allocations: 3.562 kB / 0.5159 GB, free: 68.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004484/1.546, allocations: 1.533 MB / 0.5174 GB, free: 67.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00367/1.55, allocations: 409.1 kB / 0.5178 GB, free: 67.69 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01555/1.566, allocations: 4.792 MB / 0.5225 GB, free: 66.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003025/1.569, allocations: 2.045 MB / 0.5245 GB, free: 65.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002528/1.571, allocations: 1.007 MB / 0.5255 GB, free: 65.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.773e-06/1.571, allocations: 0 / 0.5255 GB, free: 65.89 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.812/5.383, allocations: 68.27 MB / 0.5921 GB, free: 21.25 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat