Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.894/1.894, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003604, allocations: 12 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07746/0.07784, allocations: 44.51 MB / 308.4 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3202/0.3981, allocations: 74.48 MB / 382.9 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.3984, allocations: 70.25 kB / 383 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02209/0.4205, allocations: 6.092 MB / 389.1 MB, free: 18.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4205, allocations: 4 kB / 389.1 MB, free: 18.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.4206, allocations: 7.875 kB / 389.1 MB, free: 18.02 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.0009426/0.4215, allocations: 0.5994 MB / 389.7 MB, free: 17.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.4216, allocations: 11.62 kB / 389.7 MB, free: 17.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.241e-05/0.4217, allocations: 43.23 kB / 389.8 MB, free: 17.53 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.422, allocations: 264.2 kB / 390 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.072e-05/0.4221, allocations: 73.22 kB / 390.1 MB, free: 17.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.828e-05/0.4222, allocations: 33.59 kB / 390.1 MB, free: 17.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006314/0.4228, allocations: 337.2 kB / 390.4 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.4228, allocations: 0 / 390.4 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.28e-05/0.4229, allocations: 16.28 kB / 390.5 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.4229, allocations: 7.781 kB / 390.5 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.4235, allocations: 225 kB / 390.7 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.4256, allocations: 1.391 MB / 392.1 MB, free: 16.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.426, allocations: 165.6 kB / 392.2 MB, free: 16.31 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.426, allocations: 7.719 kB / 392.2 MB, free: 16.31 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000351/0.4264, allocations: 162 kB / 392.4 MB, free: 16.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 4.151e-06/0.4264, allocations: 3.984 kB / 392.4 MB, free: 16.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001294/0.4277, allocations: 415.5 kB / 392.8 MB, free: 16.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.4278, allocations: 111.1 kB / 392.9 MB, free: 15.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002481/0.428, allocations: 239.4 kB / 393.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.4281, allocations: 29.58 kB / 393.2 MB, free: 15.81 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.801e-05/0.4282, allocations: 258.5 kB / 393.4 MB, free: 15.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.768e-05/0.4283, allocations: 71.53 kB / 393.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.838e-05/0.4283, allocations: 11.41 kB / 393.5 MB, free: 15.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.383e-05/0.4284, allocations: 324.7 kB / 393.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.4286, allocations: 77.55 kB / 393.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.4288, allocations: 158 kB / 394.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.4291, allocations: 96.27 kB / 394.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.862e-06/0.4291, allocations: 0 / 394.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008315/0.43, allocations: 313.8 kB / 394.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.43, allocations: 7.719 kB / 394.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.179e-06/0.43, allocations: 3.875 kB / 394.5 MB, free: 15.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002877/0.4303, allocations: 56.78 kB / 394.5 MB, free: 15.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.4306, allocations: 64.31 kB / 394.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.4319, allocations: 1.415 MB / 396 MB, free: 13.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.4322, allocations: 46.2 kB / 396.1 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/0.4323, allocations: 17.7 kB / 396.1 MB, free: 13.68 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 () * Number of clocked 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.0001927/0.4325, allocations: 146.8 kB / 396.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.4325, allocations: 27.12 kB / 396.2 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.519e-05/0.4326, allocations: 32.48 kB / 396.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.916e-06/0.4326, allocations: 3.844 kB / 396.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.368e-06/0.4326, allocations: 0 / 396.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.504e-06/0.4327, allocations: 4 kB / 396.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003511/0.433, allocations: 337.5 kB / 396.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.884e-06/0.433, allocations: 3.719 kB / 396.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.4333, allocations: 39.34 kB / 396.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002481/0.4336, allocations: 57.8 kB / 396.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.4336, allocations: 3.312 kB / 396.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.4348, allocations: 1.335 MB / 398.1 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.4348, allocations: 0 / 398.1 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008905/0.4357, allocations: 349.2 kB / 398.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.4358, allocations: 119.3 kB / 398.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.761e-05/0.4359, allocations: 7.453 kB / 398.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.4362, allocations: 21.89 kB / 398.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.4363, allocations: 39.61 kB / 398.6 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.4363, allocations: 3.875 kB / 398.6 MB, free: 11.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001953/0.4365, allocations: 187.3 kB / 398.8 MB, free: 11.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.99e-07/0.4365, allocations: 3.938 kB / 398.8 MB, free: 11.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005071/0.437, allocations: 88.81 kB / 398.9 MB, free: 11.75 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) * Number of clocked states: 0 () * 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.0001277/0.4372, allocations: 109.1 kB / 399 MB, free: 11.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006891/0.4379, allocations: 311.1 kB / 399.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.4379, allocations: 0 / 399.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003214/0.4382, allocations: 202.5 kB / 399.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.4385, allocations: 30.52 kB / 399.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.4401, allocations: 0.8672 MB / 400.4 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.4404, allocations: 0.7801 MB / 401.1 MB, free: 10.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.944e-05/0.4405, allocations: 22.59 kB / 401.2 MB, free: 10.19 MB / 314.7 MB Notification: Performance of SimCode: time 1.785e-06/0.4405, allocations: 0 / 401.2 MB, free: 10.19 MB / 314.7 MB Notification: Performance of Templates: time 0.006864/0.4474, allocations: 4.495 MB / 405.7 MB, free: 9.934 MB / 314.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