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 1.891/1.891, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.748e-05/3.776e-05, allocations: 3.469 kB / 255.4 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07573/0.07579, allocations: 44.5 MB / 299.9 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3283/0.4042, allocations: 74.4 MB / 374.3 MB, free: 22.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.4044, allocations: 66.98 kB / 374.3 MB, free: 22.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02258/0.427, allocations: 6.068 MB / 380.4 MB, free: 21.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.066e-06/0.4271, allocations: 0 / 380.4 MB, free: 21.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.317e-05/0.4271, allocations: 7 kB / 380.4 MB, free: 21.83 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.0009194/0.428, allocations: 0.5772 MB / 381 MB, free: 21.4 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.4281, allocations: 8.656 kB / 381 MB, free: 21.4 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.4282, allocations: 41.52 kB / 381 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003316/0.4286, allocations: 266.7 kB / 381.3 MB, free: 21.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.821e-05/0.4286, allocations: 80.47 kB / 381.4 MB, free: 21.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.984e-05/0.4287, allocations: 33.73 kB / 381.4 MB, free: 21.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006615/0.4294, allocations: 315.7 kB / 381.7 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.4294, allocations: 2.109 kB / 381.7 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.94e-05/0.4295, allocations: 13.62 kB / 381.7 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.4295, allocations: 12.31 kB / 381.7 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005297/0.4301, allocations: 204.8 kB / 381.9 MB, free: 20.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002177/0.4323, allocations: 1.382 MB / 383.3 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003709/0.4327, allocations: 152.3 kB / 383.5 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.4329, allocations: 80.17 kB / 383.5 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.4329, allocations: 7.344 kB / 383.5 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000299/0.4332, allocations: 149.4 kB / 383.7 MB, free: 20.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.309e-06/0.4332, allocations: 224 / 383.7 MB, free: 20.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007248/0.434, allocations: 227.6 kB / 383.9 MB, free: 20.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.434, allocations: 114.4 kB / 384 MB, free: 19.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/0.4343, allocations: 228.5 kB / 384.2 MB, free: 19.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.4344, allocations: 30.67 kB / 384.3 MB, free: 19.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.4345, allocations: 259.8 kB / 384.5 MB, free: 19.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.318e-05/0.4346, allocations: 69.47 kB / 384.6 MB, free: 19.51 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.795e-05/0.4346, allocations: 7.25 kB / 384.6 MB, free: 19.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.771e-05/0.4347, allocations: 321.9 kB / 384.9 MB, free: 19.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/0.4348, allocations: 72.98 kB / 385 MB, free: 19.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.4351, allocations: 152.8 kB / 385.1 MB, free: 19.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.4353, allocations: 83.08 kB / 385.2 MB, free: 19.08 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.4353, allocations: 1.125 kB / 385.2 MB, free: 19.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007734/0.4361, allocations: 297 kB / 385.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.4362, allocations: 7.031 kB / 385.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.914e-06/0.4362, allocations: 2.125 kB / 385.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002932/0.4365, allocations: 57.86 kB / 385.6 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003062/0.4368, allocations: 62.25 kB / 385.6 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.4381, allocations: 1.414 MB / 387.1 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003549/0.4385, allocations: 44.92 kB / 387.1 MB, free: 17.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.562e-05/0.4385, allocations: 15.16 kB / 387.1 MB, free: 17.63 MB / 314.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.0001021/0.4386, allocations: 125.2 kB / 387.2 MB, free: 17.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.785e-05/0.4387, allocations: 33.02 kB / 387.3 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.408e-05/0.4388, allocations: 29.67 kB / 387.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.307e-06/0.4388, allocations: 3.359 kB / 387.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4388, allocations: 1.5 kB / 387.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.721e-06/0.4388, allocations: 4 kB / 387.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003885/0.4392, allocations: 332.9 kB / 387.6 MB, free: 17.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.241e-06/0.4393, allocations: 0 / 387.6 MB, free: 17.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002641/0.4395, allocations: 39.72 kB / 387.7 MB, free: 17.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000239/0.4398, allocations: 54.88 kB / 387.7 MB, free: 17.28 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.778e-05/0.4398, allocations: 10.34 kB / 387.7 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/0.4409, allocations: 1.32 MB / 389 MB, free: 16.01 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.45e-06/0.4409, allocations: 3.938 kB / 389.1 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008341/0.4418, allocations: 327.7 kB / 389.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.4419, allocations: 126.9 kB / 389.5 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.77e-05/0.442, allocations: 6.031 kB / 389.5 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002342/0.4423, allocations: 22.09 kB / 389.5 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.4424, allocations: 29.7 kB / 389.6 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.4424, allocations: 6.438 kB / 389.6 MB, free: 15.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002113/0.4426, allocations: 183.4 kB / 389.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.39e-07/0.4427, allocations: 4 kB / 389.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005433/0.4432, allocations: 95.69 kB / 389.8 MB, free: 15.7 MB / 314.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.0001511/0.4434, allocations: 116.3 kB / 389.9 MB, free: 15.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005913/0.444, allocations: 279.6 kB / 390.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.358e-06/0.444, allocations: 0 / 390.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002957/0.4443, allocations: 189.8 kB / 390.4 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.4446, allocations: 38.36 kB / 390.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.4461, allocations: 0.5125 MB / 391 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007857/0.4469, allocations: 0.7815 MB / 391.7 MB, free: 30.4 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.999e-05/0.447, allocations: 23.75 kB / 391.8 MB, free: 30.39 MB / 330.7 MB Notification: Performance of SimCode: time 1.725e-06/0.447, allocations: 3.938 kB / 391.8 MB, free: 30.39 MB / 330.7 MB Notification: Performance of Templates: time 0.007313/0.4543, allocations: 4.461 MB / 396.2 MB, free: 30.14 MB / 330.7 MB "Error: Could not read variable switch1.off in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch1.off from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch1.s in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch1.s from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.quenched in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.quenched from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.tSwitch in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.tSwitch from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! " Variables in the reference:time,inductor1.i,inductor2.i Variables in the result: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.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.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.p.i,switch1.p.v,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.v,time