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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001179/0.001179, allocations: 182.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05771/0.05771, allocations: 10.76 MB / 27.49 MB, free: 1.863 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.1 MB / 235.7 MB, free: 11.75 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008947/0.0008949, allocations: 95.89 kB / 285.5 MB, free: 12.87 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 55.92 kB / 345.3 MB, free: 0.9766 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2207, allocations: 49.01 MB / 394.3 MB, free: 35.57 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.00265/0.2234, allocations: 2.048 MB / 396.4 MB, free: 33.51 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.2248, allocations: 1.199 MB / 397.6 MB, free: 32.3 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.485e-05/0.2249, allocations: 3.938 kB / 397.6 MB, free: 32.3 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0005972/0.2255, allocations: 275.4 kB / 397.8 MB, free: 32.03 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002849/0.2258, allocations: 195.5 kB / 398 MB, free: 31.84 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004984/0.2263, allocations: 264.5 kB / 398.3 MB, free: 31.59 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002397/0.2265, allocations: 371 kB / 398.6 MB, free: 31.22 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.2266, allocations: 52.72 kB / 398.7 MB, free: 31.17 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.2268, allocations: 131.4 kB / 398.8 MB, free: 31.04 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.2269, allocations: 151.3 kB / 399 MB, free: 30.89 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 2.85e-05/0.2269, allocations: 12 kB / 399 MB, free: 30.88 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.2271, allocations: 103.9 kB / 399.1 MB, free: 30.78 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 7.571e-05/0.2272, allocations: 79.69 kB / 399.2 MB, free: 30.7 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 8.758e-05/0.2273, allocations: 119.2 kB / 399.3 MB, free: 30.59 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.2275, allocations: 384.8 kB / 399.6 MB, free: 30.21 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.2276, allocations: 3.984 kB / 399.6 MB, free: 30.21 MB / 298.8 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2276, allocations: 0 / 399.6 MB, free: 30.21 MB / 298.8 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.2276, allocations: 0 / 399.6 MB, free: 30.21 MB / 298.8 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 1.1.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;