Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.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.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") translateModel(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001618/0.001618, 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.001718/0.001718, 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.222/1.222, allocations: 230.4 MB / 251.3 MB, free: 8.723 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.608e-06/9.608e-06, allocations: 2.281 kB / 368.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003163/0.003172, allocations: 2.635 MB / 371.5 MB, free: 3.914 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009547/0.004127, allocations: 0.6817 MB / 372.2 MB, free: 3.227 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.467e-05/0.004212, allocations: 3.938 kB / 372.2 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.004327, allocations: 39.64 kB / 372.2 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.004454, allocations: 71.34 kB / 372.3 MB, free: 3.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.004692, allocations: 107.8 kB / 372.4 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003835/0.005075, allocations: 394.7 kB / 372.8 MB, free: 2.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.005207, allocations: 62.36 kB / 372.8 MB, free: 2.559 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.005352, allocations: 139.5 kB / 373 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.005533, allocations: 155.3 kB / 373.1 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.761e-05/0.005581, allocations: 32 kB / 373.1 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.449e-05/0.005625, allocations: 28 kB / 373.2 MB, free: 2.211 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.000339/0.005964, allocations: 467.1 kB / 373.6 MB, free: 1.75 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.000152/0.006116, allocations: 260.1 kB / 373.9 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.602e-05/0.006172, allocations: 47.81 kB / 373.9 MB, free: 1.445 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.478e-05/0.006207, allocations: 15.98 kB / 373.9 MB, free: 1.43 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: 50 (50) * Number of variables: 50 (50) Notification: Performance of Bindings: time 0.001066/0.007273, allocations: 1.121 MB / 375.1 MB, free: 188 kB / 302.1 MB Notification: Performance of FunctionAlias: time 7.921e-05/0.007352, allocations: 98.7 kB / 375.2 MB, free: 92 kB / 302.1 MB Notification: Performance of Early Inline: time 0.1171/0.1245, allocations: 0.5332 MB / 375.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Simplify 1: time 0.0002265/0.1247, allocations: 179.9 kB / 375.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Alias: time 0.001065/0.1258, allocations: 0.9307 MB / 376.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Simplify 2: time 0.0001311/0.1259, allocations: 168 kB / 377 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Remove Stream: time 0.0001021/0.126, allocations: 138 kB / 377.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002599/0.1263, allocations: 244.6 kB / 377.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Events: time 0.0001595/0.1264, allocations: 128.7 kB / 377.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001945/0.1266, allocations: 224.7 kB / 377.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Causalize: time 0.000694/0.1273, allocations: 0.6736 MB / 378.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003296/0.1276, allocations: 416.9 kB / 378.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of Simplify: time 0.0003987/0.128, allocations: 399 kB / 379.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Inline: time 0.0004043/0.1285, allocations: 0.5509 MB / 379.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of Partitioning: time 2.416e-05/0.1285, allocations: 19.72 kB / 379.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of Cleanup: time 8.978e-05/0.1286, allocations: 147.5 kB / 379.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of Causalize: time 0.0008854/0.1294, allocations: 0.8666 MB / 380.7 MB, free: 9.918 MB / 302.1 MB Error: Internal error NBEquation.Equation.getResidualExp failed for: [-IF-] (1) ($RES_SIM_31) [----] if dcPowerSupply.cp then [----] [-IF-] (1) ($RES_SIM_32) [----] [----] if dcPowerSupply.cv then [----] [----] [SCAL] (1) dcPowerSupply.v = dcPowerSupply.Rcv * dcPowerSupply.i + dcPowerSupply.V0 ($RES_SIM_33) [----] [----] elseif dcPowerSupply.cc then [----] [----] [SCAL] (1) -dcPowerSupply.i = dcPowerSupply.I0 - dcPowerSupply.Gcc * dcPowerSupply.v ($RES_SIM_34) [----] [----] else [----] [----] [SCAL] (1) dcPowerSupply.P0 = -dcPowerSupply.v * dcPowerSupply.i ($RES_SIM_35) [----] [----] end if; [----] else [----] [-IF-] (1) ($RES_SIM_36) [----] [----] if dcPowerSupply.cv then [----] [----] [SCAL] (1) dcPowerSupply.v = dcPowerSupply.Rcv * dcPowerSupply.i + dcPowerSupply.V0 ($RES_SIM_37) [----] [----] else [----] [----] [SCAL] (1) -dcPowerSupply.i = dcPowerSupply.I0 - dcPowerSupply.Gcc * dcPowerSupply.v ($RES_SIM_38) [----] [----] end if; [----] end if; Error: Internal error NBInitialization.main failed to apply modules!