Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.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.001279/0.001279, allocations: 104.9 kB / 16.42 MB, free: 6.043 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.001164/0.001164, allocations: 195.2 kB / 17.36 MB, free: 5.598 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.339/1.339, allocations: 205.1 MB / 223.2 MB, free: 12.28 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.002e-05/2.003e-05, allocations: 2.281 kB / 327.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003802/0.00383, allocations: 2.829 MB / 330 MB, free: 488 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.005154, allocations: 0.7681 MB / 330.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.005299, allocations: 4 kB / 330.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.00548, allocations: 47.5 kB / 330.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000164/0.005658, allocations: 87.2 kB / 330.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.005991, allocations: 107.7 kB / 331 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003828/0.006381, allocations: 422.3 kB / 331.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.006618, allocations: 111.5 kB / 331.6 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.006753, allocations: 143.5 kB / 331.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001783/0.006937, allocations: 151.4 kB / 331.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.427e-05/0.006988, allocations: 32 kB / 331.9 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.521e-05/0.007038, allocations: 28 kB / 331.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003541/0.007397, allocations: 0.4984 MB / 332.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001723/0.007575, allocations: 307.5 kB / 332.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.109e-05/0.007642, allocations: 59.81 kB / 332.8 MB, free: 13.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.141e-05/0.007679, allocations: 12 kB / 332.8 MB, free: 13.7 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.001399/0.009083, allocations: 1.473 MB / 334.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001086/0.009198, allocations: 77.12 kB / 334.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0007249/0.009929, allocations: 0.7453 MB / 335.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of simplify1: time 7.855e-05/0.01002, allocations: 71.86 kB / 335.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of Alias: time 0.001589/0.01161, allocations: 1.44 MB / 336.6 MB, free: 9.594 MB / 286.1 MB Notification: Performance of simplify2: time 3.355e-05/0.01166, allocations: 27.95 kB / 336.6 MB, free: 9.566 MB / 286.1 MB Notification: Performance of Events: time 0.0001566/0.01182, allocations: 107.3 kB / 336.7 MB, free: 9.461 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003842/0.01221, allocations: 202.2 kB / 336.9 MB, free: 9.25 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002376/0.01246, allocations: 217.4 kB / 337.1 MB, free: 9.012 MB / 286.1 MB Notification: Performance of Causalize: time 0.0009979/0.01346, allocations: 0.9744 MB / 338.1 MB, free: 8.02 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004254/0.0139, allocations: 486.8 kB / 338.6 MB, free: 7.52 MB / 286.1 MB Notification: Performance of Inline: time 0.0007891/0.01469, allocations: 0.8163 MB / 339.4 MB, free: 6.66 MB / 286.1 MB Notification: Performance of Partitioning: time 4.969e-05/0.01475, allocations: 46.36 kB / 339.4 MB, free: 6.609 MB / 286.1 MB Notification: Performance of Cleanup: time 3.891e-05/0.0148, allocations: 39.89 kB / 339.5 MB, free: 6.57 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.002025/0.01683, allocations: 2.119 MB / 341.6 MB, free: 4.434 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!