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.001011/0.001011, allocations: 111.9 kB / 16.41 MB, free: 6.469 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.001037/0.001037, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.225/1.225, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0539/0.0539, allocations: 10.73 MB / 281.3 MB, free: 1.281 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.001367/0.001367, allocations: 75.06 kB / 391.5 MB, free: 46.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06718/0.06856, allocations: 49.04 MB / 440.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.002498/0.07109, allocations: 1.986 MB / 442.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.07248, allocations: 1.193 MB / 443.7 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.616e-05/0.07259, allocations: 7.938 kB / 443.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006161/0.07321, allocations: 302.5 kB / 444 MB, free: 428 kB / 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.0003235/0.07354, allocations: 207.2 kB / 444.2 MB, free: 220 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005572/0.07411, allocations: 287.2 kB / 444.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003988/0.07452, allocations: 363.1 kB / 444.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.07465, allocations: 52.67 kB / 444.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001643/0.07482, allocations: 151.4 kB / 445.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.07499, allocations: 159.4 kB / 445.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/0.07503, allocations: 20 kB / 445.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001973/0.07524, allocations: 119.9 kB / 445.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.07535, allocations: 95.67 kB / 445.4 MB, free: 15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.07547, allocations: 135.2 kB / 445.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.07587, allocations: 394.8 kB / 446 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.07589, allocations: 4 kB / 446 MB, free: 14.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.07589, allocations: 3.938 kB / 446 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.07591, allocations: 0 / 446 MB, free: 14.47 MB / 334.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;