Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 113.1 kB / 17.75 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 188.6 kB / 18.69 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.268/1.268, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.746e-05/2.747e-05, allocations: 2.281 kB / 351.9 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005128/0.005167, allocations: 2.858 MB / 354.8 MB, free: 388 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00165/0.006839, allocations: 0.74 MB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.007016, allocations: 4 kB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.007224, allocations: 51.5 kB / 355.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002359/0.007471, allocations: 91.12 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.00795, allocations: 107.8 kB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005803/0.008543, allocations: 418.2 kB / 356.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003019/0.008858, allocations: 119.4 kB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.009082, allocations: 139.5 kB / 356.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.009335, allocations: 151.4 kB / 356.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.788e-05/0.009425, allocations: 32 kB / 356.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.404e-05/0.009509, allocations: 28 kB / 356.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0005131/0.01003, allocations: 0.5023 MB / 357.2 MB, free: 14 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002198/0.01026, allocations: 303.5 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.326e-05/0.01036, allocations: 59.81 kB / 357.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.569e-05/0.01043, allocations: 15.94 kB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 (71) * Number of variables: 71 (71) Notification: Performance of Bindings: time 0.00179/0.01223, allocations: 1.469 MB / 359 MB, free: 12.04 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001246/0.01236, allocations: 81.11 kB / 359.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001007/0.01338, allocations: 0.7453 MB / 359.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001077/0.0135, allocations: 67.92 kB / 359.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of Alias: time 0.002892/0.01641, allocations: 1.637 MB / 361.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simplify2: time 5.244e-05/0.01648, allocations: 35.95 kB / 361.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003341/0.01682, allocations: 175.8 kB / 361.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of Events: time 0.000197/0.01703, allocations: 103.1 kB / 361.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003445/0.01739, allocations: 214.2 kB / 362 MB, free: 8.762 MB / 302.1 MB Notification: Performance of Causalize: time 0.00125/0.01865, allocations: 0.6922 MB / 362.7 MB, free: 8.043 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006056/0.01927, allocations: 486.6 kB / 363.2 MB, free: 7.543 MB / 302.1 MB Notification: Performance of Inline: time 0.001149/0.02044, allocations: 0.8156 MB / 364 MB, free: 6.691 MB / 302.1 MB Notification: Performance of Partitioning: time 7.747e-05/0.02053, allocations: 54.3 kB / 364.1 MB, free: 6.633 MB / 302.1 MB Notification: Performance of Cleanup: time 5.077e-05/0.02059, allocations: 35.95 kB / 364.1 MB, free: 6.598 MB / 302.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) switch2.off = $START.switch2.off ($RES_SRT_88) slice: {}; Notification: Performance of Causalize: time 0.00314/0.02374, allocations: 1.831 MB / 365.9 MB, free: 4.719 MB / 302.1 MB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)if switch2.off then [----] [-IF-] (1)if switch2.quenched then [----] [----] [SCAL] (1) inductor2.i = switch2.Goff * switch2.v ($RES_SIM_8) [----] [----] else [----] [----] [SCAL] (1) switch2.v = min(switch2.Vmax, switch2.V0 + switch2.dVdt * (time - switch2.tSwitch)) * sign(inductor2.i) ($RES_SIM_9) [----] [----] end if; [----] else [----] [SCAL] (1) switch2.v = switch2.Ron * inductor2.i ($RES_SIM_10) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!