Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001302/0.001302, allocations: 110.6 kB / 17.75 MB, free: 5.34 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.00131/0.001311, allocations: 187.1 kB / 18.68 MB, free: 4.418 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.345/1.345, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.356e-05/2.358e-05, allocations: 5.516 kB / 351.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004288/0.004321, allocations: 3.135 MB / 355.1 MB, free: 144 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0016/0.005934, allocations: 0.7517 MB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000334/0.006282, allocations: 8 kB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.006558, allocations: 63.36 kB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003687/0.006934, allocations: 103 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004604/0.007416, allocations: 103.8 kB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006875/0.008112, allocations: 478.1 kB / 356.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003249/0.008445, allocations: 143.7 kB / 356.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003253/0.008777, allocations: 163.4 kB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002668/0.009054, allocations: 171.2 kB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.359e-05/0.009135, allocations: 36 kB / 357.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.886e-05/0.009219, allocations: 32 kB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004674/0.009691, allocations: 0.5795 MB / 357.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002601/0.009958, allocations: 354.7 kB / 358 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.01009, allocations: 71.81 kB / 358.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.487e-05/0.01017, allocations: 11.98 kB / 358.1 MB, free: 13.08 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: 80 (80) * Number of variables: 80 (80) Notification: Performance of Bindings: time 0.001738/0.01191, allocations: 1.69 MB / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001984/0.01212, allocations: 91.8 kB / 359.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0009408/0.01307, allocations: 0.8313 MB / 360.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001408/0.01322, allocations: 79.91 kB / 360.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Alias: time 0.002539/0.01576, allocations: 1.903 MB / 362.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of simplify2: time 8.179e-05/0.01586, allocations: 39.95 kB / 362.7 MB, free: 8.105 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002929/0.01616, allocations: 179.5 kB / 362.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of Events: time 0.0001793/0.01634, allocations: 87.86 kB / 363 MB, free: 7.832 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003463/0.0167, allocations: 247.7 kB / 363.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of Causalize: time 0.001061/0.01777, allocations: 0.8137 MB / 364 MB, free: 6.711 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005804/0.01836, allocations: 0.5027 MB / 364.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of Inline: time 0.001046/0.01941, allocations: 0.9103 MB / 365.5 MB, free: 5.234 MB / 302.1 MB Notification: Performance of Partitioning: time 7.642e-05/0.0195, allocations: 66.28 kB / 365.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of Cleanup: time 7.993e-05/0.01958, allocations: 35.95 kB / 365.6 MB, free: 5.125 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_97) slice: {}; Notification: Performance of Causalize: time 0.002999/0.02259, allocations: 2.136 MB / 367.7 MB, free: 2.949 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_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!