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.007166/0.007166, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.001671/0.001671, allocations: 188.5 kB / 16.67 MB, free: 6.367 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.7/1.7, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06259/0.06259, allocations: 10.74 MB / 280.6 MB, free: 10.42 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.001518/0.001518, allocations: 66.92 kB / 390.8 MB, free: 5.031 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4251/0.4266, allocations: 49.02 MB / 439.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.003907/0.4306, allocations: 1.986 MB / 441.8 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.4325, allocations: 1.203 MB / 443.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001359/0.4327, allocations: 2.75 kB / 443.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009011/0.4336, allocations: 308.3 kB / 443.4 MB, free: 3.016 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004447/0.434, allocations: 201.2 kB / 443.6 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006671/0.4347, allocations: 300.3 kB / 443.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004019/0.4351, allocations: 366 kB / 444.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001435/0.4353, allocations: 44.34 kB / 444.2 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.4355, allocations: 148.2 kB / 444.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002227/0.4357, allocations: 150.1 kB / 444.5 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/0.4358, allocations: 19.09 kB / 444.6 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002859/0.4361, allocations: 128.4 kB / 444.7 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.4362, allocations: 84.28 kB / 444.8 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.4364, allocations: 142.8 kB / 444.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006615/0.437, allocations: 397.5 kB / 445.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.4371, allocations: 0.5156 kB / 445.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4371, allocations: 0 / 445.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.4371, allocations: 1.469 kB / 445.3 MB, free: 2.145 MB / 318.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;