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.001222/0.001222, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001169/0.001169, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.17/1.17, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05345/0.05345, allocations: 10.74 MB / 281.2 MB, free: 1.359 MB / 222.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.001442/0.001442, allocations: 72.11 kB / 341.2 MB, free: 5.176 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1845, allocations: 49.01 MB / 390.2 MB, free: 49.94 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.002816/0.1874, allocations: 1.991 MB / 392.2 MB, free: 48.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.1888, allocations: 1.215 MB / 393.4 MB, free: 47.72 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.335e-05/0.1889, allocations: 2.75 kB / 393.4 MB, free: 47.72 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006737/0.1896, allocations: 304.7 kB / 393.7 MB, free: 47.63 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.00036/0.19, allocations: 201.1 kB / 393.9 MB, free: 47.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005633/0.1906, allocations: 293.2 kB / 394.2 MB, free: 47.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003052/0.1909, allocations: 365.6 kB / 394.6 MB, free: 47.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.191, allocations: 54.16 kB / 394.6 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.1912, allocations: 147.5 kB / 394.8 MB, free: 47.15 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.1913, allocations: 149.7 kB / 394.9 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.902e-05/0.1914, allocations: 19.5 kB / 394.9 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.1916, allocations: 124.4 kB / 395 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.336e-05/0.1917, allocations: 82.72 kB / 395.1 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.1918, allocations: 138.8 kB / 395.3 MB, free: 46.92 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000391/0.1922, allocations: 392.3 kB / 395.6 MB, free: 46.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1922, allocations: 5.312 kB / 395.7 MB, free: 46.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1922, allocations: 0 / 395.7 MB, free: 46.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.1922, allocations: 0 / 395.7 MB, free: 46.76 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;