Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge.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/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/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(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 104.3 kB / 16.27 MB, free: 6.051 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.001327/0.001327, allocations: 187.9 kB / 17.2 MB, free: 5.684 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.417/1.417, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06694/0.06694, allocations: 11.2 MB / 302.3 MB, free: 4.156 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 63.89 kB / 365.3 MB, free: 5.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1891/0.1912, allocations: 51.98 MB / 417.2 MB, free: 22.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.00281/0.194, allocations: 1.995 MB / 419.2 MB, free: 20.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.1957, allocations: 1.282 MB / 420.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.1959, allocations: 3.938 kB / 420.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006956/0.1966, allocations: 302.7 kB / 420.8 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003614/0.197, allocations: 209.3 kB / 421 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006775/0.1977, allocations: 334.4 kB / 421.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002687/0.198, allocations: 367.1 kB / 421.7 MB, free: 18.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.1981, allocations: 52.7 kB / 421.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.1982, allocations: 147.5 kB / 421.9 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.1984, allocations: 154 kB / 422.1 MB, free: 17.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.613e-05/0.1984, allocations: 20 kB / 422.1 MB, free: 17.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001925/0.1986, allocations: 115.9 kB / 422.2 MB, free: 17.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.444e-05/0.1987, allocations: 87.73 kB / 422.3 MB, free: 17.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.663e-05/0.1988, allocations: 139.1 kB / 422.4 MB, free: 17.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003557/0.1992, allocations: 384.8 kB / 422.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1992, allocations: 4 kB / 422.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1992, allocations: 0 / 422.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1992, allocations: 0 / 422.8 MB, free: 16.96 MB / 302.1 MB Error: Failed to solve equation timer.startTime = IndustrialControlSystems.Logical.Timers.Functions.positiveEdge(pre(timer.Sd), timer.Sd, timer.R, timer.startTime, time); [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/Logical/Timers/Timer_On_Redge.mo:14:3-36:11:writable] Error: Internal error BackendDAECreate.lowerWhenEqn: equation not handled: equation when sample(1, 0.0, 0.01) then timer.Sd = timer.S; timer.Shd = timer.S_hold; timer.S_hold = IndustrialControlSystems.Logical.Timers.Functions.hold(pre(timer.Sd), timer.Sd, timer.R, pre(timer.Shd)); timer.startTime = IndustrialControlSystems.Logical.Timers.Functions.positiveEdge(pre(timer.Sd), timer.Sd, timer.R, timer.startTime, time); (timer.run, timer.Q) = IndustrialControlSystems.Logical.Timers.Functions.tim(timer.S_hold, timer.R, timer.PV, time, timer.startTime); timer.tr = if timer.Q then timer.PV - (time - timer.startTime) else 0.0; end when;