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.65/1.65, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.586e-05/2.606e-05, allocations: 4 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.204/0.204, allocations: 38.77 MB / 267.6 MB, free: 9.445 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1027/0.3068, allocations: 69.36 MB / 336.9 MB, free: 3.984 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.3071, allocations: 75.95 kB / 337 MB, free: 3.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02457/0.3317, allocations: 6.013 MB / 343 MB, free: 13.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.18e-06/0.3317, allocations: 0 / 343 MB, free: 13.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.522e-05/0.3318, allocations: 8.188 kB / 343 MB, free: 13.86 MB / 298.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.001119/0.3329, allocations: 0.581 MB / 343.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3329, allocations: 8.031 kB / 343.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.3331, allocations: 43.53 kB / 343.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004236/0.3335, allocations: 271.7 kB / 343.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.3336, allocations: 80.19 kB / 344 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.936e-05/0.3337, allocations: 28 kB / 344 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007056/0.3344, allocations: 316.3 kB / 344.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3345, allocations: 0 / 344.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.997e-05/0.3345, allocations: 12 kB / 344.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.3345, allocations: 19.94 kB / 344.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005285/0.3351, allocations: 202.2 kB / 344.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002761/0.3379, allocations: 1.41 MB / 346 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005013/0.3384, allocations: 172.2 kB / 346.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.3386, allocations: 77.94 kB / 346.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.3387, allocations: 4 kB / 346.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000327/0.339, allocations: 142.2 kB / 346.4 MB, free: 10.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 3.177e-06/0.339, allocations: 0 / 346.4 MB, free: 10.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007716/0.3398, allocations: 218 kB / 346.6 MB, free: 10.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.306e-05/0.3399, allocations: 106.8 kB / 346.7 MB, free: 9.906 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003398/0.3402, allocations: 231.1 kB / 346.9 MB, free: 9.676 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.3403, allocations: 37.7 kB / 347 MB, free: 9.633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001918/0.3405, allocations: 262.1 kB / 347.2 MB, free: 9.375 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.375e-05/0.3406, allocations: 59.11 kB / 347.3 MB, free: 9.316 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.221e-05/0.3406, allocations: 8 kB / 347.3 MB, free: 9.309 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3408, allocations: 322.8 kB / 347.6 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.341, allocations: 64 kB / 347.7 MB, free: 8.922 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.3413, allocations: 154.2 kB / 347.8 MB, free: 8.734 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.3415, allocations: 72 kB / 347.9 MB, free: 8.664 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.175e-06/0.3416, allocations: 0 / 347.9 MB, free: 8.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006457/0.3422, allocations: 262 kB / 348.1 MB, free: 8.398 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3422, allocations: 8 kB / 348.1 MB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.421e-06/0.3423, allocations: 4.281 kB / 348.1 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003215/0.3426, allocations: 60.81 kB / 348.2 MB, free: 8.324 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004344/0.3431, allocations: 79.89 kB / 348.3 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/0.3448, allocations: 1.408 MB / 349.7 MB, free: 6.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.3452, allocations: 47.7 kB / 349.7 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.529e-05/0.3453, allocations: 12 kB / 349.7 MB, free: 6.645 MB / 298.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 () * 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.0001475/0.3454, allocations: 125 kB / 349.9 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.259e-05/0.3455, allocations: 23.72 kB / 349.9 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.335e-05/0.3456, allocations: 37.89 kB / 349.9 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.65e-06/0.3456, allocations: 7.953 kB / 349.9 MB, free: 6.445 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.953e-06/0.3456, allocations: 0 / 349.9 MB, free: 6.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.152e-06/0.3456, allocations: 3.984 kB / 349.9 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004898/0.3461, allocations: 333.3 kB / 350.3 MB, free: 6.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.298e-06/0.3462, allocations: 0 / 350.3 MB, free: 6.066 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.3466, allocations: 63.89 kB / 350.3 MB, free: 6.004 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002537/0.3468, allocations: 60.81 kB / 350.4 MB, free: 5.941 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.622e-05/0.3469, allocations: 3.953 kB / 350.4 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001588/0.3485, allocations: 1.331 MB / 351.7 MB, free: 4.473 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.167e-06/0.3485, allocations: 3.984 kB / 351.7 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008586/0.3494, allocations: 311.7 kB / 352 MB, free: 4.141 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.3496, allocations: 117 kB / 352.1 MB, free: 4.008 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.941e-05/0.3496, allocations: 11.95 kB / 352.2 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.3499, allocations: 27.92 kB / 352.2 MB, free: 3.969 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.35, allocations: 35.88 kB / 352.2 MB, free: 3.934 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.3501, allocations: 4 kB / 352.2 MB, free: 3.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002569/0.3503, allocations: 183.1 kB / 352.4 MB, free: 3.754 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.83e-07/0.3503, allocations: 4 kB / 352.4 MB, free: 3.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005566/0.3509, allocations: 95.69 kB / 352.5 MB, free: 3.656 MB / 298.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.0001874/0.3511, allocations: 111.2 kB / 352.6 MB, free: 3.535 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006799/0.3518, allocations: 282.5 kB / 352.9 MB, free: 3.246 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.32e-06/0.3518, allocations: 0.5625 kB / 352.9 MB, free: 3.246 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003478/0.3522, allocations: 189.5 kB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.3525, allocations: 40.47 kB / 353.1 MB, free: 3.012 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.3542, allocations: 0.5056 MB / 353.6 MB, free: 2.484 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004798/0.3547, allocations: 0.7835 MB / 354.4 MB, free: 1.672 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.321e-05/0.3548, allocations: 19.44 kB / 354.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of SimCode: time 1.655e-06/0.3548, allocations: 0 / 354.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of Templates: time 0.1821/0.5369, allocations: 4.45 MB / 358.9 MB, free: 78.71 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