Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.46/2.46, allocations: 270 MB / 283.6 MB, free: 3.137 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.559e-05/3.574e-05, allocations: 0 / 348.5 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1343, allocations: 61.88 MB / 410.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.634/0.7684, allocations: 123.4 MB / 0.5212 GB, free: 12.54 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.7688, allocations: 79.95 kB / 0.5213 GB, free: 12.46 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2807/1.049, allocations: 62.25 MB / 0.5821 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.404e-06/1.05, allocations: 0 / 0.5821 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004111/1.05, allocations: 87.88 kB / 0.5822 GB, free: 13.75 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.01148/1.061, allocations: 2.927 MB / 0.585 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/1.062, allocations: 12.03 kB / 0.5851 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001705/1.063, allocations: 401 kB / 0.5854 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002398/1.066, allocations: 399.6 kB / 0.5858 GB, free: 9.945 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008298/1.074, allocations: 2.161 MB / 0.5879 GB, free: 7.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003323/1.074, allocations: 210 kB / 0.5881 GB, free: 7.523 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001203/1.076, allocations: 295.8 kB / 0.5884 GB, free: 7.234 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/1.088, allocations: 3.578 MB / 0.5919 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001573/1.088, allocations: 15.91 kB / 0.5919 GB, free: 3.5 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000723/1.089, allocations: 116 kB / 0.592 GB, free: 3.387 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002325/1.089, allocations: 145.5 kB / 0.5922 GB, free: 3.242 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01044/1.099, allocations: 2.881 MB / 0.595 GB, free: 364 kB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03573/1.135, allocations: 11.63 MB / 0.6063 GB, free: 4.418 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006705/1.142, allocations: 2.164 MB / 0.6085 GB, free: 2.125 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002912/1.145, allocations: 1.071 MB / 0.6095 GB, free: 1.055 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005589/1.146, allocations: 223.5 kB / 0.6097 GB, free: 0.8008 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.68e-05/1.146, allocations: 55.88 kB / 0.6098 GB, free: 0.7344 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=142): time 4.939e-06/1.146, allocations: 0 / 0.6098 GB, free: 0.7344 MB / 0.5105 GB Notification: Performance of matching and sorting (n=156): time 0.379/1.525, allocations: 6.058 MB / 0.6157 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/1.525, allocations: 68.33 kB / 0.6157 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004805/1.53, allocations: 1.691 MB / 0.6174 GB, free: 127.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004539/1.53, allocations: 50.16 kB / 0.6174 GB, free: 127.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001391/1.532, allocations: 1.367 MB / 0.6188 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008765/1.532, allocations: 0.5317 MB / 0.6193 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/1.533, allocations: 36.16 kB / 0.6193 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001632/1.533, allocations: 379.9 kB / 0.6197 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002421/1.535, allocations: 0.871 MB / 0.6205 GB, free: 126.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002867/1.538, allocations: 1.301 MB / 0.6218 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003027/1.541, allocations: 1.104 MB / 0.6229 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.59e-05/1.541, allocations: 4.125 kB / 0.6229 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.009023/1.55, allocations: 2.845 MB / 0.6257 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/1.55, allocations: 10.91 kB / 0.6257 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.534e-05/1.55, allocations: 15.12 kB / 0.6257 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001973/1.552, allocations: 452.2 kB / 0.6261 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003917/1.556, allocations: 459.6 kB / 0.6266 GB, free: 125.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01103/1.567, allocations: 7.029 MB / 0.6334 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003365/1.571, allocations: 123.6 kB / 0.6336 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006306/1.572, allocations: 75.52 kB / 0.6336 GB, free: 121.7 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.0006089/1.572, allocations: 215.2 kB / 0.6338 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008611/1.573, allocations: 209.2 kB / 0.634 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009208/1.582, allocations: 2.962 MB / 0.6369 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.706e-05/1.582, allocations: 20.03 kB / 0.6369 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.177e-05/1.582, allocations: 7.625 kB / 0.6369 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.731e-05/1.583, allocations: 8.016 kB / 0.637 GB, free: 121.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01834/1.601, allocations: 6.125 MB / 0.6429 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/1.601, allocations: 3.938 kB / 0.6429 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002222/1.603, allocations: 241.3 kB / 0.6432 GB, free: 120 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003998/1.607, allocations: 0.8257 MB / 0.644 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003761/1.608, allocations: 35.09 kB / 0.644 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01756/1.625, allocations: 10.21 MB / 0.654 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.351e-06/1.625, allocations: 5.594 kB / 0.654 GB, free: 113.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01057/1.636, allocations: 4.389 MB / 0.6583 GB, free: 111.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001963/1.638, allocations: 499.2 kB / 0.6587 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008408/1.639, allocations: 38.17 kB / 0.6588 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002738/1.642, allocations: 100.6 kB / 0.6589 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005841/1.642, allocations: 124.7 kB / 0.659 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001847/1.642, allocations: 48.17 kB / 0.659 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003158/1.646, allocations: 1.298 MB / 0.6603 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.112e-06/1.646, allocations: 0 / 0.6603 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003915/1.65, allocations: 0.6302 MB / 0.6609 GB, free: 110.3 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.01173/1.661, allocations: 5.957 MB / 0.6667 GB, free: 107 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006192/1.668, allocations: 2.549 MB / 0.6692 GB, free: 106 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/1.668, allocations: 0 / 0.6692 GB, free: 106 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003861/1.671, allocations: 1.617 MB / 0.6708 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004692/1.676, allocations: 494.8 kB / 0.6713 GB, free: 105 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01721/1.693, allocations: 5.484 MB / 0.6766 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003212/1.697, allocations: 2.273 MB / 0.6789 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002769/1.7, allocations: 458.6 kB / 0.6793 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002671/1.702, allocations: 1.134 MB / 0.6804 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.353e-06/1.702, allocations: 0 / 0.6804 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1616/1.864, allocations: 57.02 MB / 0.7361 GB, free: 62.79 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002425/1.864, allocations: 182.9 kB / 0.7363 GB, free: 62.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.588/6.452, allocations: 0 / 0.7363 GB, free: 62.57 MB / 0.5105 GB