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.001055/0.001055, allocations: 108 kB / 18.41 MB, free: 4.625 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.001192/0.001192, allocations: 194.7 kB / 19.35 MB, free: 3.699 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.348/1.348, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.451e-05, allocations: 3.125 kB / 329.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004472/0.004506, allocations: 3.089 MB / 332.3 MB, free: 232 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.006086, allocations: 0.7876 MB / 333.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003002/0.006402, allocations: 4 kB / 333.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.006634, allocations: 55.42 kB / 333.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003288/0.007015, allocations: 103 kB / 333.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004053/0.007431, allocations: 111.8 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005644/0.008005, allocations: 478 kB / 333.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002469/0.008261, allocations: 139.7 kB / 333.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000247/0.008517, allocations: 159.4 kB / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.008757, allocations: 175.2 kB / 334.3 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.632e-05/0.008832, allocations: 32 kB / 334.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.813e-05/0.008907, allocations: 36 kB / 334.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004187/0.009332, allocations: 0.5757 MB / 334.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002229/0.009563, allocations: 358.6 kB / 335.2 MB, free: 13.22 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.565e-05/0.009665, allocations: 63.81 kB / 335.3 MB, free: 13.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.293e-05/0.009733, allocations: 16 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.001454/0.01119, allocations: 1.694 MB / 337 MB, free: 11.34 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001842/0.01138, allocations: 87.81 kB / 337.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0008762/0.01227, allocations: 0.8351 MB / 337.9 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001124/0.01239, allocations: 79.91 kB / 338 MB, free: 10.31 MB / 286.1 MB Notification: Performance of Alias: time 0.00234/0.01474, allocations: 1.902 MB / 339.9 MB, free: 8.203 MB / 286.1 MB Notification: Performance of simplify2: time 7.824e-05/0.01483, allocations: 39.95 kB / 340 MB, free: 8.164 MB / 286.1 MB Notification: Performance of Events: time 0.0001667/0.01501, allocations: 99.78 kB / 340.1 MB, free: 8.066 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004288/0.01545, allocations: 200.1 kB / 340.3 MB, free: 7.859 MB / 286.1 MB Notification: Performance of Partitioning: time 0.000314/0.01577, allocations: 243.8 kB / 340.5 MB, free: 7.594 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009335/0.01671, allocations: 0.7974 MB / 341.3 MB, free: 6.762 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005041/0.01723, allocations: 0.5222 MB / 341.8 MB, free: 6.215 MB / 286.1 MB Notification: Performance of Inline: time 0.001049/0.01829, allocations: 0.9103 MB / 342.7 MB, free: 5.266 MB / 286.1 MB Notification: Performance of Partitioning: time 6.71e-05/0.01837, allocations: 50.38 kB / 342.8 MB, free: 5.211 MB / 286.1 MB Notification: Performance of Cleanup: time 6.875e-05/0.01844, allocations: 47.89 kB / 342.8 MB, free: 5.164 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.002736/0.02118, allocations: 2.113 MB / 344.9 MB, free: 3.008 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!