Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Fluid.Examples.ControlledTankSystem.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|shut.on|shut.reset.1.|shut.reset.2.|start.on|start.reset.1.|start.reset.2.|stop.on|stop.reset.1.|stop.reset.2.|tankController.T1.enableFire|tankController.T2.enableFire|tankController.T3.enableFire|tankController.T4.enableFire|tankController.T5.enableFire|tankController.T6.enableFire|tankController.normal.T1.enableFire|tankController.normal.T2.enableFire|tankController.normal.T3.enableFire|tankController.normal.T4.enableFire",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") translateModel(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|shut.on|shut.reset.1.|shut.reset.2.|start.on|start.reset.1.|start.reset.2.|stop.on|stop.reset.1.|stop.reset.2.|tankController.T1.enableFire|tankController.T2.enableFire|tankController.T3.enableFire|tankController.T4.enableFire|tankController.T5.enableFire|tankController.T6.enableFire|tankController.normal.T1.enableFire|tankController.normal.T2.enableFire|tankController.normal.T3.enableFire|tankController.normal.T4.enableFire",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001198/0.001198, allocations: 111.8 kB / 18.47 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.001249, allocations: 214.2 kB / 19.42 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.683e-05/1.685e-05, allocations: 2.281 kB / 359.3 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks): time 0.2048/0.2048, allocations: 27.96 MB / 387.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009527/0.2144, allocations: 7.585 MB / 394.9 MB, free: 356 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001873/0.2163, allocations: 52.38 kB / 394.9 MB, free: 336 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002445/0.2188, allocations: 1.011 MB / 395.9 MB, free: 15.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004028/0.2228, allocations: 1.642 MB / 397.6 MB, free: 14.85 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005324/0.2282, allocations: 2.166 MB / 399.7 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00683/0.235, allocations: 5.053 MB / 404.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003673/0.2387, allocations: 2.105 MB / 406.9 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003638/0.2424, allocations: 2.068 MB / 409 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002123/0.2445, allocations: 1.656 MB / 410.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000421/0.2449, allocations: 319.4 kB / 410.9 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002289/0.2472, allocations: 0.9489 MB / 411.9 MB, free: 6.203 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.003121/0.2504, allocations: 4.199 MB / 416.1 MB, free: 1.961 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.001664/0.252, allocations: 2.536 MB / 418.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007803/0.2528, allocations: 430.8 kB / 419 MB, free: 14.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 0.0007575/0.2536, allocations: 214.8 kB / 419.2 MB, free: 14.75 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 (492) * Number of variables: 527 (473) Notification: Performance of Bindings: time 0.01273/0.2663, allocations: 12.08 MB / 431.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of FunctionAlias: time 0.001286/0.2676, allocations: 1.526 MB / 432.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of Early Inline: time 0.007924/0.2756, allocations: 9.129 MB / 442 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simplify1: time 0.0005002/0.2761, allocations: 463.3 kB / 442.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of Alias: time 0.01187/0.288, allocations: 10.79 MB / 453.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simplify2: time 0.0007365/0.2887, allocations: 379.5 kB / 453.6 MB, free: 11.21 MB / 366.1 MB Error: Internal error NBDetectStates.collectPreAndPrevious failed because of unexpected expression pre(, time - tankController.normal.T2.t_dummy}).