Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.StateGraph.Examples.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|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.makeProduct.T1.enableFire|tankController.makeProduct.T2.enableFire|tankController.makeProduct.T3.enableFire|tankController.makeProduct.T4.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks") translateModel(Modelica.StateGraph.Examples.ControlledTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|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.makeProduct.T1.enableFire|tankController.makeProduct.T2.enableFire|tankController.makeProduct.T3.enableFire|tankController.makeProduct.T4.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.ControlledTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 116.9 kB / 17.76 MB, free: 5.336 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.00105/0.00105, allocations: 184.7 kB / 18.68 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.578e-05/2.579e-05, allocations: 2.281 kB / 351.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ControlledTanks): time 0.005571/0.005606, allocations: 3.811 MB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004962/0.0106, allocations: 2.576 MB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001076/0.0117, allocations: 23.88 kB / 358.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001642/0.01336, allocations: 0.5701 MB / 358.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001431/0.01484, allocations: 437.8 kB / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002787/0.01764, allocations: 1.086 MB / 360.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002803/0.02046, allocations: 2.095 MB / 362.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002119/0.02259, allocations: 1.324 MB / 363.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001466/0.02407, allocations: 0.8803 MB / 364.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001316/0.02539, allocations: 0.8055 MB / 365.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006155/0.02602, allocations: 220 kB / 365.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007842/0.02681, allocations: 315.8 kB / 366 MB, free: 5.109 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001941/0.02877, allocations: 2.234 MB / 368.3 MB, free: 2.852 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0009578/0.02974, allocations: 1.308 MB / 369.6 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006031/0.03035, allocations: 267.2 kB / 369.8 MB, free: 1.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.000473/0.03083, allocations: 182.9 kB / 370 MB, free: 1.082 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: 339 (326) * Number of variables: 319 (309) Notification: Performance of Bindings: time 0.1786/0.2094, allocations: 6.535 MB / 376.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0009234/0.2104, allocations: 1.138 MB / 377.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0035/0.2139, allocations: 4.311 MB / 382 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simplify1: time 0.0003058/0.2142, allocations: 263.1 kB / 382.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of Alias: time 0.007529/0.2217, allocations: 7.561 MB / 389.8 MB, free: 7.984 MB / 302.1 MB Notification: Performance of simplify2: time 0.0002772/0.222, allocations: 195.5 kB / 390 MB, free: 7.887 MB / 302.1 MB Error: Internal error NBDetectStates.collectPreAndPrevious failed because of unexpected expression pre(, time - tankController.makeProduct.T2.t_dummy}).