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.006532/0.006532, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001372/0.001372, allocations: 191.1 kB / 16.67 MB, free: 5.969 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.753/1.753, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05828/0.05828, allocations: 10.74 MB / 280.6 MB, free: 10.41 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.001636/0.001636, allocations: 68.53 kB / 390.8 MB, free: 5.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4179/0.4195, 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.004144/0.4237, allocations: 1.994 MB / 441.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002175/0.4259, allocations: 1.207 MB / 443.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.4261, allocations: 5.969 kB / 443.1 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.4272, allocations: 297.3 kB / 443.4 MB, free: 3.012 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.0006031/0.4278, allocations: 209 kB / 443.6 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.4289, allocations: 287.5 kB / 443.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005971/0.4295, allocations: 367.3 kB / 444.2 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002407/0.4297, allocations: 48.44 kB / 444.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002515/0.43, allocations: 149.2 kB / 444.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00028/0.4303, allocations: 153.6 kB / 444.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.413e-05/0.4303, allocations: 18.78 kB / 444.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003674/0.4307, allocations: 125.2 kB / 444.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000147/0.4309, allocations: 91.03 kB / 444.8 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.431, allocations: 135.8 kB / 444.9 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007763/0.4318, allocations: 401.2 kB / 445.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4318, allocations: 1.156 kB / 445.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.4318, allocations: 0 / 445.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.4318, allocations: 0 / 445.3 MB, free: 2.137 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;