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.918/1.918, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003697, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07975/0.08014, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003744/0.08393, allocations: 2.551 MB / 310.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.08565, allocations: 0.7648 MB / 311.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002077/0.08589, allocations: 4 kB / 311.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.08601, allocations: 51.59 kB / 311.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003089/0.08634, allocations: 127.6 kB / 311.9 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003628/0.08671, allocations: 79.84 kB / 311.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004463/0.08717, allocations: 283.3 kB / 312.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.08743, allocations: 103 kB / 312.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.08768, allocations: 135.5 kB / 312.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.08794, allocations: 147.4 kB / 312.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.334e-05/0.08801, allocations: 20 kB / 312.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.515e-05/0.08809, allocations: 20 kB / 312.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.955e-05/0.08818, allocations: 59.75 kB / 312.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.08831, allocations: 93.52 kB / 312.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004026/0.08872, allocations: 299.4 kB / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.701e-06/0.08874, allocations: 0 / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.045e-06/0.08875, allocations: 0 / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.08877, allocations: 0 / 313.1 MB, free: 12.29 MB / 266.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.001151/0.08994, allocations: 0.604 MB / 313.7 MB, free: 11.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.08999, allocations: 8.031 kB / 313.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.0901, allocations: 43.48 kB / 313.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004444/0.09056, allocations: 272.2 kB / 314 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.09068, allocations: 76.06 kB / 314.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.603e-05/0.09077, allocations: 35.98 kB / 314.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007689/0.09155, allocations: 334.7 kB / 314.4 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.09159, allocations: 0 / 314.4 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/0.09164, allocations: 12 kB / 314.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.09167, allocations: 15.98 kB / 314.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006138/0.0923, allocations: 222.5 kB / 314.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002591/0.0949, allocations: 1.387 MB / 316.1 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004616/0.09539, allocations: 170.6 kB / 316.2 MB, free: 8.891 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.09544, allocations: 0 / 316.2 MB, free: 8.891 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003967/0.09584, allocations: 163.3 kB / 316.4 MB, free: 8.715 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.548e-06/0.09586, allocations: 0 / 316.4 MB, free: 8.715 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001405/0.09728, allocations: 420.7 kB / 316.8 MB, free: 8.277 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.031e-05/0.09739, allocations: 111.1 kB / 316.9 MB, free: 8.145 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.09777, allocations: 262.5 kB / 317.2 MB, free: 7.883 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/0.09783, allocations: 29.7 kB / 317.2 MB, free: 7.848 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.09804, allocations: 258.3 kB / 317.4 MB, free: 7.594 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.496e-05/0.09815, allocations: 74.98 kB / 317.5 MB, free: 7.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.25e-05/0.09818, allocations: 11.94 kB / 317.5 MB, free: 7.508 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.09837, allocations: 322.8 kB / 317.8 MB, free: 7.184 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.09862, allocations: 88.55 kB / 317.9 MB, free: 7.098 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003409/0.09898, allocations: 169.5 kB / 318.1 MB, free: 6.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.09927, allocations: 101.1 kB / 318.2 MB, free: 6.793 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.806e-06/0.09929, allocations: 0 / 318.2 MB, free: 6.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009592/0.1003, allocations: 324.1 kB / 318.5 MB, free: 6.469 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.1003, allocations: 8 kB / 318.5 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1003, allocations: 7.938 kB / 318.5 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/0.1007, allocations: 60.97 kB / 318.6 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.101, allocations: 63.91 kB / 318.6 MB, free: 6.328 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001828/0.1028, allocations: 1.408 MB / 320 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.1032, allocations: 55.59 kB / 320.1 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.1033, allocations: 12.19 kB / 320.1 MB, free: 4.715 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (38): * Single equations (assignments): 37 * 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.0002423/0.1035, allocations: 151.8 kB / 320.3 MB, free: 4.559 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.1036, allocations: 35.61 kB / 320.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.741e-05/0.1037, allocations: 26.14 kB / 320.3 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.045e-06/0.1037, allocations: 4 kB / 320.3 MB, free: 4.496 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.243e-06/0.1037, allocations: 7.984 kB / 320.3 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1037, allocations: 0 / 320.3 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000477/0.1042, allocations: 333.4 kB / 320.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.242e-06/0.1042, allocations: 0 / 320.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/0.1045, allocations: 43.97 kB / 320.7 MB, free: 4.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002615/0.1048, allocations: 56.75 kB / 320.8 MB, free: 4.012 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/0.1048, allocations: 4 kB / 320.8 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/0.1065, allocations: 1.331 MB / 322.1 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.888e-06/0.1065, allocations: 4.062 kB / 322.1 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.1075, allocations: 357.4 kB / 322.4 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001675/0.1077, allocations: 112.8 kB / 322.6 MB, free: 2.039 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.054e-05/0.1078, allocations: 15.94 kB / 322.6 MB, free: 2.023 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.108, allocations: 23.98 kB / 322.6 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.1081, allocations: 23.95 kB / 322.6 MB, free: 1.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.1082, allocations: 11.98 kB / 322.6 MB, free: 1.965 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002595/0.1084, allocations: 178 kB / 322.8 MB, free: 1.793 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.367e-06/0.1085, allocations: 4 kB / 322.8 MB, free: 1.789 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005487/0.109, allocations: 83.84 kB / 322.9 MB, free: 1.707 MB / 266.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.0001651/0.1092, allocations: 107.2 kB / 323 MB, free: 1.594 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008106/0.11, allocations: 324.9 kB / 323.3 MB, free: 1.266 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.593e-06/0.11, allocations: 0 / 323.3 MB, free: 1.266 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004088/0.1105, allocations: 202.5 kB / 323.5 MB, free: 1.055 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.1108, allocations: 32.48 kB / 323.5 MB, free: 1.023 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.1128, allocations: 0.8637 MB / 324.4 MB, free: 132 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005019/0.1133, allocations: 0.7833 MB / 325.2 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.097e-05/0.1134, allocations: 27.44 kB / 325.2 MB, free: 15.3 MB / 282.7 MB Notification: Performance of SimCode: time 1.76e-06/0.1135, allocations: 0 / 325.2 MB, free: 15.3 MB / 282.7 MB Notification: Performance of Templates: time 0.008793/0.1223, allocations: 4.465 MB / 329.7 MB, free: 10.82 MB / 282.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