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.0009556/0.0009558, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00665/0.00665, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.378/1.378, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05436/0.05436, allocations: 10.75 MB / 281.5 MB, free: 10.45 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.000517/0.0005169, allocations: 12 kB / 342.3 MB, free: 23.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09462/0.09515, allocations: 50.01 MB / 392.4 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.002347/0.09755, allocations: 1.699 MB / 394 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.09936, allocations: 1.166 MB / 395.2 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.09949, allocations: 4 kB / 395.2 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007545/0.1002, allocations: 279.4 kB / 395.5 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003683/0.1006, allocations: 191.5 kB / 395.7 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005856/0.1012, allocations: 267.5 kB / 395.9 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003585/0.1016, allocations: 367 kB / 396.3 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.1017, allocations: 44.62 kB / 396.3 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.1019, allocations: 123.4 kB / 396.5 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.1021, allocations: 147.4 kB / 396.6 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.85e-05/0.1021, allocations: 4 kB / 396.6 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.1023, allocations: 107.9 kB / 396.7 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.1025, allocations: 75.67 kB / 396.8 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.1026, allocations: 144.9 kB / 396.9 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004103/0.103, allocations: 375 kB / 397.3 MB, free: 328 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.103, allocations: 0 / 397.3 MB, free: 328 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.103, allocations: 4 kB / 397.3 MB, free: 324 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.1031, allocations: 0 / 397.3 MB, free: 324 kB / 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;