Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.605/2.605, allocations: 235.1 MB / 242.3 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.275e-05/2.284e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4001/0.4001, allocations: 54.85 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5554/0.9556, allocations: 116.8 MB / 471.2 MB, free: 47.33 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.9559, allocations: 75.98 kB / 471.3 MB, free: 47.33 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2647/1.221, allocations: 60.96 MB / 0.5198 GB, free: 33.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.086e-06/1.221, allocations: 0 / 0.5198 GB, free: 33.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004102/1.221, allocations: 80.72 kB / 0.5199 GB, free: 33.12 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01144/1.233, allocations: 2.896 MB / 0.5227 GB, free: 31.42 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/1.233, allocations: 11.62 kB / 0.5227 GB, free: 31.42 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002552/1.235, allocations: 404 kB / 0.5231 GB, free: 31.22 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008178/1.243, allocations: 2.144 MB / 0.5252 GB, free: 30.31 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002092/1.244, allocations: 90.47 kB / 0.5253 GB, free: 30.29 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/1.245, allocations: 171.7 kB / 0.5254 GB, free: 30.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008989/1.254, allocations: 2.728 MB / 0.5281 GB, free: 27.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/1.265, allocations: 3.211 MB / 0.5312 GB, free: 24.17 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001449/1.265, allocations: 4 kB / 0.5312 GB, free: 24.17 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004707/1.266, allocations: 4 kB / 0.5312 GB, free: 24.16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000188/1.266, allocations: 133.4 kB / 0.5314 GB, free: 24.03 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03173/1.298, allocations: 11.06 MB / 0.5422 GB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006299/1.304, allocations: 2.17 MB / 0.5443 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002658/1.307, allocations: 1.036 MB / 0.5453 GB, free: 9.367 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005661/1.307, allocations: 235.4 kB / 0.5455 GB, free: 9.098 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/1.308, allocations: 51.81 kB / 0.5456 GB, free: 9.039 MB / 394.7 MB Notification: Performance of pre-optimization done (n=147): time 5.801e-06/1.308, allocations: 0 / 0.5456 GB, free: 9.039 MB / 394.7 MB Notification: Performance of matching and sorting (n=161): time 0.01756/1.325, allocations: 5.572 MB / 0.551 GB, free: 3.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/1.325, allocations: 72.67 kB / 0.5511 GB, free: 3.328 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003309/1.329, allocations: 1.431 MB / 0.5525 GB, free: 1.898 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004304/1.329, allocations: 29.7 kB / 0.5525 GB, free: 1.863 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/1.33, allocations: 1.35 MB / 0.5538 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000766/1.331, allocations: 0.5236 MB / 0.5543 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/1.331, allocations: 0 / 0.5543 GB, free: 15.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002391/1.331, allocations: 377.9 kB / 0.5547 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002492/1.334, allocations: 0.8474 MB / 0.5555 GB, free: 14.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002921/1.337, allocations: 1.284 MB / 0.5568 GB, free: 13.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003219/1.34, allocations: 1.077 MB / 0.5578 GB, free: 12.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.17e-05/1.34, allocations: 7.938 kB / 0.5578 GB, free: 12.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.009433/1.35, allocations: 2.723 MB / 0.5605 GB, free: 9.453 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.359e-05/1.35, allocations: 13.03 kB / 0.5605 GB, free: 9.441 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.585e-05/1.35, allocations: 19.98 kB / 0.5605 GB, free: 9.422 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002109/1.352, allocations: 446.1 kB / 0.5609 GB, free: 8.977 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004255/1.356, allocations: 459.3 kB / 0.5614 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/1.368, allocations: 6.733 MB / 0.568 GB, free: 1.441 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003074/1.372, allocations: 95.83 kB / 0.5681 GB, free: 1.348 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003165/1.372, allocations: 75.98 kB / 0.5681 GB, free: 1.273 MB / 410.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: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 206 * 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.0005799/1.373, allocations: 148.5 kB / 0.5683 GB, free: 1.121 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009385/1.382, allocations: 2.659 MB / 0.5709 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.383, allocations: 189.7 kB / 0.571 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009927/1.393, allocations: 2.847 MB / 0.5738 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.195e-05/1.393, allocations: 16 kB / 0.5738 GB, free: 11.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.603e-05/1.393, allocations: 11.95 kB / 0.5738 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.779e-05/1.393, allocations: 7.969 kB / 0.5739 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02058/1.414, allocations: 5.698 MB / 0.5794 GB, free: 5.551 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/1.414, allocations: 4 kB / 0.5794 GB, free: 5.547 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00258/1.416, allocations: 243.6 kB / 0.5797 GB, free: 5.309 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004517/1.421, allocations: 0.8382 MB / 0.5805 GB, free: 4.461 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000375/1.421, allocations: 15.98 kB / 0.5805 GB, free: 4.445 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02243/1.444, allocations: 10.01 MB / 0.5903 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/1.444, allocations: 0 / 0.5903 GB, free: 10.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01316/1.457, allocations: 4.339 MB / 0.5945 GB, free: 5.617 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0021/1.459, allocations: 490.5 kB / 0.595 GB, free: 5.117 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008587/1.46, allocations: 4 kB / 0.595 GB, free: 5.113 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002779/1.463, allocations: 83.86 kB / 0.5951 GB, free: 5.031 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006876/1.464, allocations: 121.1 kB / 0.5952 GB, free: 4.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002219/1.464, allocations: 48.03 kB / 0.5952 GB, free: 4.863 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003538/1.467, allocations: 1.09 MB / 0.5963 GB, free: 3.781 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.467, allocations: 0 / 0.5963 GB, free: 3.781 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004234/1.472, allocations: 0.5351 MB / 0.5968 GB, free: 3.246 MB / 442.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,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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.01438/1.486, allocations: 5.879 MB / 0.6025 GB, free: 13.26 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007379/1.494, allocations: 2.519 MB / 0.605 GB, free: 10.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/1.494, allocations: 0 / 0.605 GB, free: 10.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004825/1.498, allocations: 1.607 MB / 0.6066 GB, free: 9.07 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004353/1.503, allocations: 409.6 kB / 0.607 GB, free: 8.672 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01801/1.521, allocations: 5.333 MB / 0.6122 GB, free: 3.254 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003759/1.525, allocations: 2.263 MB / 0.6144 GB, free: 0.9609 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003468/1.528, allocations: 468.4 kB / 0.6148 GB, free: 0.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003726/1.532, allocations: 1.12 MB / 0.6159 GB, free: 15.38 MB / 474.7 MB Notification: Performance of SimCode: time 2.134e-06/1.532, allocations: 0 / 0.6159 GB, free: 15.38 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5508/2.083, allocations: 49 MB / 0.6638 GB, free: 116.9 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002318/2.083, allocations: 168 kB / 0.6639 GB, free: 116.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.495/6.578, allocations: 0 / 0.6639 GB, free: 116.7 MB / 474.7 MB