Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.049/2.049, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004801/0.0004804, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09733, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4214/0.5188, allocations: 74.48 MB / 383.4 MB, free: 14.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003693/0.5192, allocations: 75.47 kB / 383.5 MB, free: 14.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02907/0.5483, allocations: 6.092 MB / 389.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5484, allocations: 0 / 389.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.052e-05/0.5484, allocations: 3.875 kB / 389.6 MB, free: 14.03 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.001248/0.5497, allocations: 0.6059 MB / 390.2 MB, free: 13.56 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.5497, allocations: 15.5 kB / 390.2 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.5498, allocations: 42.89 kB / 390.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.5502, allocations: 264.9 kB / 390.5 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.266e-05/0.5503, allocations: 73.56 kB / 390.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.216e-05/0.5504, allocations: 34.03 kB / 390.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007998/0.5512, allocations: 334.2 kB / 391 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.5512, allocations: 7.938 kB / 391 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.5513, allocations: 14.44 kB / 391 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.5513, allocations: 11.64 kB / 391 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006382/0.552, allocations: 220.3 kB / 391.2 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002569/0.5546, allocations: 1.391 MB / 392.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000471/0.5551, allocations: 165.7 kB / 392.8 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.5551, allocations: 0 / 392.8 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004056/0.5555, allocations: 165 kB / 392.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.914e-06/0.5555, allocations: 3.906 kB / 392.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001653/0.5572, allocations: 411.2 kB / 393.3 MB, free: 12.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.5573, allocations: 107 kB / 393.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003287/0.5576, allocations: 262.5 kB / 393.7 MB, free: 11.85 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.5577, allocations: 32.92 kB / 393.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.5578, allocations: 255.1 kB / 394 MB, free: 11.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.829e-05/0.5579, allocations: 83.89 kB / 394.1 MB, free: 11.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.073e-05/0.5579, allocations: 6.812 kB / 394.1 MB, free: 11.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.464e-05/0.558, allocations: 323.8 kB / 394.4 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.5582, allocations: 76.77 kB / 394.5 MB, free: 11.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.5585, allocations: 163.6 kB / 394.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.5588, allocations: 92.52 kB / 394.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.5588, allocations: 0 / 394.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009807/0.5598, allocations: 314.5 kB / 395 MB, free: 11.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.5599, allocations: 3.812 kB / 395 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.5599, allocations: 3.906 kB / 395 MB, free: 11.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003511/0.5602, allocations: 59.61 kB / 395.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004132/0.5607, allocations: 58.75 kB / 395.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.5621, allocations: 1.42 MB / 396.6 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004756/0.5626, allocations: 48.11 kB / 396.6 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.5627, allocations: 22.88 kB / 396.6 MB, free: 9.676 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.000233/0.5629, allocations: 148.8 kB / 396.8 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.346e-05/0.563, allocations: 31.17 kB / 396.8 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.85e-05/0.563, allocations: 25.97 kB / 396.8 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.563, allocations: 3.875 kB / 396.8 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.716e-05/0.5631, allocations: 0 / 396.8 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.5631, allocations: 2.672 kB / 396.8 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.5635, allocations: 344.3 kB / 397.2 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5635, allocations: 0 / 397.2 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003406/0.5639, allocations: 40.23 kB / 397.2 MB, free: 9.336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002898/0.5642, allocations: 53.8 kB / 397.3 MB, free: 9.328 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.5642, allocations: 7.047 kB / 397.3 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/0.5655, allocations: 1.328 MB / 398.6 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5655, allocations: 4.062 kB / 398.6 MB, free: 8.051 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.5666, allocations: 347.7 kB / 398.9 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.5668, allocations: 120.8 kB / 399.1 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.152e-05/0.5668, allocations: 11.7 kB / 399.1 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003129/0.5672, allocations: 25.67 kB / 399.1 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.5673, allocations: 30.05 kB / 399.1 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.217e-05/0.5673, allocations: 6.906 kB / 399.1 MB, free: 7.836 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002296/0.5676, allocations: 190.9 kB / 399.3 MB, free: 7.754 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5676, allocations: 0 / 399.3 MB, free: 7.754 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005394/0.5681, allocations: 90.56 kB / 399.4 MB, free: 7.742 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.0001468/0.5683, allocations: 110.3 kB / 399.5 MB, free: 7.652 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008047/0.5691, allocations: 312.6 kB / 399.8 MB, free: 7.527 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5691, allocations: 3.875 kB / 399.8 MB, free: 7.527 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003961/0.5695, allocations: 196.3 kB / 400 MB, free: 7.414 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.5699, allocations: 40.95 kB / 400.1 MB, free: 7.406 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.5721, allocations: 0.8617 MB / 400.9 MB, free: 6.895 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.5723, allocations: 0.7774 MB / 401.7 MB, free: 6.195 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.5725, allocations: 26.56 kB / 401.7 MB, free: 6.184 MB / 314.7 MB Notification: Performance of SimCode: time 8.61e-07/0.5725, allocations: 0 / 401.7 MB, free: 6.184 MB / 314.7 MB Notification: Performance of Templates: time 0.008571/0.581, allocations: 4.48 MB / 406.2 MB, free: 5.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