Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.286e-05/3.318e-05, allocations: 4 kB / 292.1 MB, free: 8.797 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09378/0.09384, allocations: 50.41 MB / 342.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.411/0.5049, allocations: 111.9 MB / 454.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.5052, allocations: 94.12 kB / 454.5 MB, free: 14.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5871/1.092, allocations: 92.73 MB / 0.5344 GB, free: 92.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.263e-06/1.092, allocations: 0 / 0.5344 GB, free: 92.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003818/1.093, allocations: 99.77 kB / 0.5345 GB, free: 92.03 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.01431/1.107, allocations: 3.955 MB / 0.5384 GB, free: 90.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/1.107, allocations: 9.562 kB / 0.5384 GB, free: 90.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006171/1.113, allocations: 0.831 MB / 0.5392 GB, free: 90.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/1.126, allocations: 3.828 MB / 0.543 GB, free: 89.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004028/1.126, allocations: 296.2 kB / 0.5432 GB, free: 89.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001466/1.127, allocations: 381.9 kB / 0.5436 GB, free: 89.87 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/1.141, allocations: 5.135 MB / 0.5486 GB, free: 89.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001227/1.141, allocations: 11.61 kB / 0.5486 GB, free: 89.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006295/1.142, allocations: 161.7 kB / 0.5488 GB, free: 89.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001522/1.142, allocations: 169 kB / 0.5489 GB, free: 89.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/1.153, allocations: 4.293 MB / 0.5531 GB, free: 89.37 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03505/1.188, allocations: 16.96 MB / 0.5697 GB, free: 84.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008667/1.197, allocations: 8.652 MB / 0.5781 GB, free: 77.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003501/1.201, allocations: 1.815 MB / 0.5799 GB, free: 76.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01066/1.211, allocations: 4.855 MB / 0.5847 GB, free: 73.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002201/1.213, allocations: 1.236 MB / 0.5859 GB, free: 73.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=183): time 5.292e-06/1.214, allocations: 0 / 0.5859 GB, free: 73.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=186): time 0.01258/1.226, allocations: 5.842 MB / 0.5916 GB, free: 70.51 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.607e-05/1.226, allocations: 237.4 kB / 0.5918 GB, free: 70.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004309/1.231, allocations: 2.015 MB / 0.5938 GB, free: 69.44 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003425/1.231, allocations: 65.03 kB / 0.5938 GB, free: 69.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001471/1.232, allocations: 1.627 MB / 0.5954 GB, free: 68.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007191/1.233, allocations: 0.6 MB / 0.596 GB, free: 67.63 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/1.233, allocations: 45.53 kB / 0.596 GB, free: 67.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/1.234, allocations: 393.6 kB / 0.5964 GB, free: 67.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001815/1.235, allocations: 0.9439 MB / 0.5973 GB, free: 66.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002259/1.238, allocations: 1.477 MB / 0.5988 GB, free: 65.87 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00225/1.24, allocations: 1.157 MB / 0.5999 GB, free: 65.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/1.24, allocations: 3.938 kB / 0.5999 GB, free: 65.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006533/1.247, allocations: 3.171 MB / 0.603 GB, free: 64.19 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.57e-05/1.247, allocations: 12.22 kB / 0.603 GB, free: 64.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/1.247, allocations: 14.44 kB / 0.603 GB, free: 64.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/1.249, allocations: 0.7633 MB / 0.6038 GB, free: 63.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002014/1.251, allocations: 370.5 kB / 0.6041 GB, free: 63.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01303/1.264, allocations: 10.81 MB / 0.6147 GB, free: 56.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002562/1.267, allocations: 144.1 kB / 0.6148 GB, free: 56.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003835/1.267, allocations: 80.41 kB / 0.6149 GB, free: 56.04 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.0005038/1.268, allocations: 254.4 kB / 0.6152 GB, free: 55.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000601/1.268, allocations: 248.9 kB / 0.6154 GB, free: 55.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006874/1.275, allocations: 3.248 MB / 0.6186 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/1.275, allocations: 15.06 kB / 0.6186 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.103e-05/1.275, allocations: 11.34 kB / 0.6186 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.471e-05/1.275, allocations: 10.97 kB / 0.6186 GB, free: 54.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/1.29, allocations: 6.863 MB / 0.6253 GB, free: 50.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.65e-05/1.291, allocations: 3.953 kB / 0.6253 GB, free: 50.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/1.292, allocations: 180.9 kB / 0.6255 GB, free: 50.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003069/1.295, allocations: 0.9369 MB / 0.6264 GB, free: 49.67 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003161/1.295, allocations: 51.55 kB / 0.6264 GB, free: 49.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01796/1.313, allocations: 15.17 MB / 0.6413 GB, free: 34.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/1.313, allocations: 7.594 kB / 0.6413 GB, free: 34.85 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009034/1.322, allocations: 4.707 MB / 0.6459 GB, free: 30.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001851/1.324, allocations: 0.5553 MB / 0.6464 GB, free: 30.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007506/1.325, allocations: 43.61 kB / 0.6465 GB, free: 29.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/1.327, allocations: 117.9 kB / 0.6466 GB, free: 29.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006523/1.327, allocations: 205 kB / 0.6468 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001729/1.328, allocations: 51.89 kB / 0.6468 GB, free: 29.72 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003158/1.331, allocations: 1.542 MB / 0.6483 GB, free: 28.31 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.198e-06/1.331, allocations: 0 / 0.6483 GB, free: 28.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004285/1.335, allocations: 0.8117 MB / 0.6491 GB, free: 27.5 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.0008797/1.336, allocations: 457 kB / 0.6495 GB, free: 27.13 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005807/1.342, allocations: 3.059 MB / 0.6525 GB, free: 24.28 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.744e-06/1.342, allocations: 4 kB / 0.6525 GB, free: 24.28 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004142/1.346, allocations: 2.237 MB / 0.6547 GB, free: 22.19 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003955/1.35, allocations: 0.6644 MB / 0.6554 GB, free: 21.67 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/1.364, allocations: 5.882 MB / 0.6611 GB, free: 16.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003726/1.368, allocations: 2.856 MB / 0.6639 GB, free: 14.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008737/1.369, allocations: 161.1 kB / 0.6641 GB, free: 14.04 MB / 442.7 MB Notification: Performance of SimCode: time 1.621e-06/1.369, allocations: 0 / 0.6641 GB, free: 14.04 MB / 442.7 MB Notification: Performance of Templates: time 0.4577/1.827, allocations: 153 MB / 0.8135 GB, free: 34.61 MB / 458.7 MB