Running command: translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadModel(Modelica): time 2.089/2.089, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.614e-05/3.631e-05, allocations: 6.031 kB / 292.7 MB, free: 8.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1024, allocations: 50.41 MB / 343.1 MB, free: 5.941 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4074/0.5099, allocations: 79.55 MB / 422.6 MB, free: 14.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003702/0.5103, allocations: 72.91 kB / 422.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0532/0.5636, allocations: 5.054 MB / 427.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.57e-06/0.5636, allocations: 0 / 427.8 MB, free: 10.3 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.473e-05/0.5637, allocations: 4 kB / 427.8 MB, free: 10.29 MB / 346.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.001209/0.5649, allocations: 0.5382 MB / 428.3 MB, free: 9.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.565, allocations: 12.03 kB / 428.3 MB, free: 9.719 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.5651, allocations: 35.53 kB / 428.3 MB, free: 9.684 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000589/0.5657, allocations: 250.6 kB / 428.6 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/0.5658, allocations: 31.05 kB / 428.6 MB, free: 9.398 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.199e-05/0.5659, allocations: 30.06 kB / 428.7 MB, free: 9.379 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006341/0.5665, allocations: 250.8 kB / 428.9 MB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.5665, allocations: 0 / 428.9 MB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.134e-05/0.5666, allocations: 13.69 kB / 428.9 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.5666, allocations: 8 kB / 428.9 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004427/0.5671, allocations: 172.2 kB / 429.1 MB, free: 9.082 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.5694, allocations: 1.005 MB / 430.1 MB, free: 8.172 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.5697, allocations: 141.3 kB / 430.2 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.5699, allocations: 64.69 kB / 430.3 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.5699, allocations: 3.953 kB / 430.3 MB, free: 8.016 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.57, allocations: 42.06 kB / 430.3 MB, free: 7.969 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 6.112e-06/0.57, allocations: 0 / 430.3 MB, free: 7.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004111/0.5704, allocations: 142.4 kB / 430.5 MB, free: 7.848 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.5705, allocations: 55.41 kB / 430.5 MB, free: 7.781 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.5708, allocations: 180.4 kB / 430.7 MB, free: 7.625 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.5708, allocations: 32.77 kB / 430.7 MB, free: 7.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.571, allocations: 190.1 kB / 430.9 MB, free: 7.426 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.423e-05/0.5711, allocations: 65.03 kB / 431 MB, free: 7.371 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.334e-05/0.5711, allocations: 3.375 kB / 431 MB, free: 7.371 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.5713, allocations: 332.2 kB / 431.3 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.5714, allocations: 54.44 kB / 431.4 MB, free: 7.012 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.5716, allocations: 109.9 kB / 431.5 MB, free: 6.906 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.5718, allocations: 65.47 kB / 431.5 MB, free: 6.859 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.5718, allocations: 0 / 431.5 MB, free: 6.859 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005013/0.5723, allocations: 213.2 kB / 431.7 MB, free: 6.688 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.5724, allocations: 12.08 kB / 431.8 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.5724, allocations: 4 kB / 431.8 MB, free: 6.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.5724, allocations: 0 / 431.8 MB, free: 6.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004021/0.5728, allocations: 67.41 kB / 431.8 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.5729, allocations: 11.97 kB / 431.8 MB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002243/0.5731, allocations: 22.66 kB / 431.9 MB, free: 6.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.5732, allocations: 11.06 kB / 431.9 MB, free: 6.57 MB / 346.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.0001271/0.5733, allocations: 118.4 kB / 432 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.351e-05/0.5734, allocations: 23.72 kB / 432 MB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000412/0.5738, allocations: 164.8 kB / 432.2 MB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.5738, allocations: 4 kB / 432.2 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.5739, allocations: 11.89 kB / 432.2 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.606e-06/0.5739, allocations: 0 / 432.2 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005319/0.5744, allocations: 318.7 kB / 432.5 MB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.608e-06/0.5744, allocations: 0 / 432.5 MB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004255/0.5749, allocations: 59.91 kB / 432.6 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.666e-06/0.5749, allocations: 0 / 432.6 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/0.5749, allocations: 7.562 kB / 432.6 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.144e-06/0.575, allocations: 0 / 432.6 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.069e-06/0.575, allocations: 0 / 432.6 MB, free: 5.918 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005588/0.5755, allocations: 307.9 kB / 432.9 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.5757, allocations: 96.91 kB / 433 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.5757, allocations: 2.562 kB / 433 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.576, allocations: 23.73 kB / 433 MB, free: 5.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.576, allocations: 11.92 kB / 433 MB, free: 5.508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.5761, allocations: 11.39 kB / 433 MB, free: 5.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001902/0.5763, allocations: 148.9 kB / 433.2 MB, free: 5.375 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.5763, allocations: 0 / 433.2 MB, free: 5.375 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004968/0.5768, allocations: 87.05 kB / 433.2 MB, free: 5.297 MB / 346.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.0001888/0.577, allocations: 114.8 kB / 433.4 MB, free: 5.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000351/0.5774, allocations: 127.7 kB / 433.5 MB, free: 5.086 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.412e-06/0.5774, allocations: 0 / 433.5 MB, free: 5.086 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.5775, allocations: 60.44 kB / 433.5 MB, free: 5.043 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.5779, allocations: 33.25 kB / 433.6 MB, free: 5.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.5797, allocations: 0.6755 MB / 434.2 MB, free: 4.355 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006907/0.5804, allocations: 0.7716 MB / 435 MB, free: 3.555 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002645/0.5807, allocations: 26.06 kB / 435 MB, free: 3.527 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.5809, allocations: 19.44 kB / 435.1 MB, free: 3.508 MB / 346.7 MB Notification: Performance of SimCode: time 3.038e-06/0.5809, allocations: 0 / 435.1 MB, free: 3.508 MB / 346.7 MB Notification: Performance of Templates: time 0.007675/0.5886, allocations: 1.775 MB / 436.8 MB, free: 1.758 MB / 346.7 MB