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.0009731/0.0009733, allocations: 111.8 kB / 17.75 MB, free: 5.348 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.0009207/0.0009207, allocations: 185.8 kB / 18.68 MB, free: 4.426 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.201/1.201, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.998e-05/1.999e-05, allocations: 2.281 kB / 351.9 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00325/0.003279, allocations: 2.855 MB / 354.8 MB, free: 444 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.004423, allocations: 0.7361 MB / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.004556, allocations: 8 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.004716, allocations: 47.5 kB / 355.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001508/0.004883, allocations: 87.12 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003188/0.00521, allocations: 111.8 kB / 355.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003863/0.005604, allocations: 422.2 kB / 356.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.005818, allocations: 115.5 kB / 356.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.005965, allocations: 143.5 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.006133, allocations: 147.4 kB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.599e-05/0.006195, allocations: 28 kB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.105e-05/0.006252, allocations: 35.94 kB / 356.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003724/0.006629, allocations: 0.5023 MB / 357.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001552/0.006791, allocations: 303.5 kB / 357.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.743e-05/0.006864, allocations: 55.81 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.565e-05/0.006915, allocations: 15.94 kB / 357.5 MB, free: 13.68 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.001206/0.008126, allocations: 1.473 MB / 359 MB, free: 12.1 MB / 302.1 MB Notification: Performance of FunctionAlias: time 9.095e-05/0.008224, allocations: 77.06 kB / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006118/0.008842, allocations: 0.7375 MB / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simplify1: time 7.091e-05/0.00892, allocations: 71.91 kB / 359.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Alias: time 0.001842/0.01077, allocations: 1.648 MB / 361.5 MB, free: 9.367 MB / 302.1 MB Notification: Performance of simplify2: time 3.333e-05/0.01081, allocations: 31.95 kB / 361.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of Events: time 0.0001461/0.01096, allocations: 98.91 kB / 361.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002388/0.01121, allocations: 197.1 kB / 361.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002184/0.01144, allocations: 214.2 kB / 362.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of Causalize: time 0.0007694/0.01222, allocations: 0.696 MB / 362.7 MB, free: 8.078 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004061/0.01264, allocations: 486.6 kB / 363.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of Inline: time 0.000754/0.0134, allocations: 0.8192 MB / 364 MB, free: 6.723 MB / 302.1 MB Notification: Performance of Partitioning: time 5.932e-05/0.01346, allocations: 46.31 kB / 364.1 MB, free: 6.668 MB / 302.1 MB Notification: Performance of Cleanup: time 3.577e-05/0.01351, allocations: 39.89 kB / 364.1 MB, free: 6.629 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.001939/0.01545, allocations: 1.827 MB / 366 MB, free: 4.758 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!