Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.276e-05/3.279e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2895, allocations: 44.5 MB / 294.1 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1251/0.4146, allocations: 73.73 MB / 367.8 MB, free: 8.27 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.4149, allocations: 75.89 kB / 367.9 MB, free: 8.195 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02773/0.4427, allocations: 5.994 MB / 373.9 MB, free: 2.172 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.059e-06/0.4428, allocations: 0 / 373.9 MB, free: 2.172 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.318e-05/0.4428, allocations: 4 kB / 373.9 MB, free: 2.168 MB / 314.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.001541/0.4444, allocations: 0.5742 MB / 374.5 MB, free: 1.543 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.4444, allocations: 12.03 kB / 374.5 MB, free: 1.531 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.4446, allocations: 43.86 kB / 374.5 MB, free: 1.488 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.445, allocations: 267.6 kB / 374.8 MB, free: 1.184 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.4452, allocations: 72.19 kB / 374.9 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/0.4452, allocations: 23.94 kB / 374.9 MB, free: 1.078 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005325/0.4458, allocations: 181.5 kB / 375.1 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006506/0.4465, allocations: 275.2 kB / 375.3 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.4465, allocations: 0 / 375.3 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.983e-05/0.4465, allocations: 0 / 375.3 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.4466, allocations: 11.94 kB / 375.4 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.4492, allocations: 1.321 MB / 376.7 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.4496, allocations: 154.6 kB / 376.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001833/0.4498, allocations: 75.78 kB / 376.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.4498, allocations: 0 / 376.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003284/0.4501, allocations: 147.4 kB / 377 MB, free: 14.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.64e-06/0.4502, allocations: 0 / 377 MB, free: 14.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007217/0.4509, allocations: 204.6 kB / 377.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.499e-05/0.451, allocations: 114.8 kB / 377.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.4513, allocations: 188.9 kB / 377.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.4513, allocations: 25.7 kB / 377.6 MB, free: 14.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/0.4516, allocations: 270.5 kB / 377.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.903e-05/0.4517, allocations: 63.09 kB / 377.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.515e-05/0.4517, allocations: 0 / 377.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.4519, allocations: 330.8 kB / 378.2 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.4521, allocations: 60 kB / 378.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.4523, allocations: 146.5 kB / 378.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002067/0.4526, allocations: 69.17 kB / 378.5 MB, free: 13.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.686e-06/0.4526, allocations: 4 kB / 378.5 MB, free: 13.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008462/0.4534, allocations: 276.8 kB / 378.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.4535, allocations: 10.03 kB / 378.8 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.4535, allocations: 0 / 378.8 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004778/0.454, allocations: 64.91 kB / 378.8 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005841/0.4546, allocations: 59.91 kB / 378.9 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.4567, allocations: 1.369 MB / 380.3 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000382/0.4571, allocations: 39.67 kB / 380.3 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.986e-05/0.4572, allocations: 12 kB / 380.3 MB, free: 11.31 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 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.0001975/0.4574, allocations: 127.2 kB / 380.4 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.893e-05/0.4575, allocations: 23.72 kB / 380.5 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.848e-05/0.4576, allocations: 25.95 kB / 380.5 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.263e-06/0.4576, allocations: 0 / 380.5 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.16e-06/0.4576, allocations: 7.953 kB / 380.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.4576, allocations: 7.984 kB / 380.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004407/0.4581, allocations: 282 kB / 380.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-06/0.4581, allocations: 0 / 380.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002723/0.4584, allocations: 51.91 kB / 380.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002544/0.4587, allocations: 44.83 kB / 380.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.4587, allocations: 3.984 kB / 380.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.4603, allocations: 1.276 MB / 382.1 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.461e-06/0.4603, allocations: 4.156 kB / 382.1 MB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008753/0.4612, allocations: 309.5 kB / 382.4 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/0.4614, allocations: 112.8 kB / 382.6 MB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.4614, allocations: 0 / 382.6 MB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.4617, allocations: 28.03 kB / 382.6 MB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.4618, allocations: 27.89 kB / 382.6 MB, free: 8.805 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.732e-05/0.4619, allocations: 8 kB / 382.6 MB, free: 8.797 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002025/0.4621, allocations: 156.5 kB / 382.8 MB, free: 8.641 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.35e-07/0.4621, allocations: 0 / 382.8 MB, free: 8.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005855/0.4627, allocations: 91.69 kB / 382.9 MB, free: 8.551 MB / 330.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.0001969/0.4629, allocations: 111.2 kB / 383 MB, free: 8.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006524/0.4636, allocations: 270 kB / 383.2 MB, free: 8.156 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.4636, allocations: 0 / 383.2 MB, free: 8.156 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003395/0.464, allocations: 189.5 kB / 383.4 MB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/0.4642, allocations: 20.98 kB / 383.4 MB, free: 7.941 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.4658, allocations: 0.5075 MB / 383.9 MB, free: 7.406 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004817/0.4663, allocations: 0.775 MB / 384.7 MB, free: 6.605 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.488e-05/0.4664, allocations: 23.42 kB / 384.7 MB, free: 6.582 MB / 330.7 MB Notification: Performance of SimCode: time 3.671e-06/0.4664, allocations: 0 / 384.7 MB, free: 6.582 MB / 330.7 MB Notification: Performance of Templates: time 0.009155/0.4756, allocations: 4.296 MB / 389 MB, free: 2.289 MB / 330.7 MB "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:_D_whenCondition1,constantVoltage1.V,constantVoltage1.i,constantVoltage1.n.i,constantVoltage1.n.v,constantVoltage1.p.i,constantVoltage1.p.v,constantVoltage1.v,constantVoltage2.V,constantVoltage2.i,constantVoltage2.n.i,constantVoltage2.n.v,constantVoltage2.p.i,constantVoltage2.p.v,constantVoltage2.v,ground.p.i,ground.p.v,ground1.p.i,ground1.p.v,ground2.p.i,ground2.p.v,inductor1.L,der(inductor1.i),inductor1.i,inductor1.n.i,inductor1.n.v,inductor1.p.i,inductor1.p.v,inductor1.v,inductor2.L,der(inductor2.i),inductor2.i,inductor2.n.i,inductor2.n.v,inductor2.p.i,inductor2.p.v,inductor2.v,resistor1.LossPower,resistor1.R,resistor1.R_actual,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor1.i,resistor1.n.i,resistor1.n.v,resistor1.p.i,resistor1.p.v,resistor1.useHeatPort,resistor1.v,resistor2.LossPower,resistor2.R,resistor2.R_actual,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,resistor2.i,resistor2.n.i,resistor2.n.v,resistor2.p.i,resistor2.p.v,resistor2.useHeatPort,resistor2.v,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,switch1.Goff,switch1.LossPower,switch1.Ron,switch1.T,switch1.T_heatPort,switch1.control.i,switch1.control.v,switch1.i,switch1.level,switch1.n.i,switch1.n.v,switch1.off,switch1.p.i,switch1.p.v,switch1.s,switch1.useHeatPort,switch1.v,switch2.Goff,switch2.LossPower,switch2.Ron,switch2.T,switch2.T_heatPort,switch2.V0,switch2.Vmax,switch2.control.i,switch2.control.v,switch2.dVdt,switch2.i,switch2.level,switch2.n.i,switch2.n.v,switch2.off,switch2.p.i,switch2.p.v,switch2.quenched,switch2.tSwitch,switch2.useHeatPort,switch2.v,time