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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.732/1.732, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.008e-05/2.019e-05, allocations: 8 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06995/0.06999, allocations: 38.77 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3538/0.4239, allocations: 68.7 MB / 330 MB, free: 3.609 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.4242, allocations: 70.34 kB / 330 MB, free: 3.574 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02377/0.4479, allocations: 5.967 MB / 336 MB, free: 14.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.448, allocations: 0 / 336 MB, free: 14.57 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.163e-05/0.448, allocations: 4 kB / 336 MB, free: 14.57 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.001078/0.4491, allocations: 0.5789 MB / 336.6 MB, free: 13.97 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.4492, allocations: 12.03 kB / 336.6 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.4493, allocations: 39.53 kB / 336.6 MB, free: 13.92 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.4497, allocations: 271.9 kB / 336.9 MB, free: 13.63 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.656e-05/0.4498, allocations: 68.17 kB / 337 MB, free: 13.55 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.175e-05/0.4499, allocations: 20 kB / 337 MB, free: 13.54 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005044/0.4504, allocations: 179.5 kB / 337.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006015/0.451, allocations: 273 kB / 337.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.4511, allocations: 4 kB / 337.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.4511, allocations: 0 / 337.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.4512, allocations: 8 kB / 337.5 MB, free: 13.19 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002508/0.4537, allocations: 1.329 MB / 338.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000434/0.4541, allocations: 157.5 kB / 338.9 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.4543, allocations: 69.84 kB / 339 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.4544, allocations: 15.83 kB / 339 MB, free: 11.78 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.4547, allocations: 138.9 kB / 339.2 MB, free: 11.65 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 3.543e-06/0.4547, allocations: 0 / 339.2 MB, free: 11.65 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007437/0.4555, allocations: 202.1 kB / 339.4 MB, free: 11.48 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.531e-05/0.4556, allocations: 106.8 kB / 339.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.4559, allocations: 207.2 kB / 339.7 MB, free: 11.18 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/0.4559, allocations: 29.64 kB / 339.7 MB, free: 11.14 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.4561, allocations: 266.7 kB / 339.9 MB, free: 10.91 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.903e-05/0.4562, allocations: 61.91 kB / 340 MB, free: 10.85 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.463e-05/0.4563, allocations: 0 / 340 MB, free: 10.85 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.4564, allocations: 329.7 kB / 340.3 MB, free: 10.53 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.4566, allocations: 55.5 kB / 340.4 MB, free: 10.5 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.4568, allocations: 148.2 kB / 340.5 MB, free: 10.34 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.457, allocations: 76.94 kB / 340.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.653e-06/0.457, allocations: 0 / 340.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005611/0.4576, allocations: 227.8 kB / 340.8 MB, free: 10.11 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.4577, allocations: 8 kB / 340.8 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.816e-06/0.4577, allocations: 288 / 340.8 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003136/0.458, allocations: 55.69 kB / 340.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003848/0.4584, allocations: 91.39 kB / 341 MB, free: 9.965 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/0.4602, allocations: 1.358 MB / 342.3 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/0.4606, allocations: 51.64 kB / 342.4 MB, free: 8.504 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.361e-05/0.4607, allocations: 11.12 kB / 342.4 MB, free: 8.496 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) type: Real 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.0001987/0.4609, allocations: 113 kB / 342.5 MB, free: 8.379 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.121e-05/0.461, allocations: 23.72 kB / 342.5 MB, free: 8.355 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.117e-05/0.461, allocations: 31.02 kB / 342.6 MB, free: 8.34 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.259e-06/0.461, allocations: 3.938 kB / 342.6 MB, free: 8.336 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.469e-06/0.4611, allocations: 0 / 342.6 MB, free: 8.336 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4611, allocations: 0 / 342.6 MB, free: 8.336 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004337/0.4615, allocations: 288.6 kB / 342.8 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.263e-06/0.4615, allocations: 0 / 342.8 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003434/0.4619, allocations: 63.52 kB / 342.9 MB, free: 8.004 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002795/0.4622, allocations: 43.2 kB / 342.9 MB, free: 7.965 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.4622, allocations: 11.73 kB / 343 MB, free: 7.957 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/0.4637, allocations: 1.279 MB / 344.2 MB, free: 6.609 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.815e-06/0.4638, allocations: 0 / 344.2 MB, free: 6.609 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000771/0.4645, allocations: 300.7 kB / 344.5 MB, free: 6.359 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.4647, allocations: 114.7 kB / 344.6 MB, free: 6.238 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.965e-05/0.4648, allocations: 8 kB / 344.7 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/0.465, allocations: 23.97 kB / 344.7 MB, free: 6.207 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.4652, allocations: 27.64 kB / 344.7 MB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.4652, allocations: 11.98 kB / 344.7 MB, free: 6.172 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001857/0.4654, allocations: 149.8 kB / 344.9 MB, free: 6.051 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.4654, allocations: 7.938 kB / 344.9 MB, free: 6.043 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005583/0.466, allocations: 95.62 kB / 345 MB, free: 5.949 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) * 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.0001859/0.4662, allocations: 103.2 kB / 345.1 MB, free: 5.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005921/0.4668, allocations: 262.8 kB / 345.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.209e-06/0.4668, allocations: 0 / 345.3 MB, free: 5.625 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000322/0.4671, allocations: 174.5 kB / 345.5 MB, free: 5.469 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.4674, allocations: 27.23 kB / 345.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.469, allocations: 0.4975 MB / 346 MB, free: 4.953 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004848/0.4695, allocations: 0.7791 MB / 346.8 MB, free: 4.148 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.471e-05/0.4696, allocations: 19.44 kB / 346.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of SimCode: time 3.598e-06/0.4697, allocations: 4 kB / 346.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of Templates: time 0.008438/0.4781, allocations: 4.267 MB / 351.1 MB, free: 15.9 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! " Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:_D_whenCondition1,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.useHeatPort,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.useHeatPort,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,switch1.s,switch1.useHeatPort,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.on,switch2.p.i,switch2.p.v,switch2.quenched,switch2.tSwitch,switch2.useHeatPort,switch2.v,time