Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001086/0.001086, allocations: 108.5 kB / 16.42 MB, free: 5.504 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.001102/0.001102, allocations: 190.4 kB / 17.35 MB, free: 5.176 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.327/1.327, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.553e-05/2.555e-05, allocations: 3.547 kB / 327.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003443/0.003478, allocations: 2.824 MB / 330 MB, free: 500 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.004662, allocations: 0.7759 MB / 330.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.004789, allocations: 4 kB / 330.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.004946, allocations: 47.5 kB / 330.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001507/0.005113, allocations: 99.12 kB / 330.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003051/0.005424, allocations: 95.81 kB / 331 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003665/0.005799, allocations: 422.3 kB / 331.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.00602, allocations: 119.5 kB / 331.6 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.006166, allocations: 139.5 kB / 331.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.006354, allocations: 143.4 kB / 331.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.516e-05/0.006416, allocations: 32 kB / 331.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.4e-05/0.006465, allocations: 28 kB / 331.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003704/0.006841, allocations: 0.5062 MB / 332.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001672/0.007015, allocations: 303.5 kB / 332.7 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.117e-05/0.007101, allocations: 59.81 kB / 332.8 MB, free: 13.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.58e-05/0.007147, allocations: 12 kB / 332.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.00133/0.008482, allocations: 1.473 MB / 334.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001013/0.008591, allocations: 73.14 kB / 334.3 MB, free: 12.05 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006739/0.009272, allocations: 0.7453 MB / 335.1 MB, free: 11.28 MB / 286.1 MB Notification: Performance of simplify1: time 9.48e-05/0.009373, allocations: 67.91 kB / 335.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of Alias: time 0.001653/0.01103, allocations: 1.448 MB / 336.6 MB, free: 9.598 MB / 286.1 MB Notification: Performance of simplify2: time 3.678e-05/0.01109, allocations: 32.52 kB / 336.6 MB, free: 9.566 MB / 286.1 MB Notification: Performance of Events: time 0.0001455/0.01124, allocations: 95.25 kB / 336.7 MB, free: 9.473 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002622/0.01151, allocations: 218.9 kB / 336.9 MB, free: 9.246 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002237/0.01175, allocations: 209.4 kB / 337.1 MB, free: 9.016 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009734/0.01273, allocations: 0.9822 MB / 338.1 MB, free: 8.016 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004113/0.01315, allocations: 478.7 kB / 338.6 MB, free: 7.523 MB / 286.1 MB Notification: Performance of Inline: time 0.000846/0.014, allocations: 0.8125 MB / 339.4 MB, free: 6.668 MB / 286.1 MB Notification: Performance of Partitioning: time 5.448e-05/0.01406, allocations: 46.36 kB / 339.4 MB, free: 6.617 MB / 286.1 MB Notification: Performance of Cleanup: time 4.326e-05/0.01411, allocations: 39.89 kB / 339.5 MB, free: 6.578 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.002091/0.01621, allocations: 2.128 MB / 341.6 MB, free: 4.43 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!