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.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.709/1.709, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.26e-05/3.272e-05, allocations: 4 kB / 225 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2327, allocations: 38.77 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1269/0.3597, allocations: 69.36 MB / 333.1 MB, free: 4.414 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/0.36, allocations: 71.97 kB / 333.2 MB, free: 4.344 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02493/0.3849, allocations: 5.99 MB / 339.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.239e-06/0.3849, allocations: 0 / 339.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.177e-05/0.385, allocations: 4 kB / 339.2 MB, free: 14.32 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001133/0.3861, allocations: 0.5771 MB / 339.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3862, allocations: 12.03 kB / 339.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.3863, allocations: 43.53 kB / 339.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004189/0.3867, allocations: 263.7 kB / 340.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.3869, allocations: 84.17 kB / 340.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.093e-05/0.387, allocations: 32 kB / 340.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007603/0.3877, allocations: 318.7 kB / 340.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.3878, allocations: 3.938 kB / 340.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.665e-05/0.3878, allocations: 16 kB / 340.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.3879, allocations: 8 kB / 340.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005242/0.3884, allocations: 193.1 kB / 340.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002876/0.3913, allocations: 1.407 MB / 342.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004889/0.3918, allocations: 162.6 kB / 342.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002126/0.392, allocations: 80.83 kB / 342.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.3921, allocations: 4 kB / 342.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000322/0.3924, allocations: 137.9 kB / 342.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 3.432e-06/0.3924, allocations: 3.938 kB / 342.5 MB, free: 10.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007502/0.3932, allocations: 218.4 kB / 342.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.569e-05/0.3933, allocations: 114.8 kB / 342.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003926/0.3937, allocations: 223.2 kB / 343 MB, free: 10.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.849e-05/0.3938, allocations: 29.7 kB / 343.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002055/0.394, allocations: 266.1 kB / 343.3 MB, free: 9.863 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.533e-05/0.3941, allocations: 59.2 kB / 343.4 MB, free: 9.805 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.3941, allocations: 4 kB / 343.4 MB, free: 9.801 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.3943, allocations: 326.8 kB / 343.7 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.3945, allocations: 64 kB / 343.8 MB, free: 9.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.3948, allocations: 154.2 kB / 343.9 MB, free: 9.223 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/0.395, allocations: 72 kB / 344 MB, free: 9.152 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.68e-06/0.395, allocations: 4 kB / 344 MB, free: 9.148 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006597/0.3957, allocations: 254.2 kB / 344.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.3957, allocations: 8 kB / 344.3 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3958, allocations: 0 / 344.3 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003372/0.3961, allocations: 56.97 kB / 344.3 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004064/0.3965, allocations: 83.89 kB / 344.4 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.3984, allocations: 1.408 MB / 345.8 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/0.3988, allocations: 51.8 kB / 345.9 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.871e-05/0.3989, allocations: 16 kB / 345.9 MB, free: 7.137 MB / 298.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: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001469/0.399, allocations: 124 kB / 346 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.3991, allocations: 23.72 kB / 346 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.956e-05/0.3992, allocations: 33.95 kB / 346 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3992, allocations: 3.953 kB / 346 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.505e-06/0.3992, allocations: 4 kB / 346.1 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.23e-06/0.3992, allocations: 3.984 kB / 346.1 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000499/0.3997, allocations: 337.2 kB / 346.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.422e-06/0.3998, allocations: 0 / 346.4 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003564/0.4001, allocations: 63.89 kB / 346.4 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002607/0.4004, allocations: 56.81 kB / 346.5 MB, free: 6.438 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.4005, allocations: 4 kB / 346.5 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001574/0.402, allocations: 1.323 MB / 347.8 MB, free: 4.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.644e-06/0.4021, allocations: 7.922 kB / 347.8 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008767/0.403, allocations: 322.4 kB / 348.2 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.4031, allocations: 112.8 kB / 348.3 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.962e-05/0.4032, allocations: 11.94 kB / 348.3 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.4035, allocations: 23.98 kB / 348.3 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.4036, allocations: 36 kB / 348.3 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.4037, allocations: 4 kB / 348.3 MB, free: 4.43 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002577/0.4039, allocations: 183.1 kB / 348.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.59e-07/0.4039, allocations: 0 / 348.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005559/0.4045, allocations: 87.78 kB / 348.6 MB, free: 4.164 MB / 298.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: 4 ($whenCondition1,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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.0001963/0.4047, allocations: 119.2 kB / 348.7 MB, free: 4.035 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006754/0.4054, allocations: 280.1 kB / 349 MB, free: 3.754 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.288e-06/0.4054, allocations: 0 / 349 MB, free: 3.754 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003573/0.4058, allocations: 181.7 kB / 349.2 MB, free: 3.566 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.4061, allocations: 32.55 kB / 349.2 MB, free: 3.535 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.4078, allocations: 0.5019 MB / 349.7 MB, free: 3.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004908/0.4083, allocations: 0.7796 MB / 350.5 MB, free: 2.203 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.214e-05/0.4084, allocations: 23.44 kB / 350.5 MB, free: 2.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.708e-06/0.4084, allocations: 0 / 350.5 MB, free: 2.18 MB / 298.7 MB Notification: Performance of Templates: time 0.008533/0.417, allocations: 4.451 MB / 355 MB, free: 13.73 MB / 314.7 MB "Error: Could not read variable sineVoltage.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable sineVoltage.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch1.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch1.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.off in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.off from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.on in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.on from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.quenched in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.quenched from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat failed! Error: Could not read variable switch2.tSwitch in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat. Warning: Get data of variable switch2.tSwitch from file Modelica_3.2.1_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.level,switch1.n.i,switch1.n.v,switch1.p.i,switch1.p.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.p.i,switch2.p.v,switch2.v,time