Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) 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.758/1.758, allocations: 171.1 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005128/0.0005131, allocations: 15.98 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.109, allocations: 38.76 MB / 272.5 MB, free: 12.24 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3683/0.4773, allocations: 69.45 MB / 342 MB, free: 4.5 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.4776, allocations: 70.59 kB / 342.1 MB, free: 4.465 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02641/0.5041, allocations: 6.017 MB / 348.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5041, allocations: 0 / 348.1 MB, free: 15.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.479e-05/0.5041, allocations: 8 kB / 348.1 MB, free: 15.33 MB / 282.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.001477/0.5056, allocations: 0.6066 MB / 348.7 MB, free: 14.7 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.5057, allocations: 12.03 kB / 348.7 MB, free: 14.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.5058, allocations: 43.53 kB / 348.7 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.5063, allocations: 272.5 kB / 349 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.5064, allocations: 82.75 kB / 349.1 MB, free: 14.28 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.475e-05/0.5065, allocations: 30.12 kB / 349.1 MB, free: 14.26 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009128/0.5074, allocations: 342.1 kB / 349.5 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.5074, allocations: 4 kB / 349.5 MB, free: 13.99 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.8e-05/0.5075, allocations: 10.69 kB / 349.5 MB, free: 13.99 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.5075, allocations: 11.98 kB / 349.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007959/0.5083, allocations: 237.8 kB / 349.7 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003171/0.5115, allocations: 1.405 MB / 351.1 MB, free: 12.51 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007602/0.5123, allocations: 206.5 kB / 351.3 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.5124, allocations: 4 kB / 351.3 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005119/0.5129, allocations: 165.1 kB / 351.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 2.184e-06/0.5129, allocations: 0 / 351.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.002041/0.5149, allocations: 454 kB / 351.9 MB, free: 11.79 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.083e-05/0.5151, allocations: 110.8 kB / 352 MB, free: 11.66 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004161/0.5155, allocations: 256.3 kB / 352.3 MB, free: 11.45 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.5156, allocations: 33.14 kB / 352.3 MB, free: 11.41 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.5158, allocations: 254.6 kB / 352.6 MB, free: 11.19 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.827e-05/0.5159, allocations: 70.02 kB / 352.6 MB, free: 11.13 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.986e-05/0.5159, allocations: 6.562 kB / 352.6 MB, free: 11.12 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.516, allocations: 320 kB / 353 MB, free: 10.81 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.5164, allocations: 86.58 kB / 353 MB, free: 10.75 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004348/0.5168, allocations: 171.7 kB / 353.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004026/0.5173, allocations: 91.77 kB / 353.3 MB, free: 10.52 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.5173, allocations: 0 / 353.3 MB, free: 10.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009843/0.5183, allocations: 313.4 kB / 353.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.5183, allocations: 8 kB / 353.6 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.5183, allocations: 0 / 353.6 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004033/0.5188, allocations: 59.02 kB / 353.7 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005601/0.5193, allocations: 87.52 kB / 353.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001921/0.5213, allocations: 1.408 MB / 355.2 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/0.5218, allocations: 53.27 kB / 355.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.5218, allocations: 12 kB / 355.2 MB, free: 8.578 MB / 282.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 () * Number of clocked 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.000255/0.5221, allocations: 143.3 kB / 355.4 MB, free: 8.449 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.44e-05/0.5222, allocations: 31.67 kB / 355.4 MB, free: 8.418 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.466e-05/0.5223, allocations: 28.55 kB / 355.4 MB, free: 8.41 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.5223, allocations: 4 kB / 355.4 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.5223, allocations: 0 / 355.4 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.5223, allocations: 0 / 355.4 MB, free: 8.406 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005121/0.5228, allocations: 349.8 kB / 355.8 MB, free: 8.074 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.5228, allocations: 7.938 kB / 355.8 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004846/0.5233, allocations: 59.89 kB / 355.8 MB, free: 8.008 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003107/0.5237, allocations: 53.25 kB / 355.9 MB, free: 7.961 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.5237, allocations: 3.375 kB / 355.9 MB, free: 7.961 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.5254, allocations: 1.334 MB / 357.2 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5254, allocations: 4.031 kB / 357.2 MB, free: 6.547 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.5269, allocations: 384.8 kB / 357.6 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.5271, allocations: 119.6 kB / 357.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.055e-05/0.5271, allocations: 3.25 kB / 357.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/0.5275, allocations: 19.98 kB / 357.7 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.5276, allocations: 37.88 kB / 357.8 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.5277, allocations: 4 kB / 357.8 MB, free: 6.047 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002668/0.5279, allocations: 192.6 kB / 358 MB, free: 5.891 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5279, allocations: 0 / 358 MB, free: 5.891 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005544/0.5285, allocations: 91.22 kB / 358.1 MB, free: 5.809 MB / 282.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) * Number of clocked states: 0 () * 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.0001848/0.5287, allocations: 107 kB / 358.2 MB, free: 5.699 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.5298, allocations: 329.8 kB / 358.5 MB, free: 5.418 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5298, allocations: 4 kB / 358.5 MB, free: 5.414 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000541/0.5304, allocations: 208.3 kB / 358.7 MB, free: 5.223 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.5307, allocations: 35.28 kB / 358.7 MB, free: 5.199 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.5336, allocations: 0.8506 MB / 359.6 MB, free: 4.355 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004178/0.534, allocations: 0.7757 MB / 360.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.5342, allocations: 23.44 kB / 360.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5342, allocations: 0 / 360.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of Templates: time 0.01065/0.5448, allocations: 4.467 MB / 364.8 MB, free: 15.11 MB / 298.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