Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadModel(Modelica): time 2.119/2.119, allocations: 224.7 MB / 241.1 MB, free: 1.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.951e-05/2.981e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 50.42 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007275/0.1181, allocations: 4.311 MB / 349.3 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003876/0.1221, allocations: 1.255 MB / 350.5 MB, free: 3.336 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009487/0.1231, allocations: 39.88 kB / 350.6 MB, free: 3.297 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.1234, allocations: 111 kB / 350.7 MB, free: 3.188 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.1245, allocations: 211.2 kB / 350.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1256, allocations: 291.6 kB / 351.2 MB, free: 2.695 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001699/0.1273, allocations: 0.6557 MB / 351.8 MB, free: 2.039 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005734/0.1279, allocations: 243.2 kB / 352.1 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005765/0.1285, allocations: 263.1 kB / 352.3 MB, free: 1.539 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005031/0.129, allocations: 298.6 kB / 352.6 MB, free: 1.246 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.1292, allocations: 43.94 kB / 352.7 MB, free: 1.203 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.1294, allocations: 36 kB / 352.7 MB, free: 1.168 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001806/0.1296, allocations: 143.3 kB / 352.8 MB, free: 1.027 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.1298, allocations: 80 kB / 352.9 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.131, allocations: 0.7676 MB / 353.7 MB, free: 184 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.131, allocations: 0 / 353.7 MB, free: 184 kB / 282.7 MB Notification: Performance of FrontEnd: time 3.015e-06/0.131, allocations: 7.875 kB / 353.7 MB, free: 176 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.722e-05/0.1311, allocations: 0 / 353.7 MB, free: 176 kB / 282.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.002399/0.1335, allocations: 1.057 MB / 354.8 MB, free: 15.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.1335, allocations: 8.031 kB / 354.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002788/0.1338, allocations: 126.5 kB / 354.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001422/0.1353, allocations: 0.584 MB / 355.5 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.284e-05/0.1354, allocations: 78 kB / 355.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.1356, allocations: 103.9 kB / 355.6 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/0.1382, allocations: 1.019 MB / 356.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.929e-05/0.1383, allocations: 7.938 kB / 356.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.1385, allocations: 44 kB / 356.7 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-05/0.1385, allocations: 28 kB / 356.7 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002014/0.1405, allocations: 0.5578 MB / 357.3 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007832/0.1484, allocations: 5.524 MB / 362.8 MB, free: 6.539 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008824/0.1493, allocations: 233 kB / 363.1 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001843/0.1496, allocations: 89.09 kB / 363.1 MB, free: 6.188 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.1496, allocations: 46.48 kB / 363.2 MB, free: 6.133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.985e-06/0.1496, allocations: 0 / 363.2 MB, free: 6.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.006069/0.1557, allocations: 1.724 MB / 364.9 MB, free: 4.309 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.217e-05/0.1558, allocations: 81.11 kB / 365 MB, free: 4.211 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/0.1569, allocations: 0.5466 MB / 365.5 MB, free: 3.656 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.772e-05/0.157, allocations: 29.7 kB / 365.6 MB, free: 3.621 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000549/0.1575, allocations: 0.6207 MB / 366.2 MB, free: 2.992 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.1577, allocations: 138 kB / 366.3 MB, free: 2.855 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.1577, allocations: 16 kB / 366.3 MB, free: 2.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.1579, allocations: 342.8 kB / 366.7 MB, free: 2.496 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005678/0.1585, allocations: 153.9 kB / 366.8 MB, free: 2.344 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008474/0.1594, allocations: 0.4932 MB / 367.3 MB, free: 1.688 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007128/0.1601, allocations: 231.7 kB / 367.5 MB, free: 1.461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.1601, allocations: 4 kB / 367.5 MB, free: 1.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001905/0.162, allocations: 0.6742 MB / 368.2 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.1621, allocations: 15.89 kB / 368.2 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/0.1621, allocations: 12 kB / 368.2 MB, free: 0.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.212e-05/0.1622, allocations: 16 kB / 368.3 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.1634, allocations: 196.3 kB / 368.5 MB, free: 0.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.805e-05/0.1635, allocations: 27.86 kB / 368.5 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006329/0.1641, allocations: 43.92 kB / 368.5 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.958e-05/0.1642, allocations: 36 kB / 368.6 MB, free: 448 kB / 298.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 (94): * Single equations (assignments): 94 * 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.0004928/0.1647, allocations: 221.5 kB / 368.8 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.1649, allocations: 71.06 kB / 368.8 MB, free: 144 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001759/0.1651, allocations: 86.48 kB / 368.9 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.1651, allocations: 4 kB / 368.9 MB, free: 48 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.1651, allocations: 0 / 368.9 MB, free: 48 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.1652, allocations: 3.984 kB / 368.9 MB, free: 44 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003946/0.1691, allocations: 1.294 MB / 370.2 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.1692, allocations: 0 / 370.2 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.1705, allocations: 107.9 kB / 370.3 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.635e-05/0.1706, allocations: 8.031 kB / 370.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.624e-05/0.1707, allocations: 8 kB / 370.4 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.187e-05/0.1707, allocations: 3.938 kB / 370.4 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.07e-05/0.1708, allocations: 7.953 kB / 370.4 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002669/0.1734, allocations: 0.7084 MB / 371.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003501/0.1739, allocations: 144.2 kB / 371.2 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.174, allocations: 11.95 kB / 371.2 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008206/0.1749, allocations: 23.98 kB / 371.2 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.1751, allocations: 27.95 kB / 371.3 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-05/0.1751, allocations: 16 kB / 371.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001237/0.1764, allocations: 419 kB / 371.7 MB, free: 13.17 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.1764, allocations: 0 / 371.7 MB, free: 13.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001664/0.1781, allocations: 136 kB / 371.8 MB, free: 13.04 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (38): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002779/0.1785, allocations: 111.2 kB / 371.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002101/0.1806, allocations: 433.3 kB / 372.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/0.1806, allocations: 4 kB / 372.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008101/0.1815, allocations: 155.4 kB / 372.5 MB, free: 12.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009136/0.1824, allocations: 71.23 kB / 372.6 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007112/0.1896, allocations: 2.073 MB / 374.7 MB, free: 10.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.1909, allocations: 1.019 MB / 375.7 MB, free: 9.121 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003746/0.1914, allocations: 71.34 kB / 375.8 MB, free: 9.051 MB / 314.7 MB Notification: Performance of SimCode: time 1.233e-06/0.1914, allocations: 0 / 375.8 MB, free: 9.051 MB / 314.7 MB Notification: Performance of Templates: time 0.02604/0.2174, allocations: 8.86 MB / 384.6 MB, free: 184 kB / 314.7 MB