Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.391/2.391, allocations: 270 MB / 283.6 MB, free: 3.121 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.088e-05/4.09e-05, allocations: 7.984 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1253, allocations: 61.88 MB / 410.4 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5393/0.6647, allocations: 123.4 MB / 0.5212 GB, free: 12.62 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.665, allocations: 75.95 kB / 0.5213 GB, free: 12.54 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2946/0.9597, allocations: 62.26 MB / 0.5821 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.114e-06/0.9598, allocations: 0 / 0.5821 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003521/0.9601, allocations: 83.88 kB / 0.5822 GB, free: 13.82 MB / 0.4948 GB 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.01091/0.9711, allocations: 2.923 MB / 0.585 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.9711, allocations: 12.02 kB / 0.5851 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001243/0.9724, allocations: 413 kB / 0.5854 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001707/0.9741, allocations: 399.6 kB / 0.5858 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007002/0.9811, allocations: 2.153 MB / 0.5879 GB, free: 7.809 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000246/0.9814, allocations: 218 kB / 0.5881 GB, free: 7.594 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007446/0.9822, allocations: 283.9 kB / 0.5884 GB, free: 7.316 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009349/0.9916, allocations: 3.594 MB / 0.5919 GB, free: 3.582 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001038/0.9917, allocations: 7.906 kB / 0.5919 GB, free: 3.574 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004439/0.9922, allocations: 120 kB / 0.592 GB, free: 3.457 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002054/0.9924, allocations: 129.5 kB / 0.5922 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008399/1.001, allocations: 2.889 MB / 0.595 GB, free: 444 kB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02996/1.031, allocations: 11.63 MB / 0.6063 GB, free: 4.496 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006338/1.037, allocations: 2.176 MB / 0.6085 GB, free: 2.199 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002899/1.04, allocations: 1.063 MB / 0.6095 GB, free: 1.141 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005452/1.041, allocations: 223.5 kB / 0.6097 GB, free: 0.8867 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.858e-05/1.041, allocations: 47.86 kB / 0.6098 GB, free: 0.8281 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=142): time 4.598e-06/1.041, allocations: 0 / 0.6098 GB, free: 0.8281 MB / 0.5105 GB Notification: Performance of matching and sorting (n=156): time 0.3598/1.401, allocations: 6.065 MB / 0.6157 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/1.401, allocations: 66.72 kB / 0.6158 GB, free: 128 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00631/1.407, allocations: 1.688 MB / 0.6174 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004974/1.408, allocations: 54.58 kB / 0.6175 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001867/1.409, allocations: 1.368 MB / 0.6188 GB, free: 127.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001124/1.411, allocations: 0.5348 MB / 0.6193 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002635/1.411, allocations: 36.25 kB / 0.6193 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002112/1.411, allocations: 372.8 kB / 0.6197 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003292/1.414, allocations: 0.8746 MB / 0.6206 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003854/1.418, allocations: 1.298 MB / 0.6218 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004452/1.423, allocations: 1.101 MB / 0.6229 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.195e-05/1.423, allocations: 8.578 kB / 0.6229 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01273/1.436, allocations: 2.845 MB / 0.6257 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.774e-05/1.436, allocations: 11 kB / 0.6257 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.077e-05/1.436, allocations: 16.78 kB / 0.6257 GB, free: 126.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00267/1.439, allocations: 448.8 kB / 0.6261 GB, free: 126 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005326/1.444, allocations: 458.1 kB / 0.6266 GB, free: 126 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01498/1.459, allocations: 7.031 MB / 0.6334 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004201/1.463, allocations: 131.6 kB / 0.6336 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003598/1.464, allocations: 73.86 kB / 0.6336 GB, free: 122.1 MB / 0.5105 GB 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.0007098/1.464, allocations: 217.5 kB / 0.6338 GB, free: 122 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008263/1.465, allocations: 207.7 kB / 0.634 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/1.478, allocations: 2.961 MB / 0.6369 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-05/1.478, allocations: 15.22 kB / 0.6369 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.017e-05/1.478, allocations: 11.47 kB / 0.637 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.836e-05/1.478, allocations: 9 kB / 0.637 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02052/1.498, allocations: 6.126 MB / 0.643 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.761e-05/1.498, allocations: 2.438 kB / 0.643 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002163/1.5, allocations: 239.2 kB / 0.6432 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003922/1.504, allocations: 0.8263 MB / 0.644 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004322/1.505, allocations: 42.83 kB / 0.644 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01775/1.523, allocations: 10.19 MB / 0.654 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.523, allocations: 7.188 kB / 0.654 GB, free: 113.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/1.533, allocations: 4.39 MB / 0.6583 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/1.535, allocations: 0.4898 MB / 0.6588 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005372/1.535, allocations: 31.72 kB / 0.6588 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002136/1.538, allocations: 103.3 kB / 0.6589 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003771/1.538, allocations: 123.2 kB / 0.659 GB, free: 111 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/1.538, allocations: 52.75 kB / 0.6591 GB, free: 111 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002737/1.541, allocations: 1.298 MB / 0.6603 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.81e-07/1.541, allocations: 0 / 0.6603 GB, free: 110.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003536/1.544, allocations: 0.6341 MB / 0.6609 GB, free: 110.4 MB / 0.5105 GB 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.0106/1.555, allocations: 5.956 MB / 0.6668 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0056/1.561, allocations: 2.554 MB / 0.6692 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/1.561, allocations: 0 / 0.6692 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003321/1.564, allocations: 1.61 MB / 0.6708 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00382/1.568, allocations: 496.2 kB / 0.6713 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/1.582, allocations: 5.488 MB / 0.6767 GB, free: 103 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002341/1.584, allocations: 2.267 MB / 0.6789 GB, free: 102 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002486/1.586, allocations: 470.8 kB / 0.6793 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002011/1.588, allocations: 1.126 MB / 0.6804 GB, free: 101 MB / 0.5105 GB Notification: Performance of SimCode: time 1.133e-06/1.588, allocations: 0 / 0.6804 GB, free: 101 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.128/1.716, allocations: 57.02 MB / 0.7361 GB, free: 62.95 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002638/1.717, allocations: 186.5 kB / 0.7363 GB, free: 62.73 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.396/6.113, allocations: 0 / 0.7363 GB, free: 62.73 MB / 0.5105 GB