Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.909e-05/2.917e-05, allocations: 7.234 kB / 292.7 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1483, allocations: 50.41 MB / 343.1 MB, free: 5.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3572/0.5055, allocations: 80.53 MB / 423.6 MB, free: 13.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.5058, allocations: 70.97 kB / 423.7 MB, free: 13.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03592/0.5417, allocations: 6.288 MB / 430 MB, free: 8.324 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.002e-06/0.5418, allocations: 0 / 430 MB, free: 8.324 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.396e-05/0.5418, allocations: 8 kB / 430 MB, free: 8.316 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001759/0.5436, allocations: 0.5721 MB / 430.5 MB, free: 7.719 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.094e-05/0.5437, allocations: 8.031 kB / 430.6 MB, free: 7.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.5439, allocations: 35.84 kB / 430.6 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006435/0.5446, allocations: 275 kB / 430.9 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.5447, allocations: 90.89 kB / 430.9 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.5449, allocations: 35.83 kB / 431 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.5462, allocations: 320.2 kB / 431.3 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.5462, allocations: 0 / 431.3 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.43e-05/0.5463, allocations: 13.62 kB / 431.3 MB, free: 7.035 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/0.5464, allocations: 8 kB / 431.3 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000991/0.5474, allocations: 209.8 kB / 431.5 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004686/0.5521, allocations: 1.385 MB / 432.9 MB, free: 5.605 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007005/0.5529, allocations: 148.5 kB / 433 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003518/0.5532, allocations: 81.08 kB / 433.1 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.25e-05/0.5533, allocations: 352 / 433.1 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005981/0.5539, allocations: 158 kB / 433.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 4.851e-06/0.554, allocations: 0 / 433.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009186/0.5549, allocations: 225.9 kB / 433.5 MB, free: 5.113 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.504e-05/0.555, allocations: 106.8 kB / 433.6 MB, free: 4.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/0.5554, allocations: 226.9 kB / 433.8 MB, free: 4.805 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/0.5555, allocations: 33.64 kB / 433.9 MB, free: 4.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.5557, allocations: 203.4 kB / 434.1 MB, free: 4.598 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.759e-05/0.5558, allocations: 73.42 kB / 434.1 MB, free: 4.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.462e-05/0.5558, allocations: 10.69 kB / 434.1 MB, free: 4.531 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.5561, allocations: 333.4 kB / 434.5 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.5563, allocations: 64 kB / 434.5 MB, free: 4.168 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000303/0.5566, allocations: 154.6 kB / 434.7 MB, free: 4.012 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.5569, allocations: 82.48 kB / 434.8 MB, free: 3.957 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.5569, allocations: 0 / 434.8 MB, free: 3.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009681/0.5579, allocations: 310.9 kB / 435.1 MB, free: 3.707 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.5579, allocations: 8 kB / 435.1 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.078e-06/0.5579, allocations: 3.938 kB / 435.1 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003475/0.5583, allocations: 63.59 kB / 435.1 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/0.5587, allocations: 59.91 kB / 435.2 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/0.5607, allocations: 1.404 MB / 436.6 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003913/0.5611, allocations: 47.64 kB / 436.6 MB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.456e-05/0.5612, allocations: 11.19 kB / 436.7 MB, free: 2.047 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001713/0.5614, allocations: 130.6 kB / 436.8 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.1e-05/0.5614, allocations: 27.62 kB / 436.8 MB, free: 1.895 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.132e-05/0.5615, allocations: 31.45 kB / 436.8 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.061e-06/0.5615, allocations: 0 / 436.8 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.209e-06/0.5616, allocations: 0 / 436.8 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.102e-06/0.5616, allocations: 4 kB / 436.8 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005411/0.5621, allocations: 341 kB / 437.2 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.5622, allocations: 0 / 437.2 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003127/0.5625, allocations: 35.98 kB / 437.2 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002751/0.5628, allocations: 54.55 kB / 437.3 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.994e-05/0.5628, allocations: 11.25 kB / 437.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.5646, allocations: 1.325 MB / 438.6 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5646, allocations: 0 / 438.6 MB, free: 60 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.5657, allocations: 331.1 kB / 438.9 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/0.5659, allocations: 112.5 kB / 439 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.826e-05/0.566, allocations: 11.28 kB / 439 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.5663, allocations: 27.42 kB / 439.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.5664, allocations: 31.12 kB / 439.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-05/0.5664, allocations: 7.875 kB / 439.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002319/0.5667, allocations: 174.8 kB / 439.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.5667, allocations: 0 / 439.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005461/0.5673, allocations: 104.1 kB / 439.4 MB, free: 15.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001815/0.5675, allocations: 110.5 kB / 439.5 MB, free: 15.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006335/0.5681, allocations: 278 kB / 439.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.211e-06/0.5681, allocations: 0 / 439.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003498/0.5685, allocations: 190.9 kB / 440 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.5688, allocations: 36.77 kB / 440 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.5703, allocations: 0.489 MB / 440.5 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.5708, allocations: 0.7799 MB / 441.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000158/0.571, allocations: 30.05 kB / 441.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.511e-05/0.5711, allocations: 19.44 kB / 441.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of SimCode: time 1.41e-06/0.5711, allocations: 0 / 441.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of Templates: time 0.009062/0.5801, allocations: 2.759 MB / 444.1 MB, free: 10.77 MB / 362.7 MB