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.001072/0.001072, allocations: 96.14 kB / 15.87 MB, free: 16 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.001184/0.001183, allocations: 194.9 kB / 16.79 MB, free: 6.812 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.729/1.729, allocations: 205.1 MB / 222.6 MB, free: 4.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05541/0.05541, allocations: 10.75 MB / 280.7 MB, free: 10.74 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.001261/0.001262, allocations: 60.34 kB / 340.5 MB, free: 23.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1143, allocations: 49.03 MB / 389.5 MB, free: 6.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.003518/0.1179, allocations: 2.057 MB / 391.6 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.1198, allocations: 1.19 MB / 392.8 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.12, allocations: 3.938 kB / 392.8 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008293/0.1208, allocations: 283.4 kB / 393.1 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003723/0.1212, allocations: 195.5 kB / 393.2 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007133/0.1219, allocations: 255.6 kB / 393.5 MB, free: 2.727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003786/0.1223, allocations: 367 kB / 393.9 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.1225, allocations: 48.7 kB / 393.9 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001716/0.1226, allocations: 127.5 kB / 394 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/0.1228, allocations: 143.4 kB / 394.2 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.478e-05/0.1229, allocations: 8 kB / 394.2 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002074/0.1231, allocations: 111.9 kB / 394.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.1232, allocations: 75.75 kB / 394.4 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.1234, allocations: 131.1 kB / 394.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003402/0.1237, allocations: 295.7 kB / 394.8 MB, free: 1.445 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.1237, allocations: 3.938 kB / 394.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1237, allocations: 0 / 394.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.719e-06/0.1237, allocations: 0 / 394.8 MB, free: 1.441 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;