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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_Redge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004841/0.004841, allocations: 96.73 kB / 15.73 MB, free: 6.484 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.001287/0.001287, allocations: 192.3 kB / 16.67 MB, free: 6.391 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1823/0.1823, allocations: 11.18 MB / 301.7 MB, free: 1.324 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 67.88 kB / 417.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2277, allocations: 51.96 MB / 469.3 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.002814/0.2306, allocations: 2.007 MB / 471.3 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001854/0.2325, allocations: 1.277 MB / 472.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.2326, allocations: 6.312 kB / 472.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007755/0.2334, allocations: 311.6 kB / 472.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004205/0.2338, allocations: 207 kB / 473.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007517/0.2346, allocations: 330.8 kB / 473.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.2349, allocations: 359 kB / 473.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.2351, allocations: 57.69 kB / 473.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001884/0.2353, allocations: 145.5 kB / 474 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.2355, allocations: 154.2 kB / 474.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.997e-05/0.2355, allocations: 17.88 kB / 474.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002558/0.2358, allocations: 130 kB / 474.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.992e-05/0.2359, allocations: 91.38 kB / 474.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.236, allocations: 130.5 kB / 474.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.2364, allocations: 401.4 kB / 474.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.2364, allocations: 0 / 474.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2364, allocations: 0 / 474.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.2364, allocations: 0 / 474.9 MB, free: 13.27 MB / 350.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;