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.001425/0.001426, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001651/0.001651, allocations: 191.3 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05624/0.05624, allocations: 10.75 MB / 280.2 MB, free: 10.65 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.001796/0.001796, allocations: 67.84 kB / 340.1 MB, free: 23.57 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1195, allocations: 49.02 MB / 389.2 MB, free: 6.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.003799/0.1233, allocations: 2.061 MB / 391.2 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.1253, allocations: 1.182 MB / 392.4 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.1254, allocations: 4 kB / 392.4 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008478/0.1263, allocations: 287.4 kB / 392.7 MB, free: 2.938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004531/0.1268, allocations: 187.5 kB / 392.9 MB, free: 2.754 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008341/0.1276, allocations: 283.5 kB / 393.1 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004133/0.128, allocations: 363.1 kB / 393.5 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.1282, allocations: 52.64 kB / 393.6 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.1284, allocations: 147.4 kB / 393.7 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001857/0.1286, allocations: 159.4 kB / 393.9 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.812e-05/0.1286, allocations: 20 kB / 393.9 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.1289, allocations: 119.8 kB / 394 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.129, allocations: 87.75 kB / 394.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1292, allocations: 139.1 kB / 394.2 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004759/0.1296, allocations: 387 kB / 394.6 MB, free: 1.031 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1297, allocations: 0 / 394.6 MB, free: 1.031 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1297, allocations: 0 / 394.6 MB, free: 1.031 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1297, allocations: 4 kB / 394.6 MB, free: 1.027 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;