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.001254/0.001254, allocations: 112.5 kB / 16.42 MB, free: 6.523 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.001214/0.001214, allocations: 183.2 kB / 17.35 MB, free: 5.746 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.803/1.803, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05507/0.05507, allocations: 10.74 MB / 281.3 MB, free: 1.289 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.847e-05/2.849e-05, allocations: 2.281 kB / 391.4 MB, free: 46 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003582/0.003619, allocations: 2.141 MB / 393.6 MB, free: 44.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.005729, allocations: 1.247 MB / 394.8 MB, free: 43.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.005915, allocations: 3.188 kB / 394.8 MB, free: 43.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007585/0.006681, allocations: 276.3 kB / 395.1 MB, free: 43.59 MB / 318.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.0005236/0.007215, allocations: 204.2 kB / 395.3 MB, free: 43.49 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000886/0.00811, allocations: 318.8 kB / 395.6 MB, free: 43.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005312/0.008649, allocations: 416.5 kB / 396 MB, free: 43.15 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.00884, allocations: 75.55 kB / 396.1 MB, free: 43.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002713/0.009119, allocations: 172.5 kB / 396.3 MB, free: 43.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.009325, allocations: 145.2 kB / 396.4 MB, free: 42.97 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.329e-05/0.009386, allocations: 21.88 kB / 396.4 MB, free: 42.97 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000299/0.009691, allocations: 133.2 kB / 396.6 MB, free: 42.94 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0003593/0.01006, allocations: 467.5 kB / 397 MB, free: 42.62 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001608/0.01023, allocations: 304.3 kB / 397.3 MB, free: 42.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.298e-05/0.0103, allocations: 48.69 kB / 397.4 MB, free: 42.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.738e-05/0.01037, allocations: 10.53 kB / 397.4 MB, free: 42.37 MB / 318.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)