Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 104.7 kB / 16.38 MB, free: 6.492 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.00108/0.00108, allocations: 190.5 kB / 17.31 MB, free: 5.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.119/1.119, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05185/0.05185, allocations: 10.73 MB / 281.3 MB, free: 1.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.876e-05/1.877e-05, allocations: 2.281 kB / 341.9 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002986/0.00302, allocations: 2.147 MB / 344.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.004719, allocations: 1.252 MB / 345.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.004832, allocations: 4 kB / 345.3 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006576/0.005496, allocations: 275.1 kB / 345.6 MB, free: 0.832 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.000365/0.005875, allocations: 191.2 kB / 345.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006089/0.006493, allocations: 327.2 kB / 346.1 MB, free: 332 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000376/0.006877, allocations: 419 kB / 346.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.007016, allocations: 57.16 kB / 346.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.007217, allocations: 167.3 kB / 346.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.007379, allocations: 155.2 kB / 346.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.661e-05/0.007423, allocations: 23.98 kB / 346.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.007595, allocations: 127.9 kB / 347 MB, free: 15.39 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0002901/0.007894, allocations: 474.5 kB / 347.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001528/0.008053, allocations: 299.5 kB / 347.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.801e-05/0.008106, allocations: 43.81 kB / 347.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.228e-05/0.008133, allocations: 8 kB / 347.8 MB, free: 14.58 MB / 302.1 MB Error: Internal error NBEquation.WhenEquationBody.collectForSplit failed because lhs of statement is not a cref: (counter.Value, counter.Q) := IndustrialControlSystems.Logical.Counter.Functions.count(pre(counter.Value), counter.PV, counter.Sd, pre(counter.Sd), counter.CUd, pre(counter.CUd), counter.CDd, pre(counter.CDd), counter.R, counter.Max)