Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.24e-05/4.278e-05, allocations: 4 kB / 292.2 MB, free: 8.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1147, allocations: 50.41 MB / 342.6 MB, free: 6.27 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4888/0.6035, allocations: 111.9 MB / 454.5 MB, free: 14.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003224/0.6039, allocations: 94.38 kB / 454.6 MB, free: 14.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6591/1.263, allocations: 92.74 MB / 0.5345 GB, free: 91.83 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.056e-06/1.263, allocations: 1.188 kB / 0.5345 GB, free: 91.83 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004776/1.264, allocations: 102.5 kB / 0.5346 GB, free: 91.82 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: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.01798/1.282, allocations: 3.95 MB / 0.5385 GB, free: 90.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.027e-05/1.282, allocations: 9.969 kB / 0.5385 GB, free: 90.47 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002433/1.284, allocations: 0.5341 MB / 0.539 GB, free: 90.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007221/1.291, allocations: 0.8287 MB / 0.5398 GB, free: 90.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0152/1.307, allocations: 3.825 MB / 0.5436 GB, free: 89.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00051/1.307, allocations: 289.8 kB / 0.5438 GB, free: 89.6 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001821/1.309, allocations: 394.9 kB / 0.5442 GB, free: 89.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01769/1.327, allocations: 5.13 MB / 0.5492 GB, free: 89.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002091/1.327, allocations: 13.53 kB / 0.5492 GB, free: 89.11 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001348/1.328, allocations: 162.5 kB / 0.5494 GB, free: 89.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002189/1.329, allocations: 167.1 kB / 0.5496 GB, free: 89.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01414/1.343, allocations: 4.3 MB / 0.5538 GB, free: 89.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04372/1.387, allocations: 16.96 MB / 0.5703 GB, free: 84.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01215/1.399, allocations: 8.652 MB / 0.5788 GB, free: 76.62 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004325/1.403, allocations: 1.811 MB / 0.5805 GB, free: 75.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01304/1.416, allocations: 4.852 MB / 0.5853 GB, free: 73.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002522/1.419, allocations: 1.24 MB / 0.5865 GB, free: 72.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=183): time 5.74e-06/1.419, allocations: 0 / 0.5865 GB, free: 72.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=186): time 0.01489/1.434, allocations: 5.843 MB / 0.5922 GB, free: 70.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.575e-05/1.434, allocations: 230.2 kB / 0.5924 GB, free: 69.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004413/1.438, allocations: 2.026 MB / 0.5944 GB, free: 69 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004395/1.439, allocations: 57.17 kB / 0.5944 GB, free: 68.95 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001589/1.44, allocations: 1.627 MB / 0.596 GB, free: 67.65 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008009/1.441, allocations: 0.606 MB / 0.5966 GB, free: 67.19 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001899/1.441, allocations: 38.94 kB / 0.5967 GB, free: 67.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/1.442, allocations: 393.8 kB / 0.597 GB, free: 66.81 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002267/1.444, allocations: 0.9484 MB / 0.598 GB, free: 66.44 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002588/1.446, allocations: 1.47 MB / 0.5994 GB, free: 65.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002538/1.449, allocations: 1.157 MB / 0.6005 GB, free: 64.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-05/1.449, allocations: 3.375 kB / 0.6005 GB, free: 64.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.00763/1.457, allocations: 3.17 MB / 0.6036 GB, free: 63.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/1.457, allocations: 10.41 kB / 0.6036 GB, free: 63.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.05e-05/1.457, allocations: 16.59 kB / 0.6037 GB, free: 63.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002909/1.46, allocations: 0.7661 MB / 0.6044 GB, free: 63.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002933/1.463, allocations: 375.1 kB / 0.6048 GB, free: 63.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01557/1.478, allocations: 10.8 MB / 0.6153 GB, free: 55.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/1.482, allocations: 147.7 kB / 0.6154 GB, free: 55.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002862/1.482, allocations: 83.81 kB / 0.6155 GB, free: 55.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 203 * 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%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000544/1.482, allocations: 243.8 kB / 0.6158 GB, free: 55.42 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005453/1.483, allocations: 243.2 kB / 0.616 GB, free: 55.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008054/1.491, allocations: 3.251 MB / 0.6192 GB, free: 53.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.343e-05/1.491, allocations: 17.41 kB / 0.6192 GB, free: 53.86 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.997e-05/1.491, allocations: 14.91 kB / 0.6192 GB, free: 53.86 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.503e-05/1.491, allocations: 15.83 kB / 0.6192 GB, free: 53.85 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01766/1.509, allocations: 6.862 MB / 0.6259 GB, free: 50 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/1.509, allocations: 2.438 kB / 0.6259 GB, free: 50 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001787/1.511, allocations: 185.1 kB / 0.6261 GB, free: 49.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003922/1.515, allocations: 0.9355 MB / 0.627 GB, free: 49.08 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000402/1.515, allocations: 51.08 kB / 0.6271 GB, free: 49.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02151/1.537, allocations: 15.17 MB / 0.6419 GB, free: 34.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.537, allocations: 7.594 kB / 0.6419 GB, free: 34.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01105/1.548, allocations: 4.715 MB / 0.6465 GB, free: 29.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002115/1.55, allocations: 0.556 MB / 0.647 GB, free: 29.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008768/1.551, allocations: 47.66 kB / 0.6471 GB, free: 29.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002596/1.553, allocations: 108.5 kB / 0.6472 GB, free: 29.31 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000866/1.554, allocations: 208.9 kB / 0.6474 GB, free: 29.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001688/1.555, allocations: 51 kB / 0.6474 GB, free: 29.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00357/1.558, allocations: 1.558 MB / 0.6489 GB, free: 27.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.558, allocations: 0 / 0.6489 GB, free: 27.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004619/1.563, allocations: 0.8044 MB / 0.6497 GB, free: 26.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(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.01205/1.575, allocations: 5.98 MB / 0.6556 GB, free: 21.42 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00714/1.582, allocations: 3.065 MB / 0.6586 GB, free: 18.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.582, allocations: 0 / 0.6586 GB, free: 18.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005095/1.587, allocations: 2.237 MB / 0.6607 GB, free: 16.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005373/1.593, allocations: 0.662 MB / 0.6614 GB, free: 15.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02002/1.613, allocations: 6.875 MB / 0.6681 GB, free: 9.953 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004038/1.617, allocations: 2.862 MB / 0.6709 GB, free: 7.734 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003302/1.62, allocations: 1.438 MB / 0.6723 GB, free: 6.406 MB / 442.7 MB Notification: Performance of SimCode: time 1.583e-06/1.62, allocations: 0 / 0.6723 GB, free: 6.406 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.584/6.205, allocations: 174.3 MB / 0.8425 GB, free: 3.129 MB / 458.7 MB