Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.62e-05/3.636e-05, allocations: 5.391 kB / 292.2 MB, free: 8.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1031, allocations: 50.41 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4565/0.5596, allocations: 95.96 MB / 438.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003127/0.56, allocations: 85.19 kB / 438.7 MB, free: 14.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.184/0.744, allocations: 40.74 MB / 479.4 MB, free: 9.875 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.744, allocations: 0 / 479.4 MB, free: 9.875 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001659/0.7442, allocations: 32.44 kB / 479.5 MB, free: 9.844 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005262/0.7495, allocations: 1.557 MB / 481 MB, free: 8.227 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.7496, allocations: 8.031 kB / 481 MB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007478/0.7503, allocations: 227.9 kB / 481.2 MB, free: 7.984 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001459/0.7518, allocations: 257.6 kB / 481.5 MB, free: 7.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003724/0.7556, allocations: 1.09 MB / 482.6 MB, free: 6.594 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.7558, allocations: 115.1 kB / 482.7 MB, free: 6.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003906/0.7562, allocations: 159.9 kB / 482.9 MB, free: 6.324 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004181/0.7604, allocations: 1.411 MB / 484.3 MB, free: 4.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.093e-05/0.7605, allocations: 15.83 kB / 484.3 MB, free: 4.824 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002192/0.7608, allocations: 64 kB / 484.3 MB, free: 4.762 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.964e-05/0.7608, allocations: 40 kB / 484.4 MB, free: 4.723 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003095/0.7639, allocations: 0.8839 MB / 485.3 MB, free: 3.836 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01504/0.779, allocations: 6.656 MB / 491.9 MB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.7802, allocations: 363.4 kB / 492.3 MB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.7808, allocations: 202.1 kB / 492.5 MB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.146e-05/0.7808, allocations: 4.438 kB / 492.5 MB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006116/0.7814, allocations: 260.7 kB / 492.7 MB, free: 11.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 3.316e-06/0.7815, allocations: 0 / 492.7 MB, free: 11.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.004575/0.7861, allocations: 1.616 MB / 494.3 MB, free: 10.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.7862, allocations: 192.5 kB / 494.5 MB, free: 10.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002545/0.7888, allocations: 1.065 MB / 495.6 MB, free: 8.992 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.789, allocations: 37.7 kB / 495.6 MB, free: 8.949 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009572/0.7899, allocations: 0.8497 MB / 496.5 MB, free: 8.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003217/0.7903, allocations: 205.2 kB / 496.7 MB, free: 7.887 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.255e-05/0.7904, allocations: 28 kB / 496.7 MB, free: 7.859 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.7906, allocations: 350.8 kB / 497.1 MB, free: 7.508 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007077/0.7913, allocations: 210.6 kB / 497.3 MB, free: 7.301 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.7925, allocations: 0.7736 MB / 498 MB, free: 6.246 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.7936, allocations: 388.7 kB / 498.4 MB, free: 5.859 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-05/0.7936, allocations: 4 kB / 498.4 MB, free: 5.855 MB / 410.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002918/0.7965, allocations: 1.014 MB / 499.4 MB, free: 4.828 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.225e-05/0.7967, allocations: 37.7 kB / 499.5 MB, free: 4.785 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-05/0.7967, allocations: 20 kB / 499.5 MB, free: 4.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003404/0.7971, allocations: 70.2 kB / 499.6 MB, free: 4.691 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/0.7988, allocations: 271.6 kB / 499.8 MB, free: 4.426 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002601/0.8014, allocations: 2.568 MB / 0.4906 GB, free: 1.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.8033, allocations: 72.12 kB / 0.4907 GB, free: 1.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002161/0.8036, allocations: 64.09 kB / 0.4907 GB, free: 1.457 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003427/0.804, allocations: 200.4 kB / 0.4909 GB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003533/0.8043, allocations: 134.3 kB / 0.4911 GB, free: 1.121 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001555/0.8059, allocations: 0.5136 MB / 0.4916 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-05/0.806, allocations: 8 kB / 0.4916 GB, free: 0.582 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.806, allocations: 0 / 0.4916 GB, free: 0.582 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.806, allocations: 3.984 kB / 0.4916 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004693/0.8107, allocations: 1.885 MB / 0.4934 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.8108, allocations: 4 kB / 0.4934 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008848/0.8116, allocations: 108.3 kB / 0.4935 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002436/0.8119, allocations: 41.7 kB / 0.4936 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.892e-05/0.812, allocations: 19.98 kB / 0.4936 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002854/0.8148, allocations: 2.549 MB / 0.4961 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.157e-05/0.8149, allocations: 11.88 kB / 0.4961 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002869/0.8178, allocations: 1.069 MB / 0.4971 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008328/0.8187, allocations: 251.5 kB / 0.4974 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/0.819, allocations: 16 kB / 0.4974 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/0.8203, allocations: 43.92 kB / 0.4974 GB, free: 9.992 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.8206, allocations: 51.88 kB / 0.4975 GB, free: 9.941 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-05/0.8206, allocations: 16 kB / 0.4975 GB, free: 9.926 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002442/0.8231, allocations: 0.7936 MB / 0.4983 GB, free: 9.129 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.8231, allocations: 0 / 0.4983 GB, free: 9.129 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002625/0.8258, allocations: 343.9 kB / 0.4986 GB, free: 8.793 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00439/0.8302, allocations: 2.84 MB / 0.5014 GB, free: 5.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002975/0.8332, allocations: 0.8284 MB / 0.5022 GB, free: 4.961 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/0.8332, allocations: 5.312 kB / 0.5022 GB, free: 4.957 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.8346, allocations: 431.9 kB / 0.5026 GB, free: 4.516 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003556/0.8382, allocations: 309.1 kB / 0.5029 GB, free: 4.215 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00952/0.8477, allocations: 2.161 MB / 0.505 GB, free: 1.953 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001617/0.8494, allocations: 1.209 MB / 0.5062 GB, free: 0.7148 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001704/0.8511, allocations: 0.5891 MB / 0.5068 GB, free: 128 kB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/0.8511, allocations: 4 kB / 0.5068 GB, free: 124 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.414/4.265, allocations: 37.49 MB / 0.5434 GB, free: 116.5 MB / 442.7 MB