Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.153/2.153, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.073e-05/3.104e-05, allocations: 4 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 50.43 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4689/0.5749, allocations: 88.6 MB / 431.2 MB, free: 5.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.5752, allocations: 74.47 kB / 431.3 MB, free: 5.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1693/0.7445, allocations: 38.16 MB / 469.5 MB, free: 4.059 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.7446, allocations: 0 / 469.5 MB, free: 4.059 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.7446, allocations: 12 kB / 469.5 MB, free: 4.047 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002588/0.7472, allocations: 1.19 MB / 470.7 MB, free: 2.805 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/0.7473, allocations: 8.031 kB / 470.7 MB, free: 2.797 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.7474, allocations: 54.55 kB / 470.7 MB, free: 2.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002671/0.7477, allocations: 130.4 kB / 470.9 MB, free: 2.605 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001602/0.7493, allocations: 0.7189 MB / 471.6 MB, free: 1.836 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.498e-05/0.7494, allocations: 20.44 kB / 471.6 MB, free: 1.816 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.965e-05/0.7495, allocations: 23.95 kB / 471.6 MB, free: 1.793 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007483/0.7503, allocations: 293.8 kB / 471.9 MB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.7503, allocations: 3.938 kB / 471.9 MB, free: 1.488 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.451e-05/0.7504, allocations: 8 kB / 471.9 MB, free: 1.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.7504, allocations: 4 kB / 471.9 MB, free: 1.477 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005621/0.751, allocations: 209 kB / 472.1 MB, free: 1.273 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002969/0.7539, allocations: 1.185 MB / 473.3 MB, free: 40 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006275/0.7546, allocations: 230.5 kB / 473.5 MB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007445/0.7554, allocations: 284.8 kB / 473.8 MB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002071/0.7575, allocations: 1.285 MB / 475.1 MB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.7575, allocations: 34.55 kB / 475.1 MB, free: 13.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=38): time 3.717e-06/0.7576, allocations: 0 / 475.1 MB, free: 13.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=39): time 0.003558/0.7611, allocations: 1.246 MB / 476.4 MB, free: 12.61 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.7612, allocations: 114.8 kB / 476.5 MB, free: 12.47 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/0.7628, allocations: 0.7692 MB / 477.3 MB, free: 11.69 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.28e-05/0.7629, allocations: 33.7 kB / 477.3 MB, free: 11.65 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003454/0.7632, allocations: 352.1 kB / 477.6 MB, free: 11.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.7634, allocations: 134 kB / 477.8 MB, free: 11.17 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.7635, allocations: 4 kB / 477.8 MB, free: 11.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.7636, allocations: 330.9 kB / 478.1 MB, free: 10.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003295/0.7639, allocations: 104.3 kB / 478.2 MB, free: 10.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003416/0.7643, allocations: 138.8 kB / 478.3 MB, free: 10.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/0.7647, allocations: 173.5 kB / 478.5 MB, free: 10.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.7647, allocations: 0 / 478.5 MB, free: 10.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001243/0.766, allocations: 428.5 kB / 478.9 MB, free: 9.973 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.95e-05/0.7661, allocations: 41.69 kB / 479 MB, free: 9.926 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.842e-05/0.7661, allocations: 12 kB / 479 MB, free: 9.914 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003756/0.7665, allocations: 73.72 kB / 479 MB, free: 9.836 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003926/0.7669, allocations: 43.91 kB / 479.1 MB, free: 9.793 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/0.7702, allocations: 2.983 MB / 482.1 MB, free: 6.543 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007214/0.771, allocations: 12.03 kB / 482.1 MB, free: 6.531 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.029e-05/0.7711, allocations: 23.98 kB / 482.1 MB, free: 6.508 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002149/0.7713, allocations: 158.5 kB / 482.3 MB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.7715, allocations: 122.5 kB / 482.4 MB, free: 6.219 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002291/0.7738, allocations: 0.6456 MB / 483 MB, free: 5.547 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.7739, allocations: 7.953 kB / 483 MB, free: 5.539 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.7739, allocations: 0 / 483 MB, free: 5.539 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.7739, allocations: 3.984 kB / 483 MB, free: 5.535 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.7753, allocations: 0.6043 MB / 483.6 MB, free: 4.887 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.213e-05/0.7753, allocations: 12 kB / 483.7 MB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.7757, allocations: 43.97 kB / 483.7 MB, free: 4.832 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003378/0.7761, allocations: 65.69 kB / 483.8 MB, free: 4.762 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.346e-05/0.7761, allocations: 15.98 kB / 483.8 MB, free: 4.746 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003188/0.7793, allocations: 2.982 MB / 486.8 MB, free: 1.504 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7794, allocations: 0 / 486.8 MB, free: 1.504 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.7814, allocations: 0.8158 MB / 487.6 MB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006437/0.7821, allocations: 283.5 kB / 487.9 MB, free: 372 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001606/0.7823, allocations: 8 kB / 487.9 MB, free: 364 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005462/0.7828, allocations: 16.12 kB / 487.9 MB, free: 348 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.783, allocations: 31.95 kB / 487.9 MB, free: 316 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.496e-05/0.7831, allocations: 19.98 kB / 487.9 MB, free: 296 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001207/0.7843, allocations: 0.604 MB / 488.5 MB, free: 15.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7843, allocations: 3.938 kB / 488.5 MB, free: 15.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001457/0.7858, allocations: 255.8 kB / 488.8 MB, free: 15.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D3.n.v,D2.pin) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003236/0.789, allocations: 1.65 MB / 490.4 MB, free: 13.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.7906, allocations: 0.7124 MB / 491.1 MB, free: 12.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.7906, allocations: 0 / 491.1 MB, free: 12.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009236/0.7916, allocations: 0.5952 MB / 491.7 MB, free: 12.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008704/0.7925, allocations: 92.73 kB / 491.8 MB, free: 12.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003823/0.7963, allocations: 1.3 MB / 493.1 MB, free: 10.87 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007206/0.7971, allocations: 1.022 MB / 494.2 MB, free: 9.816 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005352/0.7977, allocations: 275.3 kB / 494.4 MB, free: 9.547 MB / 410.7 MB Notification: Performance of SimCode: time 3.607e-06/0.7977, allocations: 0 / 494.4 MB, free: 9.547 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.828/3.626, allocations: 19.4 MB / 0.5018 GB, free: 6.141 MB / 426.7 MB