Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo) 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(BusinessSimulation.Examples.LoveHateDynamics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics") translateModel(BusinessSimulation.Examples.LoveHateDynamics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.LoveHateDynamics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 106.1 kB / 16.42 MB, free: 6.488 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.001126/0.001126, allocations: 192.3 kB / 17.36 MB, free: 5.703 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.355/1.355, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.156/0.156, allocations: 31.13 MB / 322.3 MB, free: 48 kB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.045e-05, allocations: 2.281 kB / 447.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.LoveHateDynamics): time 0.007719/0.007749, allocations: 6.52 MB / 453.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002327/0.01012, allocations: 1.02 MB / 454.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007195/0.01086, allocations: 15.94 kB / 454.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005824/0.01145, allocations: 150.5 kB / 455 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004513/0.01197, allocations: 83.16 kB / 455.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.01301, allocations: 399.4 kB / 455.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.01404, allocations: 1.035 MB / 456.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000943/0.01499, allocations: 0.778 MB / 457.3 MB, free: 7.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004057/0.0154, allocations: 422.6 kB / 457.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004435/0.01586, allocations: 438 kB / 458.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.01601, allocations: 156 kB / 458.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.0162, allocations: 172 kB / 458.4 MB, free: 6.484 MB / 334.1 MB Notification: Performance of combineBinaries: time 0.0008122/0.01702, allocations: 1.421 MB / 459.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004329/0.01746, allocations: 0.8653 MB / 460.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.01763, allocations: 167.5 kB / 460.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 0.0001682/0.0178, allocations: 59.44 kB / 460.9 MB, free: 3.945 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: 260 (260) * Number of variables: 260 (260) Notification: Performance of Bindings: time 0.004011/0.02182, allocations: 4.824 MB / 465.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of FunctionAlias: time 0.0002496/0.02208, allocations: 268.4 kB / 466 MB, free: 14.66 MB / 350.1 MB Notification: Performance of Early Inline: time 0.003342/0.02543, allocations: 3.523 MB / 469.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simplify1: time 0.0003349/0.02579, allocations: 203.7 kB / 469.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of Alias: time 0.01035/0.03615, allocations: 8.414 MB / 478.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of simplify2: time 0.0001466/0.03634, allocations: 59.89 kB / 478.2 MB, free: 1.977 MB / 350.1 MB Error: Internal error NBDetectStates.collectPreAndPrevious failed because of unexpected expression pre(, false}).