Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.738/1.738, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.502e-05/2.516e-05, allocations: 0 / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2514, allocations: 38.78 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1966/0.448, allocations: 102.2 MB / 366 MB, free: 3.516 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/0.4484, allocations: 87.94 kB / 366.1 MB, free: 3.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5546/1.003, allocations: 94.51 MB / 460.6 MB, free: 14.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.003, allocations: 0 / 460.6 MB, free: 14.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004152/1.003, allocations: 103.9 kB / 460.7 MB, free: 14.29 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.0126/1.016, allocations: 3.537 MB / 464.3 MB, free: 10.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/1.016, allocations: 12.03 kB / 464.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001899/1.018, allocations: 0.4899 MB / 464.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002524/1.021, allocations: 0.5106 MB / 465.3 MB, free: 9.664 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0076/1.028, allocations: 2.509 MB / 467.8 MB, free: 7.105 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003123/1.029, allocations: 263 kB / 468 MB, free: 6.848 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00139/1.03, allocations: 347.9 kB / 468.4 MB, free: 6.508 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/1.042, allocations: 4.815 MB / 473.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001503/1.042, allocations: 4 kB / 473.2 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005512/1.043, allocations: 148 kB / 473.3 MB, free: 1.391 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002144/1.043, allocations: 179 kB / 473.5 MB, free: 1.215 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0123/1.055, allocations: 3.897 MB / 477.4 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04399/1.099, allocations: 14.89 MB / 492.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008051/1.108, allocations: 4.146 MB / 496.4 MB, free: 9.641 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005024/1.113, allocations: 1.843 MB / 498.3 MB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00062/1.113, allocations: 143 kB / 498.4 MB, free: 7.637 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.645e-05/1.113, allocations: 60.55 kB / 498.5 MB, free: 7.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=201): time 4.649e-06/1.113, allocations: 0 / 498.5 MB, free: 7.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=221): time 0.2853/1.399, allocations: 8.317 MB / 0.4949 GB, free: 56.13 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.122e-05/1.399, allocations: 81.59 kB / 0.495 GB, free: 56.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004628/1.404, allocations: 2.162 MB / 0.4971 GB, free: 55.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005439/1.404, allocations: 67.48 kB / 0.4972 GB, free: 55.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/1.405, allocations: 1.465 MB / 0.4986 GB, free: 55.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009546/1.406, allocations: 0.7366 MB / 0.4993 GB, free: 55.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002205/1.407, allocations: 48.66 kB / 0.4994 GB, free: 55.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/1.407, allocations: 403 kB / 0.4998 GB, free: 55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002759/1.409, allocations: 1.235 MB / 0.501 GB, free: 54.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003064/1.413, allocations: 1.662 MB / 0.5026 GB, free: 54.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003377/1.416, allocations: 1.491 MB / 0.504 GB, free: 54.53 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.757e-05/1.416, allocations: 10.41 kB / 0.5041 GB, free: 54.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.0092/1.425, allocations: 3.742 MB / 0.5077 GB, free: 54.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/1.425, allocations: 10.72 kB / 0.5077 GB, free: 54.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.088e-05/1.425, allocations: 10.66 kB / 0.5077 GB, free: 54.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002961/1.428, allocations: 0.7435 MB / 0.5085 GB, free: 54.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004193/1.433, allocations: 0.5319 MB / 0.509 GB, free: 54.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/1.446, allocations: 8.717 MB / 0.5175 GB, free: 50.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003256/1.449, allocations: 115.9 kB / 0.5176 GB, free: 50.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003882/1.449, allocations: 89.52 kB / 0.5177 GB, free: 50.32 MB / 346.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.0006008/1.45, allocations: 235.3 kB / 0.5179 GB, free: 50.22 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007726/1.451, allocations: 279.8 kB / 0.5182 GB, free: 50.08 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008945/1.46, allocations: 3.644 MB / 0.5217 GB, free: 49.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-05/1.46, allocations: 22.56 kB / 0.5218 GB, free: 49.89 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/1.46, allocations: 7.312 kB / 0.5218 GB, free: 49.89 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.836e-05/1.46, allocations: 10.88 kB / 0.5218 GB, free: 49.89 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02024/1.48, allocations: 7.938 MB / 0.5295 GB, free: 49.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/1.48, allocations: 7.281 kB / 0.5295 GB, free: 49.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003228/1.483, allocations: 392.4 kB / 0.5299 GB, free: 49.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003551/1.487, allocations: 0.8085 MB / 0.5307 GB, free: 49.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004557/1.488, allocations: 57 kB / 0.5307 GB, free: 49.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/1.502, allocations: 10.21 MB / 0.5407 GB, free: 41.85 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/1.502, allocations: 0 / 0.5407 GB, free: 41.85 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/1.515, allocations: 5.622 MB / 0.5462 GB, free: 39.35 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002396/1.517, allocations: 0.6448 MB / 0.5468 GB, free: 38.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00083/1.518, allocations: 54.83 kB / 0.5469 GB, free: 38.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002683/1.521, allocations: 128 kB / 0.547 GB, free: 38.9 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005747/1.522, allocations: 178.6 kB / 0.5472 GB, free: 38.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002073/1.522, allocations: 61.02 kB / 0.5472 GB, free: 38.86 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00351/1.525, allocations: 1.668 MB / 0.5489 GB, free: 38.19 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.122e-06/1.525, allocations: 0 / 0.5489 GB, free: 38.19 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003751/1.529, allocations: 0.8318 MB / 0.5497 GB, free: 38.11 MB / 346.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.01336/1.542, allocations: 7.122 MB / 0.5566 GB, free: 34.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008869/1.551, allocations: 3.775 MB / 0.5603 GB, free: 32.78 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.551, allocations: 0 / 0.5603 GB, free: 32.78 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006403/1.558, allocations: 2.447 MB / 0.5627 GB, free: 31.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006143/1.564, allocations: 0.7299 MB / 0.5634 GB, free: 31.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02187/1.586, allocations: 7.433 MB / 0.5707 GB, free: 27.99 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003281/1.589, allocations: 2.785 MB / 0.5734 GB, free: 25.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00332/1.593, allocations: 1.405 MB / 0.5748 GB, free: 24.55 MB / 346.7 MB Notification: Performance of SimCode: time 1.643e-06/1.593, allocations: 0 / 0.5748 GB, free: 24.55 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.767/6.36, allocations: 154.3 MB / 0.7255 GB, free: 15.08 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat