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.001685/0.001685, allocations: 104.1 kB / 15.98 MB, free: 6.352 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.001417/0.001417, allocations: 195.6 kB / 16.91 MB, free: 6.184 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.402/1.402, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06484/0.06484, allocations: 11.2 MB / 301.9 MB, free: 4.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0019/0.001901, allocations: 67.88 kB / 364.8 MB, free: 5.242 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1947, allocations: 51.97 MB / 416.7 MB, free: 22.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.002694/0.1975, allocations: 2.051 MB / 418.8 MB, free: 20.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.199, allocations: 1.258 MB / 420 MB, free: 19.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.1991, allocations: 7.938 kB / 420.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006608/0.1998, allocations: 294.4 kB / 420.3 MB, free: 19.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003444/0.2001, allocations: 184.8 kB / 420.5 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005763/0.2007, allocations: 305.5 kB / 420.8 MB, free: 18.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002619/0.201, allocations: 367.1 kB / 421.2 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.2011, allocations: 60.12 kB / 421.2 MB, free: 18.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.2013, allocations: 147.4 kB / 421.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.2014, allocations: 163.4 kB / 421.5 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.2014, allocations: 16 kB / 421.6 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.2016, allocations: 119.3 kB / 421.7 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.978e-05/0.2017, allocations: 91.73 kB / 421.8 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.762e-05/0.2018, allocations: 135.1 kB / 421.9 MB, free: 17.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.202, allocations: 293.4 kB / 422.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.202, allocations: 0 / 422.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.202, allocations: 0 / 422.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.2021, allocations: 3.938 kB / 422.2 MB, free: 17.24 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;