Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.897/1.897, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.906e-05/2.91e-05, allocations: 0 / 292.3 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1009, allocations: 50.41 MB / 342.7 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4793/0.5802, allocations: 119.8 MB / 462.4 MB, free: 7.047 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003573/0.5806, allocations: 106.5 kB / 462.5 MB, free: 6.988 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8845/1.465, allocations: 169.8 MB / 0.6175 GB, free: 74.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.275e-06/1.465, allocations: 4 kB / 0.6175 GB, free: 74.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006313/1.466, allocations: 167.8 kB / 0.6177 GB, free: 73.94 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02736/1.493, allocations: 6.714 MB / 0.6242 GB, free: 67.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/1.493, allocations: 8.031 kB / 0.6243 GB, free: 67.14 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00386/1.497, allocations: 0.988 MB / 0.6252 GB, free: 66.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01293/1.51, allocations: 1.606 MB / 0.6268 GB, free: 64.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02013/1.53, allocations: 5.952 MB / 0.6326 GB, free: 58.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006302/1.531, allocations: 0.5417 MB / 0.6331 GB, free: 57.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002728/1.534, allocations: 0.7068 MB / 0.6338 GB, free: 57.24 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02803/1.562, allocations: 9.267 MB / 0.6429 GB, free: 47.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002955/1.562, allocations: 7.938 kB / 0.6429 GB, free: 47.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001917/1.564, allocations: 304 kB / 0.6432 GB, free: 47.45 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003702/1.564, allocations: 342.6 kB / 0.6435 GB, free: 47.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02266/1.587, allocations: 7.464 MB / 0.6508 GB, free: 39.65 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07246/1.66, allocations: 30.63 MB / 0.6807 GB, free: 8.293 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.6414/2.301, allocations: 15.98 MB / 0.6963 GB, free: 55.54 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008706/2.31, allocations: 3.057 MB / 0.6993 GB, free: 55.49 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02458/2.334, allocations: 8.249 MB / 0.7073 GB, free: 54.58 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.013e-05/2.335, allocations: 71.33 kB / 0.7074 GB, free: 54.54 MB / 442.8 MB Notification: Performance of pre-optimization done (n=286): time 5.57e-06/2.335, allocations: 1.594 kB / 0.7074 GB, free: 54.54 MB / 442.8 MB Notification: Performance of matching and sorting (n=294): time 0.02409/2.359, allocations: 8.459 MB / 0.7157 GB, free: 53.06 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/2.359, allocations: 81.91 kB / 0.7158 GB, free: 53 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007795/2.367, allocations: 3.189 MB / 0.7189 GB, free: 52.74 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006135/2.367, allocations: 81.67 kB / 0.7189 GB, free: 52.71 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002301/2.37, allocations: 2.978 MB / 0.7219 GB, free: 51.27 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001309/2.371, allocations: 1.003 MB / 0.7228 GB, free: 50.63 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003505/2.371, allocations: 72.19 kB / 0.7229 GB, free: 50.63 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0002251/2.371, allocations: 462.4 kB / 0.7233 GB, free: 50.31 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00332/2.375, allocations: 1.412 MB / 0.7247 GB, free: 50.3 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004197/2.379, allocations: 2.497 MB / 0.7272 GB, free: 49.03 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004555/2.384, allocations: 1.909 MB / 0.729 GB, free: 48.97 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.918e-05/2.384, allocations: 11.81 kB / 0.729 GB, free: 48.97 MB / 442.8 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.01136/2.395, allocations: 4.528 MB / 0.7335 GB, free: 48.62 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.195e-05/2.395, allocations: 21.53 kB / 0.7335 GB, free: 48.62 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.375e-05/2.395, allocations: 38.67 kB / 0.7335 GB, free: 48.62 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001431/2.397, allocations: 401.1 kB / 0.7339 GB, free: 48.57 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006514/2.403, allocations: 0.8742 MB / 0.7348 GB, free: 48.57 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007788/2.411, allocations: 7.33 MB / 0.7419 GB, free: 43.38 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005289/2.416, allocations: 196.8 kB / 0.7421 GB, free: 43.37 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007478/2.417, allocations: 162.4 kB / 0.7423 GB, free: 43.37 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 158 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (452): * Single equations (assignments): 446 * 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.0008341/2.418, allocations: 338.1 kB / 0.7426 GB, free: 43.24 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/2.419, allocations: 399.1 kB / 0.743 GB, free: 43.04 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/2.431, allocations: 4.398 MB / 0.7473 GB, free: 42.56 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.394e-05/2.431, allocations: 31.66 kB / 0.7473 GB, free: 42.56 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.566e-05/2.431, allocations: 14.16 kB / 0.7473 GB, free: 42.56 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.363e-05/2.431, allocations: 18.62 kB / 0.7473 GB, free: 42.56 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02713/2.458, allocations: 10.42 MB / 0.7575 GB, free: 38.32 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.895e-05/2.458, allocations: 2.594 kB / 0.7575 GB, free: 38.32 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004027/2.462, allocations: 458.5 kB / 0.7579 GB, free: 38.31 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003613/2.466, allocations: 0.8798 MB / 0.7588 GB, free: 38.03 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005355/2.466, allocations: 74.56 kB / 0.7589 GB, free: 37.98 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02129/2.488, allocations: 16.28 MB / 0.7748 GB, free: 25.11 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/2.488, allocations: 4.938 kB / 0.7748 GB, free: 25.11 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01508/2.503, allocations: 6.707 MB / 0.7813 GB, free: 21.61 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002995/2.506, allocations: 0.8237 MB / 0.7821 GB, free: 21.06 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001325/2.507, allocations: 72.22 kB / 0.7822 GB, free: 21.01 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004124/2.511, allocations: 161.1 kB / 0.7823 GB, free: 20.96 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006904/2.512, allocations: 219.2 kB / 0.7825 GB, free: 20.93 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002797/2.512, allocations: 88.97 kB / 0.7826 GB, free: 20.91 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.005614/2.518, allocations: 2.414 MB / 0.785 GB, free: 19.97 MB / 442.8 MB Notification: Performance of sort global known variables: time 9.72e-07/2.518, allocations: 0 / 0.785 GB, free: 19.97 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.006935/2.525, allocations: 1.279 MB / 0.7862 GB, free: 19.84 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 215 * 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%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0166/2.542, allocations: 8.797 MB / 0.7948 GB, free: 14.73 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.009368/2.551, allocations: 4.132 MB / 0.7989 GB, free: 12.68 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/2.551, allocations: 10.91 kB / 0.7989 GB, free: 12.67 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006434/2.557, allocations: 2.855 MB / 0.8017 GB, free: 10 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008088/2.566, allocations: 1.036 MB / 0.8027 GB, free: 9.203 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03575/2.601, allocations: 12 MB / 0.8144 GB, free: 14.77 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008011/2.609, allocations: 4.363 MB / 0.8187 GB, free: 11.5 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006849/2.616, allocations: 2.771 MB / 0.8214 GB, free: 8.93 MB / 458.8 MB Notification: Performance of SimCode: time 1.974e-06/2.616, allocations: 4 kB / 0.8214 GB, free: 8.926 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.513/8.129, allocations: 337.3 MB / 1.151 GB, free: 81.09 MB / 0.4949 GB