Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001192/0.001192, allocations: 115.3 kB / 17.75 MB, free: 5.195 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.001113/0.001113, allocations: 189.9 kB / 18.68 MB, free: 4.27 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.237/1.237, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.109e-05/2.11e-05, allocations: 7.203 kB / 328.5 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003345/0.003374, allocations: 3.091 MB / 331.6 MB, free: 232 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.004456, allocations: 0.7838 MB / 332.4 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.004601, allocations: 7.938 kB / 332.4 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.004757, allocations: 59.42 kB / 332.5 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.004919, allocations: 99.05 kB / 332.6 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.005217, allocations: 111.8 kB / 332.7 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.005634, allocations: 478 kB / 333.1 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.005854, allocations: 135.8 kB / 333.3 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.00603, allocations: 163.3 kB / 333.4 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.006201, allocations: 175.2 kB / 333.6 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.785e-05/0.006255, allocations: 32 kB / 333.6 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.64e-05/0.006307, allocations: 36 kB / 333.7 MB, free: 14.16 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003642/0.006675, allocations: 0.5718 MB / 334.2 MB, free: 13.58 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001694/0.006852, allocations: 354.7 kB / 334.6 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.163e-05/0.006919, allocations: 67.75 kB / 334.6 MB, free: 13.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.842e-05/0.006952, allocations: 16 kB / 334.7 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.001307/0.008264, allocations: 1.701 MB / 336.4 MB, free: 11.33 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001243/0.008395, allocations: 91.81 kB / 336.5 MB, free: 11.24 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006951/0.009097, allocations: 0.8312 MB / 337.3 MB, free: 10.38 MB / 286.1 MB Notification: Performance of simplify1: time 7.866e-05/0.009184, allocations: 75.91 kB / 337.4 MB, free: 10.31 MB / 286.1 MB Notification: Performance of Alias: time 0.001658/0.01085, allocations: 1.679 MB / 339 MB, free: 8.43 MB / 286.1 MB Notification: Performance of simplify2: time 3.966e-05/0.0109, allocations: 39.95 kB / 339.1 MB, free: 8.391 MB / 286.1 MB Notification: Performance of Events: time 0.0001364/0.01104, allocations: 100.3 kB / 339.2 MB, free: 8.293 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002152/0.01126, allocations: 208.3 kB / 339.4 MB, free: 8.074 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002384/0.01151, allocations: 235.8 kB / 339.6 MB, free: 7.816 MB / 286.1 MB Notification: Performance of Causalize: time 0.001028/0.01254, allocations: 1.115 MB / 340.7 MB, free: 6.672 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004166/0.01297, allocations: 0.5107 MB / 341.2 MB, free: 6.137 MB / 286.1 MB Notification: Performance of Inline: time 0.0008118/0.01379, allocations: 0.9076 MB / 342.1 MB, free: 5.191 MB / 286.1 MB Notification: Performance of Partitioning: time 5.777e-05/0.01385, allocations: 58.36 kB / 342.2 MB, free: 5.129 MB / 286.1 MB Notification: Performance of Cleanup: time 4.94e-05/0.01391, allocations: 47.89 kB / 342.2 MB, free: 5.082 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) $SEV_1 = switch1.control.v < switch2.level ($RES_EVT_91) slice: {}; Notification: Performance of Causalize: time 0.00219/0.0161, allocations: 2.458 MB / 344.7 MB, free: 2.625 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!