Running command: translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadModel(Modelica): time 2.226/2.226, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.533e-05/3.528e-05, allocations: 0 / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1368, allocations: 50.41 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004031/0.1409, allocations: 2.294 MB / 347.3 MB, free: 6.652 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001581/0.1425, allocations: 0.5768 MB / 347.8 MB, free: 6.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002067/0.1427, allocations: 12 kB / 347.9 MB, free: 6.059 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.1429, allocations: 35.69 kB / 347.9 MB, free: 6.023 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003054/0.1432, allocations: 91.7 kB / 348 MB, free: 5.934 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002694/0.1435, allocations: 71.86 kB / 348.1 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003923/0.1439, allocations: 195.5 kB / 348.2 MB, free: 5.672 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.1441, allocations: 83.14 kB / 348.3 MB, free: 5.582 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.1444, allocations: 103.8 kB / 348.4 MB, free: 5.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.1446, allocations: 115.6 kB / 348.5 MB, free: 5.367 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.477e-05/0.1447, allocations: 16 kB / 348.6 MB, free: 5.352 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.753e-05/0.1448, allocations: 12 kB / 348.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.179e-05/0.1448, allocations: 43.78 kB / 348.6 MB, free: 5.297 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.667e-05/0.1449, allocations: 28 kB / 348.6 MB, free: 5.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.1453, allocations: 275.4 kB / 348.9 MB, free: 5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1453, allocations: 0 / 348.9 MB, free: 5 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1454, allocations: 0 / 348.9 MB, free: 5 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.1454, allocations: 0 / 348.9 MB, free: 5 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001229/0.1466, allocations: 0.5538 MB / 349.5 MB, free: 4.395 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.1467, allocations: 8.031 kB / 349.5 MB, free: 4.387 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.1468, allocations: 51.42 kB / 349.5 MB, free: 4.336 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.1473, allocations: 250.5 kB / 349.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.608e-05/0.1473, allocations: 20.66 kB / 349.8 MB, free: 4.031 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.162e-05/0.1474, allocations: 32 kB / 349.8 MB, free: 4 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008438/0.1483, allocations: 274.1 kB / 350.1 MB, free: 3.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.1483, allocations: 0 / 350.1 MB, free: 3.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.709e-05/0.1483, allocations: 12 kB / 350.1 MB, free: 3.719 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.1484, allocations: 8 kB / 350.1 MB, free: 3.711 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007792/0.1492, allocations: 218.5 kB / 350.3 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002391/0.1516, allocations: 1.01 MB / 351.3 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005197/0.1521, allocations: 154.7 kB / 351.5 MB, free: 2.254 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/0.1522, allocations: 4 kB / 351.5 MB, free: 2.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.1522, allocations: 34.56 kB / 351.5 MB, free: 2.207 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 2.544e-06/0.1522, allocations: 0 / 351.5 MB, free: 2.207 MB / 282.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009285/0.1532, allocations: 236.5 kB / 351.7 MB, free: 1.973 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.1532, allocations: 55.41 kB / 351.8 MB, free: 1.906 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.1535, allocations: 182.2 kB / 352 MB, free: 1.723 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.36e-05/0.1536, allocations: 29.7 kB / 352 MB, free: 1.688 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.1537, allocations: 246.4 kB / 352.2 MB, free: 1.445 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.124e-05/0.1538, allocations: 63.09 kB / 352.3 MB, free: 1.383 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/0.1539, allocations: 4 kB / 352.3 MB, free: 1.379 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.154, allocations: 326.8 kB / 352.6 MB, free: 1.051 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.1543, allocations: 67.97 kB / 352.7 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.1547, allocations: 129.9 kB / 352.8 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.155, allocations: 79.92 kB / 352.9 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1551, allocations: 4 kB / 352.9 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007787/0.1558, allocations: 241.2 kB / 353.1 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1559, allocations: 4 kB / 353.1 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1559, allocations: 4 kB / 353.1 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.1559, allocations: 4 kB / 353.2 MB, free: 0.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/0.1564, allocations: 64.03 kB / 353.2 MB, free: 448 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.1565, allocations: 8 kB / 353.2 MB, free: 440 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.1567, allocations: 31.77 kB / 353.3 MB, free: 408 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.1568, allocations: 4 kB / 353.3 MB, free: 404 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0002031/0.157, allocations: 141.7 kB / 353.4 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.873e-05/0.1571, allocations: 27.72 kB / 353.4 MB, free: 224 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006875/0.1578, allocations: 202.1 kB / 353.6 MB, free: 12 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.1578, allocations: 4 kB / 353.6 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1578, allocations: 0 / 353.6 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1578, allocations: 3.938 kB / 353.6 MB, free: 4 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005569/0.1584, allocations: 321.4 kB / 353.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.1584, allocations: 3.953 kB / 353.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005362/0.159, allocations: 55.91 kB / 354 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.159, allocations: 0 / 354 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.159, allocations: 8 kB / 354 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.159, allocations: 0 / 354 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.159, allocations: 0 / 354 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009833/0.16, allocations: 355.1 kB / 354.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.1602, allocations: 112.8 kB / 354.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.071e-05/0.1602, allocations: 48 / 354.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.1605, allocations: 27.97 kB / 354.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.479e-05/0.1606, allocations: 11.98 kB / 354.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.1607, allocations: 8 kB / 354.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002024/0.1609, allocations: 144.6 kB / 354.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1609, allocations: 0 / 354.7 MB, free: 14.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004783/0.1614, allocations: 79.73 kB / 354.7 MB, free: 14.82 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0001662/0.1615, allocations: 103.4 kB / 354.8 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007411/0.1623, allocations: 179.6 kB / 355 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1623, allocations: 0 / 355 MB, free: 14.53 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002879/0.1626, allocations: 83.08 kB / 355.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.163, allocations: 23.98 kB / 355.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.1653, allocations: 1.046 MB / 356.2 MB, free: 13.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/0.1658, allocations: 0.7715 MB / 356.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.1659, allocations: 23.42 kB / 357 MB, free: 12.53 MB / 298.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1659, allocations: 0 / 357 MB, free: 12.53 MB / 298.7 MB Notification: Performance of Templates: time 0.007361/0.1733, allocations: 2.793 MB / 359.7 MB, free: 9.738 MB / 298.7 MB