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.0008434/0.0008434, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.000914/0.0009142, allocations: 168.7 kB / 15.95 MB, free: 204 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.425/1.425, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05752/0.05752, allocations: 10.73 MB / 281.1 MB, free: 10.56 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.0005491/0.0005493, allocations: 16 kB / 341.6 MB, free: 23.83 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1155, allocations: 50.01 MB / 391.6 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.003414/0.1189, allocations: 1.649 MB / 393.3 MB, free: 4.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002443/0.1214, allocations: 1.124 MB / 394.4 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002681/0.1217, allocations: 7.938 kB / 394.4 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.1229, allocations: 275.4 kB / 394.7 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007049/0.1237, allocations: 175.5 kB / 394.9 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009456/0.1246, allocations: 247.5 kB / 395.1 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005441/0.1252, allocations: 323.1 kB / 395.4 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.1253, allocations: 36.73 kB / 395.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.1257, allocations: 131.4 kB / 395.6 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002947/0.126, allocations: 135.5 kB / 395.7 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.891e-05/0.1261, allocations: 8 kB / 395.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003939/0.1265, allocations: 99.86 kB / 395.8 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.1266, allocations: 75.73 kB / 395.9 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.1267, allocations: 73.56 kB / 396 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004824/0.1272, allocations: 291.6 kB / 396.3 MB, free: 1.117 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.1272, allocations: 4 kB / 396.3 MB, free: 1.113 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1273, allocations: 0 / 396.3 MB, free: 1.113 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.1273, allocations: 4 kB / 396.3 MB, free: 1.109 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;