Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.652/1.652, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.451e-05/2.458e-05, allocations: 8 kB / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2564, allocations: 38.76 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1978/0.4543, allocations: 101.5 MB / 359.8 MB, free: 8.316 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.4547, allocations: 83.95 kB / 359.9 MB, free: 8.234 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5453/1, allocations: 93.14 MB / 453 MB, free: 23.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.053e-06/1, allocations: 0 / 453 MB, free: 23.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000367/1, allocations: 95.88 kB / 453.1 MB, free: 23.37 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: 929 * Number of variables: 929 Notification: Performance of Generate backend data structure: time 0.01231/1.013, allocations: 3.537 MB / 456.6 MB, free: 19.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/1.013, allocations: 11.97 kB / 456.6 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002977/1.016, allocations: 0.5024 MB / 457.1 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00732/1.023, allocations: 2.509 MB / 459.6 MB, free: 16.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001948/1.023, allocations: 116 kB / 459.8 MB, free: 16.58 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001177/1.025, allocations: 212.2 kB / 460 MB, free: 16.38 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01027/1.035, allocations: 3.681 MB / 463.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/1.047, allocations: 4.298 MB / 467.9 MB, free: 8.242 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001292/1.047, allocations: 7.938 kB / 468 MB, free: 8.234 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005085/1.048, allocations: 7.984 kB / 468 MB, free: 8.227 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/1.048, allocations: 171 kB / 468.1 MB, free: 8.059 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03629/1.085, allocations: 14.16 MB / 482.3 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006868/1.091, allocations: 4.069 MB / 486.4 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004394/1.096, allocations: 1.76 MB / 488.1 MB, free: 3.457 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005363/1.096, allocations: 147 kB / 488.3 MB, free: 3.293 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.949e-05/1.097, allocations: 56.56 kB / 488.3 MB, free: 3.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=201): time 4.598e-06/1.097, allocations: 0 / 488.3 MB, free: 3.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=221): time 0.2565/1.353, allocations: 7.197 MB / 495.5 MB, free: 47.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/1.353, allocations: 73.91 kB / 495.6 MB, free: 47.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004251/1.357, allocations: 1.724 MB / 497.3 MB, free: 46.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00051/1.358, allocations: 31.27 kB / 497.3 MB, free: 46.89 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/1.359, allocations: 1.513 MB / 498.9 MB, free: 46.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001029/1.36, allocations: 0.707 MB / 499.6 MB, free: 45.93 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/1.36, allocations: 0 / 499.6 MB, free: 45.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001767/1.361, allocations: 401.8 kB / 500 MB, free: 45.62 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002523/1.363, allocations: 1.191 MB / 0.4894 GB, free: 45.61 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002948/1.366, allocations: 1.607 MB / 0.491 GB, free: 45.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003124/1.369, allocations: 1.437 MB / 0.4924 GB, free: 45.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.072e-05/1.369, allocations: 3.906 kB / 0.4924 GB, free: 45.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.01311/1.383, allocations: 3.522 MB / 0.4958 GB, free: 44.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.42e-05/1.383, allocations: 7.906 kB / 0.4958 GB, free: 44.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.44e-05/1.383, allocations: 13.91 kB / 0.4958 GB, free: 44.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004743/1.387, allocations: 0.748 MB / 0.4966 GB, free: 44.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006432/1.394, allocations: 0.5302 MB / 0.4971 GB, free: 44.94 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01969/1.414, allocations: 8.345 MB / 0.5052 GB, free: 41.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00453/1.418, allocations: 76.83 kB / 0.5053 GB, free: 41.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006316/1.419, allocations: 86.16 kB / 0.5054 GB, free: 41.12 MB / 330.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: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000816/1.42, allocations: 159.7 kB / 0.5055 GB, free: 41.01 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01292/1.433, allocations: 3.216 MB / 0.5087 GB, free: 40.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.434, allocations: 244.8 kB / 0.5089 GB, free: 40.63 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/1.446, allocations: 3.416 MB / 0.5123 GB, free: 40.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.201e-05/1.446, allocations: 23.06 kB / 0.5123 GB, free: 40.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.892e-05/1.446, allocations: 9.469 kB / 0.5123 GB, free: 40.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.184e-05/1.446, allocations: 13.69 kB / 0.5123 GB, free: 40.45 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01973/1.465, allocations: 7.269 MB / 0.5194 GB, free: 39.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/1.466, allocations: 3.594 kB / 0.5194 GB, free: 39.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003343/1.469, allocations: 394.5 kB / 0.5198 GB, free: 39.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003601/1.473, allocations: 0.7979 MB / 0.5206 GB, free: 39.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004652/1.473, allocations: 29.17 kB / 0.5206 GB, free: 39.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01401/1.487, allocations: 9.799 MB / 0.5302 GB, free: 32.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.029e-05/1.487, allocations: 10.98 kB / 0.5302 GB, free: 32.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/1.499, allocations: 5.4 MB / 0.5354 GB, free: 29.64 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002225/1.501, allocations: 0.6018 MB / 0.536 GB, free: 29.28 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009936/1.502, allocations: 18.86 kB / 0.536 GB, free: 29.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002787/1.505, allocations: 90.05 kB / 0.5361 GB, free: 29.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007778/1.506, allocations: 181.4 kB / 0.5363 GB, free: 29.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/1.506, allocations: 65.02 kB / 0.5364 GB, free: 29.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002799/1.509, allocations: 1.299 MB / 0.5376 GB, free: 28.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.509, allocations: 0 / 0.5376 GB, free: 28.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004257/1.513, allocations: 0.7233 MB / 0.5383 GB, free: 28.67 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01298/1.526, allocations: 6.896 MB / 0.5451 GB, free: 25.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.008131/1.534, allocations: 3.636 MB / 0.5486 GB, free: 23.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.534, allocations: 0 / 0.5486 GB, free: 23.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005486/1.54, allocations: 2.339 MB / 0.5509 GB, free: 22.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004577/1.544, allocations: 0.5251 MB / 0.5514 GB, free: 22.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01967/1.564, allocations: 7.165 MB / 0.5584 GB, free: 16.9 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00479/1.569, allocations: 2.788 MB / 0.5611 GB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0036/1.573, allocations: 1.365 MB / 0.5625 GB, free: 13.49 MB / 330.7 MB Notification: Performance of SimCode: time 1.844e-06/1.573, allocations: 0 / 0.5625 GB, free: 13.49 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.44/6.012, allocations: 150.4 MB / 0.7093 GB, free: 26.54 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat