Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 113.1 kB / 18.42 MB, free: 4.68 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.001212/0.001212, allocations: 189.5 kB / 19.35 MB, free: 3.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.403e-05/3.404e-05, allocations: 2.281 kB / 329.2 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004955/0.004999, allocations: 3.102 MB / 332.3 MB, free: 228 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.006716, allocations: 0.7876 MB / 333.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003204/0.007048, allocations: 7.938 kB / 333.1 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.007282, allocations: 63.42 kB / 333.1 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.007593, allocations: 99.06 kB / 333.2 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004573/0.008082, allocations: 107.8 kB / 333.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006164/0.008708, allocations: 474 kB / 333.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002611/0.008977, allocations: 135.8 kB / 333.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003054/0.00929, allocations: 171.3 kB / 334.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002747/0.009574, allocations: 167.2 kB / 334.3 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.552e-05/0.009667, allocations: 36 kB / 334.3 MB, free: 14.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.92e-05/0.009754, allocations: 40 kB / 334.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.00044/0.0102, allocations: 0.5679 MB / 334.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002374/0.01044, allocations: 354.7 kB / 335.2 MB, free: 13.22 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.01057, allocations: 67.81 kB / 335.3 MB, free: 13.15 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.303e-05/0.01064, allocations: 11.94 kB / 335.3 MB, free: 13.14 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 (80) * Number of variables: 80 (80) Notification: Performance of Bindings: time 0.001592/0.01224, allocations: 1.698 MB / 337 MB, free: 11.33 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001627/0.01241, allocations: 91.81 kB / 337.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009586/0.01337, allocations: 0.8351 MB / 337.9 MB, free: 10.38 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001175/0.01351, allocations: 75.91 kB / 338 MB, free: 10.3 MB / 286.1 MB Notification: Performance of Alias: time 0.002502/0.01601, allocations: 1.9 MB / 339.9 MB, free: 8.203 MB / 286.1 MB Notification: Performance of simplify2: time 7.656e-05/0.01611, allocations: 43.89 kB / 340 MB, free: 8.16 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002729/0.01639, allocations: 176.3 kB / 340.1 MB, free: 7.973 MB / 286.1 MB Notification: Performance of Events: time 0.0001835/0.01658, allocations: 103.7 kB / 340.2 MB, free: 7.871 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002979/0.01688, allocations: 231.8 kB / 340.5 MB, free: 7.617 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009925/0.01789, allocations: 0.8056 MB / 341.3 MB, free: 6.777 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005207/0.01842, allocations: 0.5296 MB / 341.8 MB, free: 6.223 MB / 286.1 MB Notification: Performance of Inline: time 0.0009865/0.01942, allocations: 0.9028 MB / 342.7 MB, free: 5.281 MB / 286.1 MB Notification: Performance of Partitioning: time 7.27e-05/0.0195, allocations: 54.34 kB / 342.8 MB, free: 5.223 MB / 286.1 MB Notification: Performance of Cleanup: time 8.083e-05/0.01959, allocations: 51.88 kB / 342.8 MB, free: 5.172 MB / 286.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_97) slice: {}; Notification: Performance of Causalize: time 0.002772/0.02236, allocations: 2.116 MB / 344.9 MB, free: 3.016 MB / 286.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_13) [----] [----] else [----] [----] [SCAL] (1) switch2.v = min(switch2.Vmax, switch2.V0 + switch2.dVdt * (time - switch2.tSwitch)) * sign(inductor2.i) ($RES_SIM_14) [----] [----] end if; [----] else [----] [SCAL] (1) switch2.v = switch2.Ron * inductor2.i ($RES_SIM_15) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!