Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.134/2.134, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.969e-05/3.991e-05, allocations: 7.984 kB / 292.3 MB, free: 8.711 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1135, allocations: 50.41 MB / 342.7 MB, free: 6.277 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5539/0.6675, allocations: 115.9 MB / 458.6 MB, free: 10.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003833/0.6679, allocations: 108.2 kB / 458.7 MB, free: 10.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9456/1.614, allocations: 159.9 MB / 0.6041 GB, free: 82.83 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.614, allocations: 0 / 0.6041 GB, free: 82.83 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007439/1.614, allocations: 168.3 kB / 0.6043 GB, free: 82.8 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.03102/1.645, allocations: 6.456 MB / 0.6106 GB, free: 78.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.866e-05/1.646, allocations: 11.34 kB / 0.6106 GB, free: 78.79 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004638/1.65, allocations: 0.9547 MB / 0.6115 GB, free: 78.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01367/1.664, allocations: 1.516 MB / 0.613 GB, free: 77.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02255/1.687, allocations: 5.755 MB / 0.6186 GB, free: 71.89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007836/1.687, allocations: 0.513 MB / 0.6191 GB, free: 71.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003366/1.691, allocations: 0.6781 MB / 0.6198 GB, free: 70.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03298/1.724, allocations: 8.96 MB / 0.6285 GB, free: 61.55 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003744/1.724, allocations: 7.906 kB / 0.6285 GB, free: 61.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00281/1.727, allocations: 294.2 kB / 0.6288 GB, free: 61.26 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000415/1.728, allocations: 318.2 kB / 0.6291 GB, free: 60.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02555/1.753, allocations: 7.237 MB / 0.6362 GB, free: 53.71 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08044/1.834, allocations: 28.85 MB / 0.6643 GB, free: 24.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0229/1.857, allocations: 16.4 MB / 0.6804 GB, free: 6.184 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007721/1.864, allocations: 2.889 MB / 0.6832 GB, free: 3.281 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3923/2.257, allocations: 7.773 MB / 0.6908 GB, free: 76.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.719e-05/2.257, allocations: 64.89 kB / 0.6908 GB, free: 76.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=256): time 6.613e-06/2.257, allocations: 1.062 kB / 0.6908 GB, free: 76.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=262): time 0.02886/2.286, allocations: 7.804 MB / 0.6985 GB, free: 75.17 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/2.286, allocations: 79.34 kB / 0.6985 GB, free: 75.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01097/2.297, allocations: 2.913 MB / 0.7014 GB, free: 74.85 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000687/2.298, allocations: 70.98 kB / 0.7014 GB, free: 74.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003147/2.301, allocations: 2.855 MB / 0.7042 GB, free: 73.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001551/2.302, allocations: 0.9045 MB / 0.7051 GB, free: 72.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005579/2.303, allocations: 66 kB / 0.7052 GB, free: 72.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003849/2.303, allocations: 444.4 kB / 0.7056 GB, free: 72.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004338/2.308, allocations: 1.309 MB / 0.7069 GB, free: 72.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005043/2.313, allocations: 2.301 MB / 0.7091 GB, free: 71.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004999/2.318, allocations: 1.763 MB / 0.7108 GB, free: 71.35 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.868e-05/2.318, allocations: 11.06 kB / 0.7109 GB, free: 71.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01287/2.331, allocations: 4.191 MB / 0.715 GB, free: 71.01 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.304e-05/2.331, allocations: 19.06 kB / 0.715 GB, free: 71.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.456e-05/2.331, allocations: 34.47 kB / 0.715 GB, free: 71.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001705/2.333, allocations: 397.5 kB / 0.7154 GB, free: 70.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006305/2.339, allocations: 0.7858 MB / 0.7161 GB, free: 70.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008897/2.348, allocations: 7.317 MB / 0.7233 GB, free: 65.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00549/2.354, allocations: 170.2 kB / 0.7235 GB, free: 65.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008979/2.355, allocations: 149.9 kB / 0.7236 GB, free: 65.76 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (406): * Single equations (assignments): 400 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001321/2.356, allocations: 313.4 kB / 0.7239 GB, free: 65.63 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/2.357, allocations: 366.9 kB / 0.7242 GB, free: 65.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/2.371, allocations: 4.074 MB / 0.7282 GB, free: 64.97 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.15e-05/2.371, allocations: 30.75 kB / 0.7283 GB, free: 64.97 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.332e-05/2.371, allocations: 14.19 kB / 0.7283 GB, free: 64.97 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.573e-05/2.371, allocations: 12.84 kB / 0.7283 GB, free: 64.97 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03202/2.403, allocations: 9.684 MB / 0.7377 GB, free: 63.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.111e-05/2.403, allocations: 3.062 kB / 0.7377 GB, free: 63.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003943/2.407, allocations: 406.7 kB / 0.7381 GB, free: 63.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003855/2.411, allocations: 0.8569 MB / 0.739 GB, free: 62.76 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006944/2.412, allocations: 69 kB / 0.739 GB, free: 62.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02313/2.435, allocations: 16.02 MB / 0.7547 GB, free: 50.01 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/2.435, allocations: 6.688 kB / 0.7547 GB, free: 50.01 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01626/2.451, allocations: 6.073 MB / 0.7606 GB, free: 46.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00322/2.455, allocations: 0.7431 MB / 0.7613 GB, free: 46.39 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001939/2.457, allocations: 63.33 kB / 0.7614 GB, free: 46.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004673/2.461, allocations: 147.8 kB / 0.7615 GB, free: 46.31 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/2.463, allocations: 199.9 kB / 0.7617 GB, free: 46.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005381/2.463, allocations: 75.95 kB / 0.7618 GB, free: 46.26 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006671/2.47, allocations: 2.209 MB / 0.764 GB, free: 45.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.042e-06/2.47, allocations: 3.125 kB / 0.764 GB, free: 45.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008571/2.478, allocations: 1.191 MB / 0.7651 GB, free: 45.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (194): * Single equations (assignments): 187 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01839/2.497, allocations: 7.88 MB / 0.7728 GB, free: 40.79 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01011/2.507, allocations: 3.836 MB / 0.7766 GB, free: 39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/2.507, allocations: 3.625 kB / 0.7766 GB, free: 39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007283/2.514, allocations: 2.706 MB / 0.7792 GB, free: 37.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008434/2.523, allocations: 0.9215 MB / 0.7801 GB, free: 37.17 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04212/2.565, allocations: 11.43 MB / 0.7913 GB, free: 27.81 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009057/2.574, allocations: 4.232 MB / 0.7954 GB, free: 24.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006584/2.581, allocations: 2.552 MB / 0.7979 GB, free: 22.28 MB / 442.7 MB Notification: Performance of SimCode: time 1.633e-06/2.581, allocations: 3.281 kB / 0.7979 GB, free: 22.28 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.97/8.551, allocations: 321.1 MB / 1.112 GB, free: 118.6 MB / 0.4948 GB