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.0009804/0.0009803, allocations: 98.56 kB / 16.02 MB, free: 76 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.001459/0.001459, allocations: 180.4 kB / 16.92 MB, free: 6.918 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.918/1.918, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05872/0.05872, allocations: 10.75 MB / 282.1 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.0005935/0.0005935, allocations: 12 kB / 342.9 MB, free: 23.5 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1326, allocations: 50 MB / 392.9 MB, free: 5.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.002623/0.1353, allocations: 1.699 MB / 394.6 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.1374, allocations: 1.17 MB / 395.8 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1376, allocations: 7.938 kB / 395.8 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009839/0.1386, allocations: 279.4 kB / 396 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004589/0.139, allocations: 195.5 kB / 396.2 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007734/0.1398, allocations: 259.5 kB / 396.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.1403, allocations: 359 kB / 396.8 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.1405, allocations: 48.73 kB / 396.9 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.1407, allocations: 123.4 kB / 397 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.1409, allocations: 147.4 kB / 397.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.104e-05/0.141, allocations: 4 kB / 397.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002357/0.1412, allocations: 99.88 kB / 397.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.1413, allocations: 83.73 kB / 397.3 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.1415, allocations: 144.9 kB / 397.5 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003913/0.1419, allocations: 291.6 kB / 397.8 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.1419, allocations: 0 / 397.8 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1419, allocations: 0 / 397.8 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.142, allocations: 0 / 397.8 MB, free: 0.5273 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;