Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.989/1.989, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.367e-05/3.373e-05, allocations: 4 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.493/0.5985, allocations: 119.6 MB / 462.3 MB, free: 6.746 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003321/0.5989, allocations: 95.56 kB / 462.3 MB, free: 6.695 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.817/1.416, allocations: 133.5 MB / 0.5819 GB, free: 93.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.416, allocations: 0 / 0.5819 GB, free: 93.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006906/1.417, allocations: 126.9 kB / 0.582 GB, free: 93.2 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.0251/1.442, allocations: 4.786 MB / 0.5867 GB, free: 91.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.28e-05/1.442, allocations: 15.06 kB / 0.5867 GB, free: 91.38 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002843/1.445, allocations: 0.671 MB / 0.5874 GB, free: 91.24 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007722/1.453, allocations: 0.9733 MB / 0.5883 GB, free: 90.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01554/1.468, allocations: 4.479 MB / 0.5927 GB, free: 88.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004782/1.469, allocations: 366.4 kB / 0.593 GB, free: 88.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002021/1.471, allocations: 487.5 kB / 0.5935 GB, free: 88.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0202/1.491, allocations: 6.539 MB / 0.5999 GB, free: 85.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001996/1.491, allocations: 3.438 kB / 0.5999 GB, free: 85.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001421/1.493, allocations: 207.1 kB / 0.6001 GB, free: 85.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002845/1.493, allocations: 238.2 kB / 0.6003 GB, free: 85.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01645/1.509, allocations: 5.345 MB / 0.6055 GB, free: 82.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05182/1.561, allocations: 20.98 MB / 0.626 GB, free: 63.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01292/1.574, allocations: 9.805 MB / 0.6356 GB, free: 52.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005767/1.58, allocations: 2.414 MB / 0.638 GB, free: 49.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0174/1.597, allocations: 6.496 MB / 0.6443 GB, free: 43.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.76e-05/1.598, allocations: 60.5 kB / 0.6444 GB, free: 43.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=217): time 4.658e-06/1.598, allocations: 4 kB / 0.6444 GB, free: 43.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=224): time 0.02015/1.618, allocations: 7.254 MB / 0.6514 GB, free: 36.03 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/1.618, allocations: 77.41 kB / 0.6515 GB, free: 35.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006373/1.624, allocations: 2.616 MB / 0.6541 GB, free: 33.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000507/1.625, allocations: 69.7 kB / 0.6541 GB, free: 33.24 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001637/1.626, allocations: 2.004 MB / 0.6561 GB, free: 31.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001003/1.627, allocations: 0.7504 MB / 0.6568 GB, free: 30.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/1.628, allocations: 55.88 kB / 0.6569 GB, free: 30.43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/1.628, allocations: 411.9 kB / 0.6573 GB, free: 30.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002915/1.631, allocations: 1.208 MB / 0.6585 GB, free: 28.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003484/1.634, allocations: 1.763 MB / 0.6602 GB, free: 26.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003518/1.638, allocations: 1.505 MB / 0.6616 GB, free: 25.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.858e-05/1.638, allocations: 4 kB / 0.6617 GB, free: 25.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.009333/1.647, allocations: 3.787 MB / 0.6654 GB, free: 21.47 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.64e-05/1.647, allocations: 12 kB / 0.6654 GB, free: 21.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.032e-05/1.647, allocations: 16 kB / 0.6654 GB, free: 21.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002639/1.65, allocations: 0.6512 MB / 0.666 GB, free: 20.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004373/1.654, allocations: 0.5422 MB / 0.6665 GB, free: 20.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01341/1.668, allocations: 9.992 MB / 0.6763 GB, free: 9.727 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003739/1.672, allocations: 104 kB / 0.6764 GB, free: 9.625 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005989/1.672, allocations: 99.98 kB / 0.6765 GB, free: 9.527 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (269): * Single equations (assignments): 264 * 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 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006112/1.673, allocations: 244.5 kB / 0.6767 GB, free: 9.281 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009818/1.674, allocations: 316.2 kB / 0.677 GB, free: 8.969 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009449/1.683, allocations: 3.793 MB / 0.6807 GB, free: 5.105 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.48e-05/1.684, allocations: 23.98 kB / 0.6808 GB, free: 5.082 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.02e-05/1.684, allocations: 8 kB / 0.6808 GB, free: 5.074 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.052e-05/1.684, allocations: 15.97 kB / 0.6808 GB, free: 5.059 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3578/2.041, allocations: 8.377 MB / 0.689 GB, free: 82.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.596e-05/2.042, allocations: 2.797 kB / 0.689 GB, free: 82.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00457/2.046, allocations: 341.3 kB / 0.6893 GB, free: 82.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004485/2.051, allocations: 0.8059 MB / 0.6901 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005246/2.051, allocations: 58.25 kB / 0.6901 GB, free: 82.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02201/2.073, allocations: 14.38 MB / 0.7042 GB, free: 74.99 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/2.073, allocations: 1.875 kB / 0.7042 GB, free: 74.99 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01514/2.088, allocations: 5.66 MB / 0.7097 GB, free: 74.21 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003051/2.092, allocations: 0.6885 MB / 0.7104 GB, free: 74.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001467/2.093, allocations: 54.08 kB / 0.7104 GB, free: 74.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003734/2.097, allocations: 118.5 kB / 0.7105 GB, free: 74.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009192/2.098, allocations: 195.9 kB / 0.7107 GB, free: 74.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002525/2.098, allocations: 60.83 kB / 0.7108 GB, free: 74.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005029/2.103, allocations: 2.005 MB / 0.7127 GB, free: 73.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.21e-07/2.103, allocations: 0 / 0.7127 GB, free: 73.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005538/2.109, allocations: 0.9821 MB / 0.7137 GB, free: 73.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (154): * Single equations (assignments): 148 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01455/2.123, allocations: 7.123 MB / 0.7207 GB, free: 72.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008739/2.132, allocations: 3.657 MB / 0.7242 GB, free: 71.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/2.132, allocations: 3.75 kB / 0.7242 GB, free: 71.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006123/2.138, allocations: 2.479 MB / 0.7267 GB, free: 70.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006868/2.145, allocations: 0.8669 MB / 0.7275 GB, free: 69.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02733/2.173, allocations: 8.959 MB / 0.7363 GB, free: 66.55 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005596/2.178, allocations: 3.425 MB / 0.7396 GB, free: 65.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00441/2.183, allocations: 1.831 MB / 0.7414 GB, free: 63.71 MB / 442.7 MB Notification: Performance of SimCode: time 1.884e-06/2.183, allocations: 0 / 0.7414 GB, free: 63.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.036/7.218, allocations: 219.3 MB / 0.9555 GB, free: 71.09 MB / 474.7 MB