Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.529/1.529, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003517, allocations: 12 kB / 233.2 MB, free: 3.02 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06834/0.06871, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2812/0.35, allocations: 69.45 MB / 341.5 MB, free: 4.48 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.3502, allocations: 68.03 kB / 341.5 MB, free: 4.445 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02444/0.3747, allocations: 6.024 MB / 347.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3748, allocations: 0 / 347.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.417e-05/0.3748, allocations: 8 kB / 347.6 MB, free: 15.29 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.001232/0.376, allocations: 0.6111 MB / 348.2 MB, free: 14.66 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3761, allocations: 8.031 kB / 348.2 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.3762, allocations: 39.53 kB / 348.2 MB, free: 14.61 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.3767, allocations: 274.1 kB / 348.5 MB, free: 14.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.3768, allocations: 76.75 kB / 348.6 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.988e-05/0.3769, allocations: 29.5 kB / 348.6 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008119/0.3777, allocations: 344.4 kB / 348.9 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.3777, allocations: 0 / 348.9 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.303e-05/0.3778, allocations: 9.875 kB / 348.9 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.3778, allocations: 8 kB / 348.9 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006917/0.3785, allocations: 244.1 kB / 349.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/0.3813, allocations: 1.404 MB / 350.6 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006437/0.382, allocations: 209.5 kB / 350.8 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.382, allocations: 4 kB / 350.8 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004508/0.3825, allocations: 168.5 kB / 351 MB, free: 12.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 3.293e-06/0.3825, allocations: 0 / 351 MB, free: 12.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.001625/0.3842, allocations: 451 kB / 351.4 MB, free: 11.76 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.109e-05/0.3843, allocations: 102.8 kB / 351.5 MB, free: 11.64 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003511/0.3846, allocations: 232.9 kB / 351.7 MB, free: 11.45 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.3847, allocations: 33.02 kB / 351.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.3849, allocations: 262.4 kB / 352 MB, free: 11.18 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.868e-05/0.385, allocations: 65.59 kB / 352.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/0.385, allocations: 3.312 kB / 352.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.3852, allocations: 325.5 kB / 352.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002959/0.3855, allocations: 82.95 kB / 352.5 MB, free: 10.75 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003612/0.3859, allocations: 167.9 kB / 352.6 MB, free: 10.57 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.3862, allocations: 97.56 kB / 352.7 MB, free: 10.51 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.872e-06/0.3862, allocations: 8 kB / 352.7 MB, free: 10.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008536/0.3871, allocations: 301.4 kB / 353 MB, free: 10.27 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.3872, allocations: 8 kB / 353.1 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.611e-06/0.3872, allocations: 0 / 353.1 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003307/0.3875, allocations: 57.38 kB / 353.1 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003941/0.3879, allocations: 87.34 kB / 353.2 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/0.3898, allocations: 1.409 MB / 354.6 MB, free: 8.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.3902, allocations: 54.73 kB / 354.7 MB, free: 8.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.3903, allocations: 11.31 kB / 354.7 MB, free: 8.582 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.0002522/0.3905, allocations: 150 kB / 354.8 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.075e-05/0.3906, allocations: 27.67 kB / 354.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.193e-05/0.3907, allocations: 31.86 kB / 354.9 MB, free: 8.398 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.917e-06/0.3907, allocations: 0 / 354.9 MB, free: 8.398 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.822e-06/0.3907, allocations: 0 / 354.9 MB, free: 8.398 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.3907, allocations: 0 / 354.9 MB, free: 8.398 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004848/0.3912, allocations: 344.4 kB / 355.2 MB, free: 8.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.947e-06/0.3912, allocations: 11.83 kB / 355.2 MB, free: 8.059 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003475/0.3916, allocations: 51.97 kB / 355.3 MB, free: 8.008 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002633/0.3919, allocations: 57 kB / 355.3 MB, free: 7.961 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.898e-05/0.3919, allocations: 7.984 kB / 355.3 MB, free: 7.953 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001613/0.3935, allocations: 1.33 MB / 356.7 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3936, allocations: 0 / 356.7 MB, free: 6.551 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.3947, allocations: 384.7 kB / 357 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001741/0.3949, allocations: 122 kB / 357.2 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.29e-05/0.395, allocations: 2.188 kB / 357.2 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.3952, allocations: 27.05 kB / 357.2 MB, free: 6.078 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.3954, allocations: 30.62 kB / 357.2 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.3954, allocations: 3.25 kB / 357.2 MB, free: 6.051 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002557/0.3957, allocations: 191.5 kB / 357.4 MB, free: 5.895 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.97e-07/0.3957, allocations: 0 / 357.4 MB, free: 5.895 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005483/0.3962, allocations: 92.78 kB / 357.5 MB, free: 5.812 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.0001798/0.3964, allocations: 114.6 kB / 357.6 MB, free: 5.695 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00088/0.3973, allocations: 331.6 kB / 357.9 MB, free: 5.41 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.285e-06/0.3973, allocations: 0 / 357.9 MB, free: 5.41 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004605/0.3978, allocations: 211.1 kB / 358.1 MB, free: 5.219 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.3981, allocations: 35.11 kB / 358.2 MB, free: 5.195 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.4003, allocations: 0.8578 MB / 359 MB, free: 4.344 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.4008, allocations: 0.7719 MB / 359.8 MB, free: 3.543 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.93e-05/0.4009, allocations: 27.42 kB / 359.8 MB, free: 3.52 MB / 282.7 MB Notification: Performance of SimCode: time 1.509e-06/0.4009, allocations: 0 / 359.8 MB, free: 3.52 MB / 282.7 MB Notification: Performance of Templates: time 0.008574/0.4095, allocations: 4.453 MB / 364.3 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