Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001196/0.001196, allocations: 111.8 kB / 17.75 MB, free: 5.336 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.001199/0.001199, allocations: 189.8 kB / 18.68 MB, free: 4.41 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.271/1.271, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.225e-05/2.225e-05, allocations: 2.281 kB / 328.5 MB, free: 3.34 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003504/0.003534, allocations: 2.82 MB / 331.3 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.004698, allocations: 0.7798 MB / 332.1 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.004816, allocations: 4 kB / 332.1 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.004994, allocations: 47.5 kB / 332.2 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.00517, allocations: 91.19 kB / 332.3 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003309/0.005506, allocations: 99.75 kB / 332.4 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000389/0.005905, allocations: 426.3 kB / 332.8 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.006118, allocations: 115.5 kB / 332.9 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.006262, allocations: 139.5 kB / 333 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000171/0.006441, allocations: 147.4 kB / 333.2 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.89e-05/0.006496, allocations: 32 kB / 333.2 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/0.00656, allocations: 28 kB / 333.2 MB, free: 14.6 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003811/0.006947, allocations: 0.5023 MB / 333.7 MB, free: 14.09 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001674/0.007121, allocations: 303.5 kB / 334 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.91e-05/0.007185, allocations: 59.81 kB / 334.1 MB, free: 13.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.851e-05/0.007219, allocations: 8 kB / 334.1 MB, free: 13.72 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.001295/0.008518, allocations: 1.473 MB / 335.6 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001024/0.008629, allocations: 77.14 kB / 335.6 MB, free: 12.06 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006857/0.009321, allocations: 0.7453 MB / 336.4 MB, free: 11.29 MB / 286.1 MB Notification: Performance of simplify1: time 6.862e-05/0.009396, allocations: 71.91 kB / 336.5 MB, free: 11.22 MB / 286.1 MB Notification: Performance of Alias: time 0.0016/0.011, allocations: 1.452 MB / 337.9 MB, free: 9.602 MB / 286.1 MB Notification: Performance of simplify2: time 3.451e-05/0.01105, allocations: 31.95 kB / 337.9 MB, free: 9.57 MB / 286.1 MB Notification: Performance of Events: time 0.0001442/0.0112, allocations: 91.12 kB / 338 MB, free: 9.48 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002469/0.01145, allocations: 205.3 kB / 338.2 MB, free: 9.266 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002338/0.01169, allocations: 209.4 kB / 338.4 MB, free: 9.035 MB / 286.1 MB Notification: Performance of Causalize: time 0.00102/0.01272, allocations: 0.9822 MB / 339.4 MB, free: 8.035 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004346/0.01316, allocations: 482.7 kB / 339.9 MB, free: 7.539 MB / 286.1 MB Notification: Performance of Inline: time 0.0008171/0.01399, allocations: 0.8124 MB / 340.7 MB, free: 6.684 MB / 286.1 MB Notification: Performance of Partitioning: time 6.279e-05/0.01406, allocations: 46.38 kB / 340.7 MB, free: 6.633 MB / 286.1 MB Notification: Performance of Cleanup: time 4.628e-05/0.01411, allocations: 40.27 kB / 340.8 MB, free: 6.594 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_3 = time >= booleanPulse.pulseStart and time < (booleanPulse.pulseStart + booleanPulse.Twidth) ($RES_EVT_85) slice: {}; Notification: Performance of Causalize: time 0.00204/0.01616, allocations: 2.129 MB / 342.9 MB, free: 4.445 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!