Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 103.9 kB / 18.41 MB, free: 4.645 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.001421/0.001421, allocations: 187.8 kB / 19.35 MB, free: 3.715 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.441/1.441, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.456e-05/2.457e-05, allocations: 2.281 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004203/0.004238, allocations: 2.825 MB / 332 MB, free: 496 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.00592, allocations: 0.7681 MB / 332.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003225/0.006255, allocations: 4 kB / 332.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000235/0.006497, allocations: 51.5 kB / 332.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000346/0.006851, allocations: 91.17 kB / 332.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004836/0.007374, allocations: 107.8 kB / 333 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006363/0.008019, allocations: 418.3 kB / 333.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/0.008296, allocations: 115.5 kB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002776/0.008583, allocations: 143.5 kB / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002897/0.008881, allocations: 151.4 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.037e-05/0.008958, allocations: 32 kB / 333.9 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.389e-05/0.009039, allocations: 28 kB / 333.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003806/0.009425, allocations: 0.4984 MB / 334.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002077/0.00964, allocations: 303.5 kB / 334.7 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.009753, allocations: 59.81 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.587e-05/0.009835, allocations: 12 kB / 334.8 MB, free: 13.71 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: 71 (71) * Number of variables: 71 (71) Notification: Performance of Bindings: time 0.001605/0.01145, allocations: 1.485 MB / 336.2 MB, free: 12.11 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001705/0.01162, allocations: 77.12 kB / 336.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0007705/0.0124, allocations: 0.7453 MB / 337.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of simplify1: time 8.958e-05/0.0125, allocations: 63.92 kB / 337.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of Alias: time 0.002098/0.01461, allocations: 1.642 MB / 338.8 MB, free: 9.391 MB / 286.1 MB Notification: Performance of simplify2: time 5.891e-05/0.01468, allocations: 35.95 kB / 338.8 MB, free: 9.355 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004695/0.01516, allocations: 182.6 kB / 339 MB, free: 9.164 MB / 286.1 MB Notification: Performance of Events: time 0.0001803/0.01535, allocations: 91.12 kB / 339.1 MB, free: 9.074 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002679/0.01562, allocations: 209.4 kB / 339.3 MB, free: 8.848 MB / 286.1 MB Notification: Performance of Causalize: time 0.0008531/0.01648, allocations: 0.6917 MB / 340 MB, free: 8.133 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.000444/0.01694, allocations: 486.5 kB / 340.4 MB, free: 7.629 MB / 286.1 MB Notification: Performance of Inline: time 0.0007955/0.01774, allocations: 0.8205 MB / 341.3 MB, free: 6.77 MB / 286.1 MB Notification: Performance of Partitioning: time 5.853e-05/0.01781, allocations: 46.36 kB / 341.3 MB, free: 6.715 MB / 286.1 MB Notification: Performance of Cleanup: time 4.149e-05/0.01786, allocations: 47.81 kB / 341.3 MB, free: 6.668 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_88) slice: {}; Notification: Performance of Causalize: time 0.002122/0.01999, allocations: 1.815 MB / 343.2 MB, free: 4.809 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_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!