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.001287/0.001287, allocations: 111.4 kB / 18.41 MB, free: 4.668 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.00126/0.00126, allocations: 193.4 kB / 19.35 MB, free: 3.742 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.584/1.584, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.556e-05/2.557e-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.003924/0.003958, allocations: 2.82 MB / 332 MB, free: 500 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001561/0.005551, allocations: 0.7642 MB / 332.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.005727, allocations: 7.938 kB / 332.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.005936, allocations: 51.5 kB / 332.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001871/0.006175, allocations: 83.2 kB / 332.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.006576, allocations: 111.8 kB / 333 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004421/0.007027, allocations: 418.3 kB / 333.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002288/0.007265, allocations: 119.4 kB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.007418, allocations: 143.5 kB / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.007607, allocations: 151.4 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.202e-05/0.007666, allocations: 32 kB / 333.9 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.794e-05/0.007721, allocations: 28 kB / 333.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003606/0.008087, allocations: 0.5023 MB / 334.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001532/0.008248, allocations: 299.5 kB / 334.7 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.111e-05/0.008326, allocations: 59.81 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.135e-05/0.008393, allocations: 16 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.001327/0.009726, allocations: 1.481 MB / 336.2 MB, free: 12.11 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000118/0.009852, allocations: 69.14 kB / 336.3 MB, free: 12.05 MB / 286.1 MB Notification: Performance of Early Inline: time 0.000667/0.01053, allocations: 0.7414 MB / 337 MB, free: 11.28 MB / 286.1 MB Notification: Performance of simplify1: time 8.166e-05/0.01062, allocations: 67.91 kB / 337.1 MB, free: 11.21 MB / 286.1 MB Notification: Performance of Alias: time 0.002031/0.01266, allocations: 1.641 MB / 338.7 MB, free: 9.402 MB / 286.1 MB Notification: Performance of simplify2: time 4.538e-05/0.01272, allocations: 35.95 kB / 338.8 MB, free: 9.367 MB / 286.1 MB Notification: Performance of Events: time 0.0001629/0.01289, allocations: 94.91 kB / 338.9 MB, free: 9.273 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002699/0.01317, allocations: 195.4 kB / 339.1 MB, free: 9.07 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002439/0.01342, allocations: 217.4 kB / 339.3 MB, free: 8.832 MB / 286.1 MB Notification: Performance of Causalize: time 0.0008168/0.01425, allocations: 0.6956 MB / 340 MB, free: 8.117 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004375/0.0147, allocations: 486.6 kB / 340.4 MB, free: 7.613 MB / 286.1 MB Notification: Performance of Inline: time 0.000838/0.01554, allocations: 0.8162 MB / 341.3 MB, free: 6.758 MB / 286.1 MB Notification: Performance of Partitioning: time 6.199e-05/0.01562, allocations: 54.33 kB / 341.3 MB, free: 6.695 MB / 286.1 MB Notification: Performance of Cleanup: time 4.428e-05/0.01567, allocations: 35.91 kB / 341.4 MB, free: 6.66 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.00214/0.01781, allocations: 1.823 MB / 343.2 MB, free: 4.793 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!