Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.724/2.724, allocations: 270 MB / 282.6 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.451e-05, allocations: 0 / 347 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5038/0.5038, allocations: 61.88 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7043/1.208, allocations: 123.4 MB / 0.5198 GB, free: 50.28 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003994/1.209, allocations: 77.12 kB / 0.5199 GB, free: 50.28 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.283/1.492, allocations: 62.25 MB / 0.5807 GB, free: 38.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.492, allocations: 0 / 0.5807 GB, free: 38.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003531/1.492, allocations: 86 kB / 0.5808 GB, free: 38.52 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01072/1.503, allocations: 2.926 MB / 0.5836 GB, free: 36.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/1.503, allocations: 15.44 kB / 0.5836 GB, free: 36.8 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001935/1.505, allocations: 413.8 kB / 0.584 GB, free: 36.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002609/1.508, allocations: 395 kB / 0.5844 GB, free: 36.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007396/1.515, allocations: 2.164 MB / 0.5865 GB, free: 35.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002879/1.515, allocations: 208.7 kB / 0.5867 GB, free: 35.55 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00127/1.517, allocations: 293.6 kB / 0.587 GB, free: 35.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01073/1.527, allocations: 3.583 MB / 0.5905 GB, free: 34.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001371/1.528, allocations: 7.656 kB / 0.5905 GB, free: 34.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004939/1.528, allocations: 122.4 kB / 0.5906 GB, free: 34.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001758/1.528, allocations: 138.2 kB / 0.5908 GB, free: 34.62 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009031/1.537, allocations: 2.88 MB / 0.5936 GB, free: 33.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03185/1.569, allocations: 11.63 MB / 0.6049 GB, free: 24.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005956/1.575, allocations: 2.169 MB / 0.6071 GB, free: 22.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002691/1.578, allocations: 1.059 MB / 0.6081 GB, free: 21.12 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005665/1.579, allocations: 227.4 kB / 0.6083 GB, free: 20.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/1.579, allocations: 51.88 kB / 0.6084 GB, free: 20.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=142): time 4.779e-06/1.579, allocations: 0 / 0.6084 GB, free: 20.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=156): time 0.02109/1.6, allocations: 6.074 MB / 0.6143 GB, free: 14.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/1.6, allocations: 72.66 kB / 0.6144 GB, free: 14.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004093/1.604, allocations: 1.69 MB / 0.616 GB, free: 12.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004588/1.604, allocations: 57.64 kB / 0.6161 GB, free: 12.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009687/1.605, allocations: 1.28 MB / 0.6173 GB, free: 11.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007876/1.606, allocations: 0.5353 MB / 0.6178 GB, free: 10.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/1.606, allocations: 36 kB / 0.6179 GB, free: 10.92 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/1.607, allocations: 378.8 kB / 0.6182 GB, free: 10.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/1.609, allocations: 0.8708 MB / 0.6191 GB, free: 9.672 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002519/1.611, allocations: 1.299 MB / 0.6204 GB, free: 8.191 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002701/1.614, allocations: 1.101 MB / 0.6214 GB, free: 7.094 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.567e-05/1.614, allocations: 4 kB / 0.6214 GB, free: 7.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.007263/1.621, allocations: 2.721 MB / 0.6241 GB, free: 4.352 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/1.621, allocations: 12 kB / 0.6241 GB, free: 4.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.769e-05/1.621, allocations: 15.94 kB / 0.6241 GB, free: 4.324 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001768/1.623, allocations: 446.6 kB / 0.6245 GB, free: 3.879 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/1.627, allocations: 455.3 kB / 0.625 GB, free: 3.434 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/1.638, allocations: 7.034 MB / 0.6318 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003149/1.641, allocations: 131.9 kB / 0.632 GB, free: 11.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005319/1.641, allocations: 71.98 kB / 0.632 GB, free: 11.8 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * 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 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006117/1.642, allocations: 210 kB / 0.6322 GB, free: 11.59 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008677/1.643, allocations: 213.3 kB / 0.6324 GB, free: 11.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009863/1.653, allocations: 2.965 MB / 0.6353 GB, free: 8.383 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-05/1.653, allocations: 12 kB / 0.6353 GB, free: 8.371 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.13e-05/1.653, allocations: 8 kB / 0.6354 GB, free: 8.363 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-05/1.653, allocations: 7.969 kB / 0.6354 GB, free: 8.355 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02124/1.674, allocations: 6.119 MB / 0.6413 GB, free: 2.125 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.54e-05/1.674, allocations: 4 kB / 0.6413 GB, free: 2.121 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002381/1.677, allocations: 243.6 kB / 0.6416 GB, free: 1.883 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004253/1.681, allocations: 0.8335 MB / 0.6424 GB, free: 1.039 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004171/1.682, allocations: 39.98 kB / 0.6424 GB, free: 1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02099/1.703, allocations: 10.2 MB / 0.6524 GB, free: 6.398 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.388e-06/1.703, allocations: 12 kB / 0.6524 GB, free: 6.387 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/1.715, allocations: 4.378 MB / 0.6567 GB, free: 1.848 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002009/1.717, allocations: 0.4905 MB / 0.6572 GB, free: 1.336 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006118/1.718, allocations: 35.98 kB / 0.6572 GB, free: 1.301 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002488/1.721, allocations: 107.8 kB / 0.6573 GB, free: 1.195 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005195/1.721, allocations: 117.1 kB / 0.6574 GB, free: 1.082 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001947/1.721, allocations: 43.98 kB / 0.6574 GB, free: 1.039 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004143/1.726, allocations: 1.306 MB / 0.6587 GB, free: 15.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.41e-07/1.726, allocations: 0 / 0.6587 GB, free: 15.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004159/1.73, allocations: 0.6327 MB / 0.6593 GB, free: 15.07 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 110 * 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 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01429/1.744, allocations: 5.956 MB / 0.6652 GB, free: 9.012 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007512/1.752, allocations: 2.539 MB / 0.6676 GB, free: 6.441 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/1.752, allocations: 1.062 kB / 0.6676 GB, free: 6.441 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004619/1.756, allocations: 1.605 MB / 0.6692 GB, free: 4.809 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004712/1.761, allocations: 0.4949 MB / 0.6697 GB, free: 4.312 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02004/1.781, allocations: 5.512 MB / 0.6751 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004426/1.786, allocations: 2.244 MB / 0.6773 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003385/1.789, allocations: 1.136 MB / 0.6784 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.794e-06/1.789, allocations: 0 / 0.6784 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.274/6.063, allocations: 89.51 MB / 0.7658 GB, free: 142.2 MB / 0.5261 GB