Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.002/2.002, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.184e-05/3.189e-05, allocations: 0 / 292.2 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1151, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5087/0.6239, allocations: 120.7 MB / 463.3 MB, free: 5.887 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003509/0.6243, allocations: 92.81 kB / 463.4 MB, free: 5.836 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8764/1.501, allocations: 160.9 MB / 0.6096 GB, free: 80.99 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.924e-06/1.501, allocations: 0 / 0.6096 GB, free: 80.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004218/1.501, allocations: 102.7 kB / 0.6097 GB, free: 80.97 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01622/1.517, allocations: 3.923 MB / 0.6136 GB, free: 77.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/1.518, allocations: 12.03 kB / 0.6136 GB, free: 77.31 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002316/1.52, allocations: 0.6064 MB / 0.6142 GB, free: 76.69 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007667/1.528, allocations: 0.9158 MB / 0.6151 GB, free: 75.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0142/1.542, allocations: 3.81 MB / 0.6188 GB, free: 71.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003329/1.542, allocations: 299.4 kB / 0.6191 GB, free: 71.7 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001434/1.544, allocations: 400.2 kB / 0.6194 GB, free: 71.31 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/1.558, allocations: 4.975 MB / 0.6243 GB, free: 66.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001403/1.558, allocations: 11.84 kB / 0.6243 GB, free: 66.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005987/1.559, allocations: 164 kB / 0.6245 GB, free: 66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001887/1.559, allocations: 176 kB / 0.6246 GB, free: 65.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01246/1.571, allocations: 3.983 MB / 0.6285 GB, free: 61.83 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04151/1.613, allocations: 16.93 MB / 0.6451 GB, free: 44.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009926/1.623, allocations: 8.252 MB / 0.6531 GB, free: 35.26 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004737/1.628, allocations: 1.604 MB / 0.6547 GB, free: 33.67 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01245/1.64, allocations: 4.858 MB / 0.6594 GB, free: 28.68 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/1.64, allocations: 59.81 kB / 0.6595 GB, free: 28.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=151): time 4.869e-06/1.64, allocations: 0 / 0.6595 GB, free: 28.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=154): time 0.01133/1.652, allocations: 4.512 MB / 0.6639 GB, free: 23.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/1.652, allocations: 72.72 kB / 0.664 GB, free: 23.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004234/1.656, allocations: 1.965 MB / 0.6659 GB, free: 21.92 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003367/1.656, allocations: 53.7 kB / 0.6659 GB, free: 21.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/1.658, allocations: 1.749 MB / 0.6676 GB, free: 20.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005728/1.658, allocations: 0.5311 MB / 0.6682 GB, free: 19.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/1.658, allocations: 40 kB / 0.6682 GB, free: 19.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001591/1.659, allocations: 398.8 kB / 0.6686 GB, free: 19.14 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001812/1.66, allocations: 0.75 MB / 0.6693 GB, free: 18.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0021/1.663, allocations: 1.418 MB / 0.6707 GB, free: 16.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002117/1.665, allocations: 1.021 MB / 0.6717 GB, free: 15.63 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.514e-05/1.665, allocations: 4 kB / 0.6717 GB, free: 15.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=265) (initialization): time 0.005276/1.67, allocations: 2.453 MB / 0.6741 GB, free: 13.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/1.67, allocations: 12 kB / 0.6741 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.18e-05/1.67, allocations: 27.98 kB / 0.6741 GB, free: 13.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004504/1.671, allocations: 126.1 kB / 0.6742 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00358/1.674, allocations: 0.5344 MB / 0.6748 GB, free: 12.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001852/1.676, allocations: 1.799 MB / 0.6765 GB, free: 10.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002855/1.679, allocations: 119.6 kB / 0.6766 GB, free: 10.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002195/1.679, allocations: 100.1 kB / 0.6767 GB, free: 10.29 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 257 * 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: 1 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004492/1.68, allocations: 237.6 kB / 0.677 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004658/1.68, allocations: 241.1 kB / 0.6772 GB, free: 9.816 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005494/1.686, allocations: 2.269 MB / 0.6794 GB, free: 7.488 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/1.686, allocations: 19.95 kB / 0.6794 GB, free: 7.469 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/1.686, allocations: 4 kB / 0.6794 GB, free: 7.465 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/1.686, allocations: 11.97 kB / 0.6794 GB, free: 7.453 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01212/1.698, allocations: 5.547 MB / 0.6849 GB, free: 1.801 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.799e-06/1.698, allocations: 0 / 0.6849 GB, free: 1.801 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003596/1.701, allocations: 295.8 kB / 0.6851 GB, free: 1.512 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/1.704, allocations: 309.9 kB / 0.6854 GB, free: 1.203 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004024/1.704, allocations: 43.97 kB / 0.6855 GB, free: 1.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3478/2.052, allocations: 6.287 MB / 0.6916 GB, free: 76.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/2.052, allocations: 2.625 kB / 0.6916 GB, free: 76.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008835/2.061, allocations: 3.399 MB / 0.6949 GB, free: 75.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001959/2.063, allocations: 494.9 kB / 0.6954 GB, free: 75.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007341/2.064, allocations: 31.61 kB / 0.6954 GB, free: 75.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002601/2.067, allocations: 92.47 kB / 0.6955 GB, free: 75.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005907/2.067, allocations: 114.9 kB / 0.6956 GB, free: 75.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001682/2.067, allocations: 44.58 kB / 0.6957 GB, free: 75.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004476/2.072, allocations: 1.496 MB / 0.6971 GB, free: 75.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.102e-06/2.072, allocations: 2.906 kB / 0.6971 GB, free: 75.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004614/2.077, allocations: 0.7218 MB / 0.6978 GB, free: 75.55 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 123 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01046/2.087, allocations: 4.697 MB / 0.7024 GB, free: 74.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00593/2.093, allocations: 2.03 MB / 0.7044 GB, free: 73.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/2.093, allocations: 1.156 kB / 0.7044 GB, free: 73.83 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003784/2.097, allocations: 1.305 MB / 0.7057 GB, free: 73.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005232/2.102, allocations: 0.5658 MB / 0.7062 GB, free: 73.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02193/2.124, allocations: 6.426 MB / 0.7125 GB, free: 72.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003869/2.128, allocations: 2.666 MB / 0.7151 GB, free: 71.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003442/2.132, allocations: 1.494 MB / 0.7166 GB, free: 71.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.843e-06/2.132, allocations: 2.344 kB / 0.7166 GB, free: 71.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.948/6.08, allocations: 111.4 MB / 0.8254 GB, free: 6.434 MB / 442.7 MB