Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.615e-05/3.62e-05, allocations: 5.562 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4388/0.5436, allocations: 83.18 MB / 425.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.5439, allocations: 69.09 kB / 425.9 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06365/0.6076, allocations: 16.2 MB / 442.1 MB, free: 13.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6076, allocations: 0 / 442.1 MB, free: 13.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.177e-05/0.6078, allocations: 39.92 kB / 442.1 MB, free: 13.06 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002508/0.6103, allocations: 1.033 MB / 443.1 MB, free: 12.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.6104, allocations: 12.03 kB / 443.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002706/0.6106, allocations: 150.4 kB / 443.3 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003/0.6109, allocations: 126.4 kB / 443.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/0.6124, allocations: 0.5458 MB / 444 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.766e-05/0.6125, allocations: 78.42 kB / 444.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.6126, allocations: 111.6 kB / 444.2 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002315/0.615, allocations: 0.9714 MB / 445.1 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.55e-05/0.6151, allocations: 7.938 kB / 445.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.6152, allocations: 42.88 kB / 445.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.773e-05/0.6152, allocations: 28 kB / 445.2 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.6169, allocations: 0.4892 MB / 445.7 MB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007592/0.6245, allocations: 5.534 MB / 451.2 MB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000728/0.6253, allocations: 217.5 kB / 451.4 MB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003912/0.6257, allocations: 145.9 kB / 451.6 MB, free: 4.355 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001657/0.6259, allocations: 96.53 kB / 451.7 MB, free: 4.246 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/0.6259, allocations: 38.45 kB / 451.7 MB, free: 4.203 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 3.066e-06/0.626, allocations: 4 kB / 451.7 MB, free: 4.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.004622/0.6306, allocations: 1.507 MB / 453.2 MB, free: 2.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.931e-05/0.6307, allocations: 81.11 kB / 453.3 MB, free: 2.672 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009331/0.6317, allocations: 0.5427 MB / 453.9 MB, free: 2.238 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.341e-05/0.6317, allocations: 37.52 kB / 453.9 MB, free: 2.199 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004773/0.6322, allocations: 0.619 MB / 454.5 MB, free: 1.703 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.6324, allocations: 142.8 kB / 454.6 MB, free: 1.582 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.834e-05/0.6324, allocations: 16.62 kB / 454.7 MB, free: 1.578 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.6326, allocations: 345 kB / 455 MB, free: 1.246 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003506/0.6329, allocations: 129.5 kB / 455.1 MB, free: 1.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006372/0.6336, allocations: 466.4 kB / 455.6 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005297/0.6341, allocations: 210.9 kB / 455.8 MB, free: 472 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.6342, allocations: 4 kB / 455.8 MB, free: 468 kB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001466/0.6356, allocations: 0.5874 MB / 456.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.6357, allocations: 20 kB / 456.4 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.6357, allocations: 12 kB / 456.4 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.236e-05/0.6358, allocations: 16 kB / 456.4 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.637, allocations: 201.7 kB / 456.6 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.621e-05/0.6371, allocations: 23.92 kB / 456.6 MB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006577/0.6378, allocations: 41.48 kB / 456.7 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.832e-05/0.6378, allocations: 35.06 kB / 456.7 MB, free: 15.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001828/0.638, allocations: 159.4 kB / 456.9 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.6382, allocations: 75.06 kB / 457 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002045/0.6384, allocations: 81.06 kB / 457 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.6384, allocations: 4 kB / 457 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.6385, allocations: 7.938 kB / 457 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.6385, allocations: 0 / 457 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002924/0.6414, allocations: 1.284 MB / 458.3 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.6415, allocations: 4 kB / 458.3 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009416/0.6424, allocations: 116 kB / 458.4 MB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-05/0.6424, allocations: 4 kB / 458.4 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.6425, allocations: 8 kB / 458.5 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.086e-05/0.6425, allocations: 7.984 kB / 458.5 MB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.6425, allocations: 0 / 458.5 MB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.6438, allocations: 0.7149 MB / 459.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.644, allocations: 136.2 kB / 459.3 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.44e-05/0.6441, allocations: 12 kB / 459.3 MB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005176/0.6446, allocations: 27.97 kB / 459.4 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.375e-05/0.6447, allocations: 27.97 kB / 459.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.726e-05/0.6448, allocations: 16 kB / 459.4 MB, free: 12.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007435/0.6455, allocations: 407.2 kB / 459.8 MB, free: 12.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6455, allocations: 0 / 459.8 MB, free: 12.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001023/0.6466, allocations: 143.9 kB / 459.9 MB, free: 12.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001829/0.6484, allocations: 1.683 MB / 461.6 MB, free: 10.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.6495, allocations: 362.9 kB / 462 MB, free: 10.33 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.6495, allocations: 8.312 kB / 462 MB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003222/0.6498, allocations: 127.8 kB / 462.1 MB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006247/0.6505, allocations: 75.17 kB / 462.2 MB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004191/0.6547, allocations: 1.413 MB / 463.6 MB, free: 8.652 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007501/0.6555, allocations: 1.024 MB / 464.6 MB, free: 7.602 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007289/0.6563, allocations: 391.3 kB / 465 MB, free: 7.219 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6563, allocations: 4 kB / 465 MB, free: 7.215 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.518/3.175, allocations: 12.84 MB / 477.8 MB, free: 10.37 MB / 394.7 MB