Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DC_CompareCharacteristics,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DC_CompareCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.229/2.229, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.196e-05/3.2e-05, allocations: 4 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1202, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.469/0.5892, allocations: 112 MB / 454.6 MB, free: 14.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/0.5896, allocations: 78.08 kB / 454.7 MB, free: 14.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3031/0.8928, allocations: 70.73 MB / 0.5131 GB, free: 11.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.8928, allocations: 0 / 0.5131 GB, free: 11.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002607/0.8931, allocations: 60 kB / 0.5132 GB, free: 11.59 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 666 * Number of variables: 666 Notification: Performance of Generate backend data structure: time 0.008042/0.9012, allocations: 2.415 MB / 0.5155 GB, free: 9.113 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/0.9012, allocations: 8.031 kB / 0.5155 GB, free: 9.105 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001308/0.9026, allocations: 359 kB / 0.5159 GB, free: 8.746 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003187/0.9058, allocations: 483.7 kB / 0.5163 GB, free: 8.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007633/0.9135, allocations: 1.876 MB / 0.5182 GB, free: 6.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003131/0.9138, allocations: 193.2 kB / 0.5183 GB, free: 6.148 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009992/0.9148, allocations: 259.9 kB / 0.5186 GB, free: 5.895 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008031/0.9229, allocations: 2.339 MB / 0.5209 GB, free: 3.434 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001223/0.9231, allocations: 7.906 kB / 0.5209 GB, free: 3.426 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003584/0.9235, allocations: 112 kB / 0.521 GB, free: 3.316 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-05/0.9235, allocations: 64 kB / 0.521 GB, free: 3.254 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005488/0.929, allocations: 1.509 MB / 0.5225 GB, free: 1.738 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3215/1.251, allocations: 10.73 MB / 0.533 GB, free: 97.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/1.252, allocations: 0.9303 MB / 0.5339 GB, free: 96.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007625/1.253, allocations: 346.6 kB / 0.5342 GB, free: 96.63 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.255e-05/1.253, allocations: 9.75 kB / 0.5343 GB, free: 96.63 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/1.253, allocations: 45.89 kB / 0.5343 GB, free: 96.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 3.206e-06/1.253, allocations: 0 / 0.5343 GB, free: 96.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.006264/1.26, allocations: 2.24 MB / 0.5365 GB, free: 95.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.153e-05/1.26, allocations: 164.8 kB / 0.5366 GB, free: 95.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004747/1.264, allocations: 1.815 MB / 0.5384 GB, free: 95.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002004/1.265, allocations: 44.73 kB / 0.5385 GB, free: 95.35 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/1.266, allocations: 1.382 MB / 0.5398 GB, free: 94.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004492/1.266, allocations: 339 kB / 0.5401 GB, free: 94.62 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/1.267, allocations: 36.81 kB / 0.5402 GB, free: 94.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/1.267, allocations: 382.1 kB / 0.5405 GB, free: 94.31 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009135/1.268, allocations: 331.4 kB / 0.5408 GB, free: 94.31 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/1.269, allocations: 1.195 MB / 0.542 GB, free: 93.19 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/1.271, allocations: 0.5527 MB / 0.5425 GB, free: 93.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.622e-05/1.271, allocations: 8.375 kB / 0.5426 GB, free: 93.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00451/1.275, allocations: 1.566 MB / 0.5441 GB, free: 93.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002623/1.278, allocations: 11.83 MB / 0.5556 GB, free: 80.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001432/1.278, allocations: 34.47 kB / 0.5557 GB, free: 80.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/1.279, allocations: 169.6 kB / 0.5558 GB, free: 80.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002733/1.282, allocations: 419.8 kB / 0.5562 GB, free: 80.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004949/1.287, allocations: 5.533 MB / 0.5616 GB, free: 75.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002981/1.29, allocations: 98.41 kB / 0.5617 GB, free: 75.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003234/1.29, allocations: 97.47 kB / 0.5618 GB, free: 75.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/1.29, allocations: 8.766 kB / 0.5618 GB, free: 75.59 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004202/1.294, allocations: 1.477 MB / 0.5633 GB, free: 75.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.283e-05/1.295, allocations: 29.28 kB / 0.5633 GB, free: 75.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005459/1.295, allocations: 155.5 kB / 0.5635 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/1.298, allocations: 414.1 kB / 0.5639 GB, free: 75.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004274/1.302, allocations: 5.524 MB / 0.5692 GB, free: 70.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/1.303, allocations: 81.03 kB / 0.5693 GB, free: 70.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/1.304, allocations: 94.34 kB / 0.5694 GB, free: 70.32 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 222 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005325/1.304, allocations: 238.6 kB / 0.5696 GB, free: 70.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006866/1.305, allocations: 231.2 kB / 0.5699 GB, free: 70.06 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/1.307, allocations: 0.8748 MB / 0.5707 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/1.307, allocations: 10.91 kB / 0.5707 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/1.307, allocations: 0 / 0.5707 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/1.307, allocations: 3.938 kB / 0.5707 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007499/1.315, allocations: 3.043 MB / 0.5737 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/1.315, allocations: 7.906 kB / 0.5737 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/1.316, allocations: 160.2 kB / 0.5739 GB, free: 69.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007005/1.317, allocations: 136.1 kB / 0.574 GB, free: 69.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-05/1.317, allocations: 23.41 kB / 0.574 GB, free: 69.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003812/1.321, allocations: 5.347 MB / 0.5792 GB, free: 64.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/1.321, allocations: 19.12 kB / 0.5793 GB, free: 64.19 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003107/1.324, allocations: 1.88 MB / 0.5811 GB, free: 63.05 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/1.325, allocations: 382.2 kB / 0.5815 GB, free: 62.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004529/1.325, allocations: 21.94 kB / 0.5815 GB, free: 62.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/1.327, allocations: 66.11 kB / 0.5815 GB, free: 62.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/1.327, allocations: 76.53 kB / 0.5816 GB, free: 62.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.199e-05/1.327, allocations: 33.16 kB / 0.5816 GB, free: 62.83 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002797/1.33, allocations: 1.338 MB / 0.5829 GB, free: 62.67 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.503e-06/1.33, allocations: 0 / 0.5829 GB, free: 62.67 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00539/1.335, allocations: 1.007 MB / 0.5839 GB, free: 62.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 6 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcee.inertiaRotor.phi,dcee.inertiaRotor.w,dcse.inertiaRotor.phi,dcse.inertiaRotor.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004208/1.34, allocations: 4.337 MB / 0.5882 GB, free: 59.51 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004984/1.345, allocations: 2.492 MB / 0.5906 GB, free: 58.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/1.345, allocations: 0 / 0.5906 GB, free: 58.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/1.346, allocations: 0.7662 MB / 0.5913 GB, free: 58.08 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004473/1.351, allocations: 0.5464 MB / 0.5919 GB, free: 58.04 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/1.362, allocations: 3.587 MB / 0.5954 GB, free: 56.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/1.363, allocations: 1.62 MB / 0.597 GB, free: 55.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/1.365, allocations: 1.069 MB / 0.598 GB, free: 54.95 MB / 442.7 MB Notification: Performance of SimCode: time 1.262e-06/1.365, allocations: 7.219 kB / 0.598 GB, free: 54.95 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.554/4.919, allocations: 87.26 MB / 0.6832 GB, free: 11.89 MB / 458.7 MB