Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.986/1.986, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.635e-05/3.645e-05, allocations: 5.562 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1168, allocations: 50.42 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5056/0.6224, allocations: 96.21 MB / 438.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003722/0.6228, allocations: 81.89 kB / 438.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.213/0.8359, allocations: 44.69 MB / 483.6 MB, free: 5.672 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.8359, allocations: 0 / 483.6 MB, free: 5.672 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001657/0.8361, allocations: 39.98 kB / 483.7 MB, free: 5.633 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005316/0.8414, allocations: 1.604 MB / 485.3 MB, free: 3.977 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.717e-05/0.8415, allocations: 12.02 kB / 485.3 MB, free: 3.965 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006222/0.8422, allocations: 215.9 kB / 485.5 MB, free: 3.742 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.8438, allocations: 285.5 kB / 485.8 MB, free: 3.461 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004157/0.8479, allocations: 1.204 MB / 487 MB, free: 2.199 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001366/0.8481, allocations: 115.1 kB / 487.1 MB, free: 2.086 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004148/0.8486, allocations: 163.9 kB / 487.2 MB, free: 1.926 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004125/0.8527, allocations: 1.409 MB / 488.7 MB, free: 468 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.879e-05/0.8528, allocations: 11.84 kB / 488.7 MB, free: 456 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000214/0.853, allocations: 64 kB / 488.7 MB, free: 392 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-05/0.8531, allocations: 36 kB / 488.8 MB, free: 356 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003196/0.8563, allocations: 0.9505 MB / 489.7 MB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01478/0.8711, allocations: 6.404 MB / 496.1 MB, free: 8.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002191/0.8734, allocations: 0.5558 MB / 496.7 MB, free: 8.109 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/0.8747, allocations: 415 kB / 497.1 MB, free: 7.703 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.32e-05/0.8748, allocations: 12.56 kB / 497.1 MB, free: 7.691 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.8749, allocations: 43.12 kB / 497.1 MB, free: 7.641 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.607e-06/0.8749, allocations: 0 / 497.1 MB, free: 7.641 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.005483/0.8804, allocations: 1.795 MB / 498.9 MB, free: 5.785 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.562e-05/0.8805, allocations: 111.6 kB / 499 MB, free: 5.652 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.8832, allocations: 1.082 MB / 0.4884 GB, free: 4.559 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.8834, allocations: 41.69 kB / 0.4884 GB, free: 4.512 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008393/0.8842, allocations: 0.8428 MB / 0.4893 GB, free: 3.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003471/0.8846, allocations: 260.3 kB / 0.4895 GB, free: 3.402 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.096e-05/0.8847, allocations: 24 kB / 0.4895 GB, free: 3.379 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.8849, allocations: 350.8 kB / 0.4899 GB, free: 3.027 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000773/0.8857, allocations: 250.6 kB / 0.4901 GB, free: 2.781 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.8868, allocations: 0.6967 MB / 0.4908 GB, free: 1.871 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.888, allocations: 373.9 kB / 0.4911 GB, free: 1.508 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-05/0.888, allocations: 4 kB / 0.4911 GB, free: 1.504 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003468/0.8915, allocations: 1.084 MB / 0.4922 GB, free: 412 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.8916, allocations: 12 kB / 0.4922 GB, free: 400 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.209e-05/0.8916, allocations: 16 kB / 0.4922 GB, free: 384 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006276/0.8923, allocations: 119.1 kB / 0.4923 GB, free: 256 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/0.8941, allocations: 259.6 kB / 0.4926 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005353/0.8995, allocations: 4.228 MB / 0.4967 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002639/0.9022, allocations: 68.03 kB / 0.4968 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000275/0.9025, allocations: 52 kB / 0.4968 GB, free: 11.25 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004222/0.903, allocations: 180.5 kB / 0.497 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005582/0.9035, allocations: 142.3 kB / 0.4971 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003637/0.9072, allocations: 0.7781 MB / 0.4979 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-05/0.9073, allocations: 8.125 kB / 0.4979 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.9073, allocations: 7.953 kB / 0.4979 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.107e-05/0.9073, allocations: 3.984 kB / 0.4979 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009061/0.9164, allocations: 2.252 MB / 0.5001 GB, free: 7.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-05/0.9165, allocations: 4 kB / 0.5001 GB, free: 7.727 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001815/0.9183, allocations: 132.3 kB / 0.5002 GB, free: 7.598 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009368/0.9193, allocations: 114.5 kB / 0.5004 GB, free: 7.477 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/0.9195, allocations: 16 kB / 0.5004 GB, free: 7.461 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007481/0.927, allocations: 4.337 MB / 0.5046 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.088e-05/0.9271, allocations: 4 kB / 0.5046 GB, free: 2.719 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005074/0.9321, allocations: 1.434 MB / 0.506 GB, free: 1.094 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.9334, allocations: 279.4 kB / 0.5063 GB, free: 0.8008 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003547/0.9338, allocations: 20 kB / 0.5063 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.935, allocations: 51.92 kB / 0.5063 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.9352, allocations: 56.42 kB / 0.5064 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.318e-05/0.9353, allocations: 24 kB / 0.5064 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002007/0.9373, allocations: 0.8218 MB / 0.5072 GB, free: 15.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.006e-06/0.9374, allocations: 0 / 0.5072 GB, free: 15.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002295/0.9397, allocations: 379.9 kB / 0.5076 GB, free: 15.45 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004917/0.9446, allocations: 3.254 MB / 0.5108 GB, free: 12.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002592/0.9473, allocations: 1.01 MB / 0.5118 GB, free: 11.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/0.9473, allocations: 0 / 0.5118 GB, free: 11.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.9488, allocations: 0.6464 MB / 0.5124 GB, free: 10.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002824/0.9516, allocations: 333 kB / 0.5127 GB, free: 10.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0099/0.9616, allocations: 2.581 MB / 0.5152 GB, free: 7.355 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.9629, allocations: 1.245 MB / 0.5164 GB, free: 6.078 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/0.9644, allocations: 0.6399 MB / 0.5171 GB, free: 5.438 MB / 442.7 MB Notification: Performance of SimCode: time 1.312e-06/0.9644, allocations: 0 / 0.5171 GB, free: 5.438 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.544/4.508, allocations: 46.89 MB / 0.5628 GB, free: 112 MB / 442.7 MB