Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.015/2.015, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.501e-05/3.516e-05, allocations: 4 kB / 292.2 MB, free: 8.773 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 50.42 MB / 342.6 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.493/0.6013, allocations: 99.58 MB / 442.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.6016, allocations: 84.2 kB / 442.3 MB, free: 10.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1171/0.7188, allocations: 27.5 MB / 469.8 MB, free: 3.324 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.808e-06/0.7188, allocations: 0 / 469.8 MB, free: 3.324 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.907e-05/0.7189, allocations: 31.94 kB / 469.8 MB, free: 3.293 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002988/0.7219, allocations: 1.148 MB / 471 MB, free: 2.168 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.722, allocations: 12.03 kB / 471 MB, free: 2.156 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003274/0.7223, allocations: 146.9 kB / 471.1 MB, free: 2.066 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009984/0.7233, allocations: 194.3 kB / 471.3 MB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002584/0.7259, allocations: 0.834 MB / 472.2 MB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.063e-05/0.7261, allocations: 78.31 kB / 472.2 MB, free: 1.133 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002304/0.7263, allocations: 99.16 kB / 472.3 MB, free: 1.066 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002344/0.7287, allocations: 0.8934 MB / 473.2 MB, free: 152 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.555e-05/0.7288, allocations: 7.984 kB / 473.2 MB, free: 144 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/0.7289, allocations: 40 kB / 473.3 MB, free: 104 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.234e-05/0.7289, allocations: 24 kB / 473.3 MB, free: 80 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.7307, allocations: 0.5741 MB / 473.9 MB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008713/0.7394, allocations: 4.157 MB / 478 MB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/0.7409, allocations: 355.1 kB / 478.4 MB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003622/0.7412, allocations: 140.8 kB / 478.5 MB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-05/0.7413, allocations: 8 kB / 478.5 MB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.7414, allocations: 38.56 kB / 478.6 MB, free: 10.56 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 6.312e-06/0.7414, allocations: 0 / 478.6 MB, free: 10.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.002793/0.7442, allocations: 1.055 MB / 479.6 MB, free: 9.449 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.7443, allocations: 81.11 kB / 479.7 MB, free: 9.352 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/0.7459, allocations: 0.7448 MB / 480.4 MB, free: 8.582 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.254e-05/0.746, allocations: 33.7 kB / 480.5 MB, free: 8.543 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005327/0.7466, allocations: 0.6016 MB / 481.1 MB, free: 7.934 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.7467, allocations: 142 kB / 481.2 MB, free: 7.793 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.7468, allocations: 19.94 kB / 481.2 MB, free: 7.773 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.747, allocations: 338.8 kB / 481.6 MB, free: 7.434 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004231/0.7474, allocations: 145.6 kB / 481.7 MB, free: 7.293 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006913/0.7481, allocations: 457.1 kB / 482.2 MB, free: 6.699 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005786/0.7487, allocations: 220.1 kB / 482.4 MB, free: 6.484 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.7487, allocations: 4 kB / 482.4 MB, free: 6.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001597/0.7503, allocations: 0.6233 MB / 483 MB, free: 5.848 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001669/0.752, allocations: 4.091 MB / 487.1 MB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.232e-05/0.7521, allocations: 12 kB / 487.1 MB, free: 1.426 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002793/0.7524, allocations: 40.84 kB / 487.1 MB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.7536, allocations: 167.7 kB / 487.3 MB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.7549, allocations: 1.288 MB / 488.6 MB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.756, allocations: 35.98 kB / 488.6 MB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.506e-05/0.7561, allocations: 32 kB / 488.7 MB, free: 15.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.7562, allocations: 4 kB / 488.7 MB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001494/0.7577, allocations: 0.5786 MB / 489.2 MB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.7577, allocations: 15.98 kB / 489.3 MB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001457/0.7579, allocations: 33.53 kB / 489.3 MB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.759, allocations: 171.7 kB / 489.5 MB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.7602, allocations: 1.276 MB / 490.7 MB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005503/0.7608, allocations: 36.06 kB / 490.8 MB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.019e-05/0.7609, allocations: 36 kB / 490.8 MB, free: 13.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002429/0.7612, allocations: 148.7 kB / 490.9 MB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/0.7615, allocations: 94.83 kB / 491 MB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.7626, allocations: 399.7 kB / 491.4 MB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.7627, allocations: 8 kB / 491.4 MB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.7627, allocations: 3.984 kB / 491.4 MB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.7627, allocations: 0 / 491.4 MB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003046/0.7657, allocations: 1.298 MB / 492.7 MB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/0.7658, allocations: 4 kB / 492.7 MB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007435/0.7666, allocations: 75.91 kB / 492.8 MB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001405/0.7667, allocations: 20.84 kB / 492.8 MB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.773e-05/0.7668, allocations: 15.95 kB / 492.9 MB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.7681, allocations: 1.28 MB / 494.1 MB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.7681, allocations: 0 / 494.1 MB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.7697, allocations: 0.7374 MB / 494.9 MB, free: 9.059 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004641/0.7702, allocations: 203.9 kB / 495.1 MB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.7703, allocations: 11.98 kB / 495.1 MB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006818/0.771, allocations: 24 kB / 495.1 MB, free: 8.805 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.284e-05/0.7711, allocations: 23.95 kB / 495.1 MB, free: 8.781 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.846e-05/0.7712, allocations: 12 kB / 495.1 MB, free: 8.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001257/0.7725, allocations: 0.5665 MB / 495.7 MB, free: 8.188 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.02e-07/0.7725, allocations: 0 / 495.7 MB, free: 8.188 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001961/0.7744, allocations: 387.9 kB / 496.1 MB, free: 7.809 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002571/0.777, allocations: 1.975 MB / 498.1 MB, free: 5.758 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00222/0.7793, allocations: 0.8792 MB / 498.9 MB, free: 4.863 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.7793, allocations: 0 / 498.9 MB, free: 4.863 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005874/0.7799, allocations: 255.6 kB / 499.2 MB, free: 4.605 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.7818, allocations: 215.7 kB / 499.4 MB, free: 4.395 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004998/0.7869, allocations: 1.521 MB / 0.4892 GB, free: 2.801 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008811/0.7878, allocations: 1.044 MB / 0.4902 GB, free: 1.727 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008652/0.7887, allocations: 403.3 kB / 0.4906 GB, free: 1.332 MB / 410.7 MB Notification: Performance of SimCode: time 1.343e-06/0.7887, allocations: 0 / 0.4906 GB, free: 1.332 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.85/3.638, allocations: 21.49 MB / 0.5116 GB, free: 11.89 MB / 442.7 MB