Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.871e-05/3.88e-05, allocations: 7.938 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 50.4 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4942/0.6043, allocations: 107.9 MB / 450.5 MB, free: 2.668 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.6047, allocations: 86.2 kB / 450.6 MB, free: 2.625 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.251/0.8557, allocations: 58.24 MB / 0.4969 GB, free: 12.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.8557, allocations: 0 / 0.4969 GB, free: 12.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003609/0.8561, allocations: 83.81 kB / 0.497 GB, free: 12.35 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.0113/0.8674, allocations: 2.888 MB / 0.4998 GB, free: 9.402 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.8675, allocations: 16.03 kB / 0.4998 GB, free: 9.387 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001714/0.8692, allocations: 412.8 kB / 0.5002 GB, free: 8.973 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002389/0.8717, allocations: 407.5 kB / 0.5006 GB, free: 8.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007534/0.8792, allocations: 2.051 MB / 0.5026 GB, free: 6.465 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003327/0.8796, allocations: 209.7 kB / 0.5028 GB, free: 6.258 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00125/0.8809, allocations: 288 kB / 0.5031 GB, free: 5.977 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/0.8935, allocations: 3.713 MB / 0.5067 GB, free: 2.102 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/0.8937, allocations: 7.906 kB / 0.5067 GB, free: 2.094 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000661/0.8944, allocations: 120 kB / 0.5069 GB, free: 1.977 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001948/0.8946, allocations: 125.5 kB / 0.507 GB, free: 1.852 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/0.9048, allocations: 2.947 MB / 0.5099 GB, free: 14.89 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03381/0.9387, allocations: 11.78 MB / 0.5214 GB, free: 2.809 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3247/1.263, allocations: 3.632 MB / 0.5249 GB, free: 105.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003526/1.267, allocations: 1.127 MB / 0.526 GB, free: 105.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000432/1.268, allocations: 141.2 kB / 0.5261 GB, free: 105.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.403e-05/1.268, allocations: 49.69 kB / 0.5262 GB, free: 105.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 4.339e-06/1.268, allocations: 0.8438 kB / 0.5262 GB, free: 105.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.02342/1.291, allocations: 6.504 MB / 0.5325 GB, free: 105 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/1.291, allocations: 66.02 kB / 0.5326 GB, free: 104.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004414/1.296, allocations: 1.785 MB / 0.5343 GB, free: 104.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003732/1.296, allocations: 57.39 kB / 0.5344 GB, free: 104.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/1.297, allocations: 1.272 MB / 0.5356 GB, free: 104.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007599/1.298, allocations: 0.5385 MB / 0.5362 GB, free: 103.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/1.298, allocations: 36.88 kB / 0.5362 GB, free: 103.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/1.298, allocations: 385 kB / 0.5366 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002288/1.301, allocations: 0.8827 MB / 0.5374 GB, free: 103.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002608/1.303, allocations: 1.326 MB / 0.5387 GB, free: 103 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002778/1.306, allocations: 1.115 MB / 0.5398 GB, free: 103 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.67e-05/1.306, allocations: 3.781 kB / 0.5398 GB, free: 103 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.009304/1.315, allocations: 3.199 MB / 0.5429 GB, free: 102.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.579e-05/1.315, allocations: 15.06 kB / 0.543 GB, free: 102.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.906e-05/1.315, allocations: 13.95 kB / 0.543 GB, free: 102.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004746/1.32, allocations: 1.029 MB / 0.544 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/1.323, allocations: 333.4 kB / 0.5443 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02262/1.345, allocations: 19.2 MB / 0.563 GB, free: 89.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002727/1.348, allocations: 99.17 kB / 0.5631 GB, free: 89.76 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002292/1.348, allocations: 76.88 kB / 0.5632 GB, free: 89.76 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004895/1.349, allocations: 222.5 kB / 0.5634 GB, free: 89.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005812/1.349, allocations: 214.7 kB / 0.5636 GB, free: 89.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007112/1.357, allocations: 2.799 MB / 0.5664 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/1.357, allocations: 18.16 kB / 0.5664 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.776e-05/1.357, allocations: 10.75 kB / 0.5664 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.082e-05/1.357, allocations: 7.641 kB / 0.5664 GB, free: 88.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0154/1.372, allocations: 5.988 MB / 0.5722 GB, free: 86.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/1.372, allocations: 0 / 0.5722 GB, free: 86.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/1.374, allocations: 193.5 kB / 0.5724 GB, free: 86.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004004/1.378, allocations: 0.918 MB / 0.5733 GB, free: 85.97 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002314/1.378, allocations: 36.81 kB / 0.5734 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01975/1.398, allocations: 17.09 MB / 0.59 GB, free: 72.17 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.398, allocations: 0 / 0.59 GB, free: 72.17 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009027/1.407, allocations: 4.124 MB / 0.5941 GB, free: 70.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/1.409, allocations: 493 kB / 0.5945 GB, free: 70.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005862/1.409, allocations: 33.78 kB / 0.5946 GB, free: 70 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002057/1.411, allocations: 117.7 kB / 0.5947 GB, free: 69.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005001/1.412, allocations: 146.6 kB / 0.5948 GB, free: 69.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/1.412, allocations: 47.67 kB / 0.5949 GB, free: 69.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002913/1.415, allocations: 1.347 MB / 0.5962 GB, free: 69.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.51e-07/1.415, allocations: 0 / 0.5962 GB, free: 69.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004314/1.419, allocations: 0.7323 MB / 0.5969 GB, free: 69.33 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01068/1.43, allocations: 5.558 MB / 0.6023 GB, free: 66.37 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007506/1.438, allocations: 3.413 MB / 0.6057 GB, free: 64.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/1.438, allocations: 0 / 0.6057 GB, free: 64.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004248/1.442, allocations: 2.165 MB / 0.6078 GB, free: 63.12 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005125/1.447, allocations: 0.64 MB / 0.6084 GB, free: 62.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01494/1.462, allocations: 5.371 MB / 0.6136 GB, free: 60.78 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002764/1.465, allocations: 2.318 MB / 0.6159 GB, free: 58.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002192/1.467, allocations: 1.086 MB / 0.617 GB, free: 57.95 MB / 442.7 MB Notification: Performance of SimCode: time 1.352e-06/1.467, allocations: 0 / 0.617 GB, free: 57.95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.792/6.26, allocations: 181 MB / 0.7937 GB, free: 65.24 MB / 458.7 MB