Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.085/2.085, allocations: 225.8 MB / 239.3 MB, free: 1.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.189e-05/3.197e-05, allocations: 4 kB / 292.2 MB, free: 11.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 50.41 MB / 342.6 MB, free: 9.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4927/0.5997, allocations: 105.3 MB / 448 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/0.6, allocations: 80.14 kB / 448.1 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2199/0.82, allocations: 53.51 MB / 0.4898 GB, free: 2.809 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.82, allocations: 0 / 0.4898 GB, free: 2.809 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003339/0.8204, allocations: 67.94 kB / 0.4899 GB, free: 2.742 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.01046/0.8308, allocations: 2.73 MB / 0.4925 GB, free: 15.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.8309, allocations: 8.031 kB / 0.4926 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00149/0.8324, allocations: 362.7 kB / 0.4929 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0018/0.8342, allocations: 356 kB / 0.4932 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006556/0.8408, allocations: 1.886 MB / 0.4951 GB, free: 13.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003297/0.8412, allocations: 201.4 kB / 0.4953 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001191/0.8424, allocations: 255.9 kB / 0.4955 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01137/0.8538, allocations: 3.382 MB / 0.4988 GB, free: 9.305 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001391/0.854, allocations: 4 kB / 0.4988 GB, free: 9.301 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005349/0.8545, allocations: 119.9 kB / 0.4989 GB, free: 9.184 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001705/0.8547, allocations: 104.9 kB / 0.499 GB, free: 9.078 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009547/0.8643, allocations: 2.805 MB / 0.5018 GB, free: 6.266 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03149/0.8958, allocations: 10.93 MB / 0.5124 GB, free: 11.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005918/0.9018, allocations: 3.039 MB / 0.5154 GB, free: 7.805 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003414/0.9053, allocations: 1.257 MB / 0.5166 GB, free: 6.551 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004994/0.9058, allocations: 138.4 kB / 0.5168 GB, free: 6.395 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002872/0.9087, allocations: 1.111 MB / 0.5179 GB, free: 5.254 MB / 410.7 MB Notification: Performance of pre-optimization done (n=159): time 5.641e-06/0.9088, allocations: 0 / 0.5179 GB, free: 5.254 MB / 410.7 MB Notification: Performance of matching and sorting (n=175): time 0.0248/0.9336, allocations: 6.732 MB / 0.5244 GB, free: 14.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.9338, allocations: 176.2 kB / 0.5246 GB, free: 14.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003865/0.9376, allocations: 1.596 MB / 0.5262 GB, free: 12.65 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004244/0.9381, allocations: 57.69 kB / 0.5262 GB, free: 12.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00133/0.9394, allocations: 1.094 MB / 0.5273 GB, free: 11.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008544/0.9403, allocations: 0.5701 MB / 0.5278 GB, free: 10.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.9405, allocations: 36 kB / 0.5279 GB, free: 10.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.9407, allocations: 386.8 kB / 0.5282 GB, free: 10.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002438/0.9432, allocations: 0.941 MB / 0.5292 GB, free: 9.539 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002791/0.946, allocations: 1.312 MB / 0.5304 GB, free: 8.094 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002698/0.9487, allocations: 1.11 MB / 0.5315 GB, free: 6.988 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/0.9488, allocations: 4 kB / 0.5315 GB, free: 6.984 MB / 426.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.008321/0.9571, allocations: 3.035 MB / 0.5345 GB, free: 3.926 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.9572, allocations: 11.94 kB / 0.5345 GB, free: 3.914 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/0.9572, allocations: 8 kB / 0.5345 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003597/0.9608, allocations: 0.8842 MB / 0.5354 GB, free: 3.008 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002734/0.9636, allocations: 335.5 kB / 0.5357 GB, free: 2.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01803/0.9817, allocations: 9.53 MB / 0.545 GB, free: 8.742 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002913/0.9846, allocations: 147.9 kB / 0.5451 GB, free: 8.598 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004502/0.9851, allocations: 64 kB / 0.5452 GB, free: 8.535 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (179): * Single equations (assignments): 174 * 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,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000589/0.9857, allocations: 219.7 kB / 0.5454 GB, free: 8.312 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006856/0.9864, allocations: 209.4 kB / 0.5456 GB, free: 8.105 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008825/0.9953, allocations: 3.041 MB / 0.5486 GB, free: 5.031 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.083e-05/0.9954, allocations: 16 kB / 0.5486 GB, free: 5.016 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/0.9954, allocations: 11.94 kB / 0.5486 GB, free: 5.004 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-05/0.9954, allocations: 7.969 kB / 0.5486 GB, free: 4.996 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3163/1.312, allocations: 6.185 MB / 0.5547 GB, free: 109.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.707e-05/1.312, allocations: 2.812 kB / 0.5547 GB, free: 109.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002268/1.314, allocations: 220.8 kB / 0.5549 GB, free: 109.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004466/1.319, allocations: 0.9279 MB / 0.5558 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004184/1.319, allocations: 41.84 kB / 0.5558 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01799/1.337, allocations: 11.01 MB / 0.5666 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.337, allocations: 3.031 kB / 0.5666 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01197/1.349, allocations: 4.576 MB / 0.571 GB, free: 103.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/1.351, allocations: 0.5022 MB / 0.5715 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000672/1.352, allocations: 37.8 kB / 0.5716 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002253/1.354, allocations: 118 kB / 0.5717 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007878/1.355, allocations: 200.6 kB / 0.5719 GB, free: 103.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000174/1.355, allocations: 53.12 kB / 0.5719 GB, free: 103.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002667/1.358, allocations: 1.217 MB / 0.5731 GB, free: 103.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.62e-07/1.358, allocations: 3.844 kB / 0.5731 GB, free: 103.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003492/1.361, allocations: 0.6529 MB / 0.5738 GB, free: 103.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01119/1.373, allocations: 5.954 MB / 0.5796 GB, free: 102 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007152/1.38, allocations: 3.071 MB / 0.5826 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.38, allocations: 2.438 kB / 0.5826 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005582/1.385, allocations: 2.107 MB / 0.5846 GB, free: 100.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004228/1.39, allocations: 0.5403 MB / 0.5852 GB, free: 100.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/1.404, allocations: 5.421 MB / 0.5904 GB, free: 99.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002268/1.406, allocations: 2.201 MB / 0.5926 GB, free: 98.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/1.409, allocations: 1.003 MB / 0.5936 GB, free: 98 MB / 442.7 MB Notification: Performance of SimCode: time 1.724e-06/1.409, allocations: 6.438 kB / 0.5936 GB, free: 97.99 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.919/5.327, allocations: 112.2 MB / 0.7031 GB, free: 10.25 MB / 442.7 MB