Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.041/2.041, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.459e-05, allocations: 1.562 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1165, allocations: 50.4 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4462/0.5627, allocations: 99.76 MB / 442.4 MB, free: 10.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002839/0.5631, allocations: 77.2 kB / 442.5 MB, free: 10.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1439/0.707, allocations: 28.74 MB / 471.2 MB, free: 2.328 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.7071, allocations: 0 / 471.2 MB, free: 2.328 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001478/0.7072, allocations: 31.94 kB / 471.2 MB, free: 2.297 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.004449/0.7117, allocations: 1.133 MB / 472.4 MB, free: 1.117 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.867e-05/0.7118, allocations: 8.031 kB / 472.4 MB, free: 1.109 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005764/0.7124, allocations: 152.2 kB / 472.5 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001548/0.7139, allocations: 194.3 kB / 472.7 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003671/0.7177, allocations: 0.805 MB / 473.5 MB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.7179, allocations: 74 kB / 473.6 MB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004327/0.7183, allocations: 96 kB / 473.7 MB, free: 15.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003788/0.7221, allocations: 0.888 MB / 474.6 MB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.402e-05/0.7223, allocations: 7.906 kB / 474.6 MB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001984/0.7225, allocations: 43.95 kB / 474.6 MB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.322e-05/0.7226, allocations: 24 kB / 474.7 MB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00304/0.7256, allocations: 0.5858 MB / 475.2 MB, free: 14.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01244/0.7381, allocations: 3.943 MB / 479.2 MB, free: 10 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.7396, allocations: 443.1 kB / 479.6 MB, free: 9.543 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.7407, allocations: 256.8 kB / 479.9 MB, free: 9.289 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.64e-05/0.7408, allocations: 4 kB / 479.9 MB, free: 9.285 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.657e-05/0.7408, allocations: 42.56 kB / 479.9 MB, free: 9.234 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 4.439e-06/0.7409, allocations: 0 / 479.9 MB, free: 9.234 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.004153/0.745, allocations: 1.213 MB / 481.1 MB, free: 7.961 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.7451, allocations: 85.55 kB / 481.2 MB, free: 7.859 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/0.7467, allocations: 0.7036 MB / 481.9 MB, free: 7.152 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.7469, allocations: 29.7 kB / 481.9 MB, free: 7.117 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005414/0.7474, allocations: 0.5745 MB / 482.5 MB, free: 6.535 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/0.7476, allocations: 173.6 kB / 482.7 MB, free: 6.363 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.7477, allocations: 16 kB / 482.7 MB, free: 6.348 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.7479, allocations: 334.8 kB / 483 MB, free: 6.012 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004713/0.7484, allocations: 157.6 kB / 483.2 MB, free: 5.855 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006714/0.749, allocations: 444.4 kB / 483.6 MB, free: 5.289 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006153/0.7497, allocations: 237.5 kB / 483.8 MB, free: 5.059 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.7497, allocations: 7.953 kB / 483.9 MB, free: 5.051 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001866/0.7516, allocations: 0.6852 MB / 484.5 MB, free: 4.352 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/0.7516, allocations: 12 kB / 484.6 MB, free: 4.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.7517, allocations: 11.98 kB / 484.6 MB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004794/0.7522, allocations: 89.91 kB / 484.7 MB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.7532, allocations: 163.7 kB / 484.8 MB, free: 4.074 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003549/0.7568, allocations: 2.986 MB / 487.8 MB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.758, allocations: 43.89 kB / 487.8 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.781e-05/0.7581, allocations: 36.06 kB / 487.9 MB, free: 0.75 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002253/0.7584, allocations: 157.7 kB / 488 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.7586, allocations: 98.86 kB / 488.1 MB, free: 0.4922 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.7602, allocations: 498.6 kB / 488.6 MB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.7602, allocations: 8 kB / 488.6 MB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.537e-06/0.7603, allocations: 4 kB / 488.6 MB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.7603, allocations: 3.938 kB / 488.6 MB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003876/0.7642, allocations: 1.45 MB / 490.1 MB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.7642, allocations: 3.953 kB / 490.1 MB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007202/0.765, allocations: 88.11 kB / 490.2 MB, free: 14.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004367/0.7654, allocations: 81.81 kB / 490.3 MB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-05/0.7655, allocations: 12 kB / 490.3 MB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003551/0.7691, allocations: 2.968 MB / 493.2 MB, free: 11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.7691, allocations: 0 / 493.2 MB, free: 11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002115/0.7712, allocations: 0.8795 MB / 494.1 MB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006208/0.7719, allocations: 208 kB / 494.3 MB, free: 9.812 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.7721, allocations: 12 kB / 494.3 MB, free: 9.801 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008479/0.773, allocations: 31.98 kB / 494.4 MB, free: 9.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.7732, allocations: 43.69 kB / 494.4 MB, free: 9.727 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-05/0.7732, allocations: 19.98 kB / 494.4 MB, free: 9.707 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001248/0.7745, allocations: 0.5265 MB / 494.9 MB, free: 9.188 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.7745, allocations: 0 / 494.9 MB, free: 9.188 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001729/0.7763, allocations: 251.9 kB / 495.2 MB, free: 8.941 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003435/0.7798, allocations: 2.098 MB / 497.3 MB, free: 6.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001791/0.7816, allocations: 0.6539 MB / 497.9 MB, free: 6.098 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/0.7817, allocations: 4 kB / 497.9 MB, free: 6.094 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.7828, allocations: 427.2 kB / 498.4 MB, free: 5.656 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/0.7848, allocations: 216.2 kB / 498.6 MB, free: 5.445 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005419/0.7902, allocations: 1.477 MB / 0.4883 GB, free: 3.902 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008378/0.7911, allocations: 1.036 MB / 0.4893 GB, free: 2.836 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008554/0.792, allocations: 391.3 kB / 0.4897 GB, free: 2.457 MB / 410.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7921, allocations: 0 / 0.4897 GB, free: 2.457 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.973/3.765, allocations: 25.82 MB / 0.5149 GB, free: 8.695 MB / 442.7 MB