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 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: "" <> 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.001028/0.001028, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001073/0.001073, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.866/1.866, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0564/0.0564, allocations: 10.73 MB / 281.1 MB, free: 10.57 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005054/0.0005055, allocations: 19.94 kB / 341.7 MB, free: 23.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1216, allocations: 50 MB / 391.7 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.00264/0.1243, allocations: 1.641 MB / 393.3 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.1262, allocations: 1.077 MB / 394.4 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.1264, allocations: 3.938 kB / 394.4 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008603/0.1272, allocations: 267.4 kB / 394.7 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003831/0.1276, allocations: 179.5 kB / 394.9 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006816/0.1283, allocations: 247.5 kB / 395.1 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003026/0.1286, allocations: 215.5 kB / 395.3 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.1288, allocations: 48.62 kB / 395.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.1289, allocations: 131.5 kB / 395.5 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.1291, allocations: 127.5 kB / 395.6 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.69e-05/0.1292, allocations: 4 kB / 395.6 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.1293, allocations: 83.92 kB / 395.7 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.792e-05/0.1295, allocations: 79.72 kB / 395.8 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.401e-05/0.1295, allocations: 69.58 kB / 395.8 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003459/0.1299, allocations: 291.6 kB / 396.1 MB, free: 1.242 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1299, allocations: 0 / 396.1 MB, free: 1.242 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1299, allocations: 0 / 396.1 MB, free: 1.242 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.1299, allocations: 0 / 396.1 MB, free: 1.242 MB / 286.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 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;