Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001708/0.001708, allocations: 108.5 kB / 19.05 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001766/0.001766, allocations: 210.5 kB / 20.03 MB, free: 2.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.228/1.228, allocations: 230.4 MB / 251.3 MB, free: 8.715 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.498e-06/9.498e-06, allocations: 2.281 kB / 368.8 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003432/0.003442, allocations: 2.906 MB / 371.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.004543, allocations: 0.7789 MB / 372.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.004644, allocations: 8 kB / 372.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.004783, allocations: 51.5 kB / 372.6 MB, free: 2.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.004932, allocations: 79.2 kB / 372.7 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.005195, allocations: 111.8 kB / 372.8 MB, free: 2.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003994/0.005594, allocations: 410.4 kB / 373.2 MB, free: 2.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.005744, allocations: 83.44 kB / 373.2 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.005889, allocations: 147.5 kB / 373.4 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/0.006073, allocations: 147.3 kB / 373.5 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.006114, allocations: 28 kB / 373.6 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.689e-05/0.006161, allocations: 32 kB / 373.6 MB, free: 1.77 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003807/0.006542, allocations: 0.5023 MB / 374.1 MB, free: 1.262 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001844/0.006726, allocations: 311.3 kB / 374.4 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.904e-05/0.006795, allocations: 63.81 kB / 374.5 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.301e-05/0.006828, allocations: 8 kB / 374.5 MB, free: 0.8828 MB / 302.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.1151/0.122, allocations: 1.201 MB / 375.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000144/0.1221, allocations: 136.4 kB / 375.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0004177/0.1225, allocations: 0.5385 MB / 376.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of Simplify 1: time 0.0001524/0.1227, allocations: 152.2 kB / 376.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Alias: time 0.001429/0.1241, allocations: 1.377 MB / 377.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of Simplify 2: time 7.963e-05/0.1242, allocations: 101.7 kB / 378 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Remove Stream: time 5.561e-05/0.1243, allocations: 78.67 kB / 378 MB, free: 10.65 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002206/0.1245, allocations: 192.8 kB / 378.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of Events: time 0.0001448/0.1246, allocations: 113.2 kB / 378.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000196/0.1248, allocations: 220.5 kB / 378.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Causalize: time 0.0007046/0.1255, allocations: 0.6604 MB / 379.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0002551/0.1258, allocations: 315.5 kB / 379.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of Simplify: time 0.0003406/0.1261, allocations: 343.4 kB / 379.9 MB, free: 10 MB / 302.1 MB Notification: Performance of Inline: time 0.000331/0.1264, allocations: 467.6 kB / 380.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of Partitioning: time 2.909e-05/0.1265, allocations: 28.34 kB / 380.3 MB, free: 9.734 MB / 302.1 MB Notification: Performance of Cleanup: time 7.009e-05/0.1265, allocations: 130.5 kB / 380.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of Causalize: time 0.0009442/0.1275, allocations: 0.9061 MB / 381.4 MB, free: 9.395 MB / 302.1 MB Error: Internal error NBEquation.Equation.getResidualExp failed for: [-IF-] (1) ($RES_SIM_6) [----] if switch2.off then [----] [-IF-] (1) ($RES_SIM_7) [----] [----] if switch2.quenched then [----] [----] [SCAL] (1) switch2.i = switch2.Goff * switch2.v ($RES_SIM_8) [----] [----] else [----] [----] [SCAL] (1) switch2.v = min(switch2.Vmax, switch2.V0 + switch2.dVdt * (time - switch2.tSwitch)) * sign(switch2.i) ($RES_SIM_9) [----] [----] end if; [----] else [----] [SCAL] (1) switch2.v = switch2.Ron * switch2.i ($RES_SIM_10) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!