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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 99.59 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 173.6 kB / 16.58 MB, free: 6.422 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.957/1.957, allocations: 205.4 MB / 222.7 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05861/0.05861, allocations: 10.74 MB / 281.8 MB, free: 10.54 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.0005869/0.000587, allocations: 16 kB / 342.3 MB, free: 23.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1225, allocations: 50 MB / 392.3 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.003085/0.1256, allocations: 1.649 MB / 393.9 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002131/0.1278, allocations: 1.132 MB / 395 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.128, allocations: 3.938 kB / 395 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009722/0.129, allocations: 279.4 kB / 395.3 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005085/0.1295, allocations: 175.5 kB / 395.5 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008358/0.1304, allocations: 251.5 kB / 395.7 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005618/0.131, allocations: 319.1 kB / 396 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.1311, allocations: 44.72 kB / 396.1 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002804/0.1314, allocations: 131.4 kB / 396.2 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.1316, allocations: 127.5 kB / 396.3 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.619e-05/0.1317, allocations: 8 kB / 396.4 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002837/0.132, allocations: 99.86 kB / 396.4 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.1321, allocations: 79.73 kB / 396.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.511e-05/0.1322, allocations: 65.58 kB / 396.6 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003583/0.1326, allocations: 291.6 kB / 396.9 MB, free: 1.141 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.1326, allocations: 4 kB / 396.9 MB, free: 1.137 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1326, allocations: 0 / 396.9 MB, free: 1.137 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.1326, allocations: 0 / 396.9 MB, free: 1.137 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;