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.705/1.705, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.15e-05/2.165e-05, allocations: 0 / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2571, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1729/0.4301, allocations: 101.5 MB / 359.8 MB, free: 8.332 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.4304, allocations: 87.94 kB / 359.9 MB, free: 8.246 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5615/0.992, allocations: 93.3 MB / 453.2 MB, free: 23.44 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.992, allocations: 0 / 453.2 MB, free: 23.44 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004125/0.9924, allocations: 95.81 kB / 453.3 MB, free: 23.34 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.01291/1.005, allocations: 3.538 MB / 456.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/1.005, allocations: 15.91 kB / 456.9 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002989/1.008, allocations: 0.5063 MB / 457.4 MB, free: 19.22 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007942/1.016, allocations: 2.497 MB / 459.9 MB, free: 16.67 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002246/1.017, allocations: 116 kB / 460 MB, free: 16.56 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001423/1.018, allocations: 212.2 kB / 460.2 MB, free: 16.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01079/1.029, allocations: 3.677 MB / 463.9 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/1.042, allocations: 4.302 MB / 468.2 MB, free: 8.219 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001657/1.043, allocations: 7.938 kB / 468.2 MB, free: 8.211 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008043/1.043, allocations: 8 kB / 468.2 MB, free: 8.203 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002196/1.044, allocations: 171 kB / 468.4 MB, free: 8.035 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03854/1.082, allocations: 14.17 MB / 482.5 MB, free: 9.555 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007096/1.089, allocations: 4.075 MB / 486.6 MB, free: 5.18 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00463/1.094, allocations: 1.76 MB / 488.4 MB, free: 3.422 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005958/1.095, allocations: 147 kB / 488.5 MB, free: 3.258 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.877e-05/1.095, allocations: 56.55 kB / 488.6 MB, free: 3.195 MB / 330.7 MB Notification: Performance of pre-optimization done (n=201): time 5.049e-06/1.095, allocations: 0 / 488.6 MB, free: 3.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=221): time 0.2594/1.354, allocations: 7.196 MB / 495.8 MB, free: 47.88 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/1.354, allocations: 74 kB / 495.8 MB, free: 47.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004097/1.358, allocations: 1.718 MB / 497.6 MB, free: 47.61 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005168/1.359, allocations: 29.64 kB / 497.6 MB, free: 47.58 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/1.36, allocations: 1.514 MB / 499.1 MB, free: 47 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001008/1.361, allocations: 0.7099 MB / 499.8 MB, free: 46.62 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002086/1.361, allocations: 0 / 499.8 MB, free: 46.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/1.361, allocations: 404.4 kB / 0.4885 GB, free: 46.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002424/1.364, allocations: 1.19 MB / 0.4896 GB, free: 46.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002734/1.367, allocations: 1.608 MB / 0.4912 GB, free: 45.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003004/1.37, allocations: 1.435 MB / 0.4926 GB, free: 45.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.578e-05/1.37, allocations: 3.375 kB / 0.4926 GB, free: 45.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.008367/1.378, allocations: 3.528 MB / 0.4961 GB, free: 45.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/1.378, allocations: 11.34 kB / 0.4961 GB, free: 45.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.822e-05/1.378, allocations: 11.06 kB / 0.4961 GB, free: 45.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/1.381, allocations: 0.7451 MB / 0.4968 GB, free: 45.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004114/1.385, allocations: 0.5265 MB / 0.4973 GB, free: 45.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/1.398, allocations: 8.349 MB / 0.5055 GB, free: 41.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003027/1.401, allocations: 69.98 kB / 0.5055 GB, free: 41.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003206/1.401, allocations: 87.64 kB / 0.5056 GB, free: 41.8 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.0005729/1.402, allocations: 164 kB / 0.5058 GB, free: 41.7 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007838/1.409, allocations: 3.21 MB / 0.5089 GB, free: 41.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/1.411, allocations: 241.5 kB / 0.5092 GB, free: 41.31 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008751/1.419, allocations: 3.42 MB / 0.5125 GB, free: 41.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.787e-05/1.419, allocations: 22.25 kB / 0.5125 GB, free: 41.14 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.434e-05/1.42, allocations: 7.375 kB / 0.5125 GB, free: 41.14 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.777e-05/1.42, allocations: 10.97 kB / 0.5125 GB, free: 41.14 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01982/1.439, allocations: 7.272 MB / 0.5196 GB, free: 40.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/1.439, allocations: 3.219 kB / 0.5196 GB, free: 40.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00381/1.443, allocations: 399.6 kB / 0.52 GB, free: 40.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004564/1.448, allocations: 0.7967 MB / 0.5208 GB, free: 39.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004623/1.448, allocations: 26.22 kB / 0.5208 GB, free: 39.97 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0203/1.469, allocations: 9.802 MB / 0.5304 GB, free: 32.89 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.296e-05/1.469, allocations: 9.078 kB / 0.5304 GB, free: 32.89 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01643/1.485, allocations: 5.402 MB / 0.5357 GB, free: 30.46 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002995/1.488, allocations: 0.6012 MB / 0.5363 GB, free: 30.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001014/1.489, allocations: 22.58 kB / 0.5363 GB, free: 30.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003307/1.493, allocations: 89.72 kB / 0.5364 GB, free: 30.1 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008405/1.493, allocations: 176.8 kB / 0.5365 GB, free: 30.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003165/1.494, allocations: 66.98 kB / 0.5366 GB, free: 30.06 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003766/1.498, allocations: 1.297 MB / 0.5379 GB, free: 29.51 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.825e-06/1.498, allocations: 2.156 kB / 0.5379 GB, free: 29.51 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.005849/1.504, allocations: 0.7242 MB / 0.5386 GB, free: 29.5 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.01547/1.519, allocations: 6.89 MB / 0.5453 GB, free: 25.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.008105/1.527, allocations: 3.633 MB / 0.5489 GB, free: 24.3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.527, allocations: 0 / 0.5489 GB, free: 24.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005289/1.533, allocations: 2.346 MB / 0.5511 GB, free: 23.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004756/1.537, allocations: 0.5189 MB / 0.5517 GB, free: 23.03 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02023/1.558, allocations: 7.175 MB / 0.5587 GB, free: 17.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003337/1.561, allocations: 2.783 MB / 0.5614 GB, free: 15.58 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003203/1.564, allocations: 1.366 MB / 0.5627 GB, free: 14.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/1.564, allocations: 0 / 0.5627 GB, free: 14.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.464/6.029, allocations: 150.4 MB / 0.7095 GB, free: 28.46 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