Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, allocations: 111.2 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 204.9 kB / 19.42 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.927e-05/1.929e-05, allocations: 2.281 kB / 359.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003965/0.003995, allocations: 2.895 MB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001547/0.005558, allocations: 0.7712 MB / 363 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002754/0.005845, allocations: 7.938 kB / 363 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002093/0.006061, allocations: 51.5 kB / 363.1 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003343/0.006414, allocations: 91.19 kB / 363.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004218/0.006843, allocations: 99.77 kB / 363.2 MB, free: 9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005381/0.007389, allocations: 414.3 kB / 363.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002507/0.007648, allocations: 123.4 kB / 363.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.007869, allocations: 143.5 kB / 363.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.008093, allocations: 155.3 kB / 364.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.275e-05/0.008163, allocations: 28 kB / 364.1 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.349e-05/0.008243, allocations: 32 kB / 364.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003808/0.008628, allocations: 0.4946 MB / 364.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002127/0.008847, allocations: 307.4 kB / 364.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.008957, allocations: 63.81 kB / 365 MB, free: 7.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.168e-05/0.009024, allocations: 12 kB / 365 MB, free: 7.238 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.001376/0.01041, allocations: 1.466 MB / 366.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001242/0.01054, allocations: 73.12 kB / 366.5 MB, free: 5.59 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0007454/0.01129, allocations: 0.753 MB / 367.3 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simplify1: time 9.297e-05/0.01139, allocations: 63.92 kB / 367.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of Alias: time 0.002139/0.01354, allocations: 1.634 MB / 369 MB, free: 2.941 MB / 302.1 MB Notification: Performance of simplify2: time 5.703e-05/0.01361, allocations: 35.95 kB / 369 MB, free: 2.906 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004296/0.01404, allocations: 197 kB / 369.2 MB, free: 2.703 MB / 302.1 MB Notification: Performance of Events: time 0.000169/0.01422, allocations: 95.45 kB / 369.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000256/0.01449, allocations: 206.3 kB / 369.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of Causalize: time 0.0008519/0.01534, allocations: 0.6994 MB / 370.2 MB, free: 1.664 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004776/0.01583, allocations: 482.5 kB / 370.7 MB, free: 1.168 MB / 302.1 MB Notification: Performance of Inline: time 0.0009686/0.01681, allocations: 0.814 MB / 371.5 MB, free: 324 kB / 302.1 MB Notification: Performance of Partitioning: time 5.647e-05/0.01688, allocations: 42.38 kB / 371.5 MB, free: 276 kB / 302.1 MB Notification: Performance of Cleanup: time 6.076e-05/0.01694, allocations: 43.94 kB / 371.6 MB, free: 232 kB / 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.1767/0.1936, allocations: 1.823 MB / 373.4 MB, free: 15.13 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!