Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.037/2.037, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.578e-05/3.596e-05, allocations: 4 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 50.41 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5453/0.6633, allocations: 126.4 MB / 469 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003485/0.6637, allocations: 95.88 kB / 469.1 MB, free: 468 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7989/1.463, allocations: 116.3 MB / 0.5717 GB, free: 96.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.265e-06/1.463, allocations: 0 / 0.5717 GB, free: 96.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008198/1.464, allocations: 134.1 kB / 0.5718 GB, free: 96.7 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.03261/1.496, allocations: 4.906 MB / 0.5766 GB, free: 94.83 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.79e-05/1.496, allocations: 10.31 kB / 0.5766 GB, free: 94.83 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004291/1.501, allocations: 0.7031 MB / 0.5773 GB, free: 94.76 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01224/1.513, allocations: 0.9467 MB / 0.5782 GB, free: 94.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02088/1.534, allocations: 4.42 MB / 0.5825 GB, free: 93.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006106/1.535, allocations: 384.8 kB / 0.5829 GB, free: 93.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002434/1.537, allocations: 0.5012 MB / 0.5834 GB, free: 93.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02346/1.561, allocations: 6.494 MB / 0.5897 GB, free: 90.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00038/1.561, allocations: 11.78 kB / 0.5898 GB, free: 90.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001968/1.563, allocations: 216.4 kB / 0.59 GB, free: 90.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003038/1.563, allocations: 231.6 kB / 0.5902 GB, free: 89.99 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01812/1.581, allocations: 5.177 MB / 0.5952 GB, free: 87.87 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06126/1.643, allocations: 21.14 MB / 0.6159 GB, free: 73.75 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01237/1.655, allocations: 8.452 MB / 0.6241 GB, free: 64.71 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005444/1.661, allocations: 1.999 MB / 0.6261 GB, free: 62.79 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02026/1.681, allocations: 6.01 MB / 0.632 GB, free: 56.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/1.681, allocations: 56.56 kB / 0.632 GB, free: 56.64 MB / 442.7 MB Notification: Performance of pre-optimization done (n=208): time 5.49e-06/1.681, allocations: 0 / 0.632 GB, free: 56.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=232): time 0.03516/1.716, allocations: 9.301 MB / 0.6411 GB, free: 47.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/1.716, allocations: 77.41 kB / 0.6412 GB, free: 47.19 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007017/1.724, allocations: 2.5 MB / 0.6436 GB, free: 44.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005919/1.724, allocations: 61.7 kB / 0.6437 GB, free: 44.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001844/1.726, allocations: 2.199 MB / 0.6458 GB, free: 42.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001203/1.727, allocations: 0.7988 MB / 0.6466 GB, free: 41.61 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004002/1.728, allocations: 60 kB / 0.6467 GB, free: 41.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002532/1.728, allocations: 429 kB / 0.6471 GB, free: 41.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003517/1.732, allocations: 1.244 MB / 0.6483 GB, free: 39.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004243/1.736, allocations: 2.111 MB / 0.6503 GB, free: 37.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004404/1.74, allocations: 1.63 MB / 0.6519 GB, free: 35.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.319e-05/1.74, allocations: 11.95 kB / 0.6519 GB, free: 35.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01283/1.753, allocations: 4.202 MB / 0.656 GB, free: 31.42 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/1.753, allocations: 24.05 kB / 0.6561 GB, free: 31.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.697e-05/1.753, allocations: 28 kB / 0.6561 GB, free: 31.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00304/1.756, allocations: 0.7074 MB / 0.6568 GB, free: 30.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005341/1.762, allocations: 0.6903 MB / 0.6575 GB, free: 29.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/1.776, allocations: 9.393 MB / 0.6666 GB, free: 20.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004681/1.781, allocations: 187.7 kB / 0.6668 GB, free: 19.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007921/1.781, allocations: 132 kB / 0.6669 GB, free: 19.72 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * 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: 4 * 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: 4 {(6,75.0%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001104/1.783, allocations: 280 kB / 0.6672 GB, free: 19.44 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/1.784, allocations: 324 kB / 0.6675 GB, free: 19.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01256/1.796, allocations: 3.997 MB / 0.6714 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.023e-05/1.796, allocations: 24 kB / 0.6714 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.469e-05/1.796, allocations: 15.98 kB / 0.6715 GB, free: 15.01 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.949e-05/1.796, allocations: 11.95 kB / 0.6715 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02647/1.823, allocations: 8.635 MB / 0.6799 GB, free: 6.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.599e-05/1.823, allocations: 4 kB / 0.6799 GB, free: 6.246 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003505/1.827, allocations: 379.4 kB / 0.6803 GB, free: 5.875 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004444/1.831, allocations: 0.9527 MB / 0.6812 GB, free: 4.906 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006143/1.832, allocations: 59.98 kB / 0.6813 GB, free: 4.848 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3634/2.195, allocations: 15.46 MB / 0.6964 GB, free: 81.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/2.195, allocations: 6.266 kB / 0.6964 GB, free: 81.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01775/2.213, allocations: 5.91 MB / 0.7021 GB, free: 80.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00296/2.216, allocations: 0.668 MB / 0.7028 GB, free: 80.78 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001556/2.218, allocations: 53.06 kB / 0.7028 GB, free: 80.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004247/2.222, allocations: 153.5 kB / 0.703 GB, free: 80.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001094/2.223, allocations: 180.1 kB / 0.7032 GB, free: 80.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000567/2.224, allocations: 64.62 kB / 0.7032 GB, free: 80.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006344/2.23, allocations: 1.89 MB / 0.7051 GB, free: 80.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.064e-06/2.23, allocations: 1.688 kB / 0.7051 GB, free: 80.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006865/2.237, allocations: 1.018 MB / 0.7061 GB, free: 80.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01805/2.255, allocations: 7.629 MB / 0.7135 GB, free: 78.47 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0103/2.265, allocations: 3.859 MB / 0.7173 GB, free: 77.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-05/2.266, allocations: 3.25 kB / 0.7173 GB, free: 77.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007484/2.273, allocations: 2.601 MB / 0.7198 GB, free: 77.03 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007121/2.28, allocations: 0.7746 MB / 0.7206 GB, free: 77.01 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03192/2.312, allocations: 9.09 MB / 0.7295 GB, free: 74.24 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006974/2.319, allocations: 3.335 MB / 0.7327 GB, free: 72.99 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005239/2.325, allocations: 1.957 MB / 0.7346 GB, free: 71.38 MB / 442.7 MB Notification: Performance of SimCode: time 1.834e-06/2.325, allocations: 0 / 0.7346 GB, free: 71.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.459/7.783, allocations: 238.2 MB / 0.9672 GB, free: 57.27 MB / 474.7 MB