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.005495/0.005495, allocations: 103.5 kB / 15.73 MB, free: 6.039 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.001242/0.001242, allocations: 188.1 kB / 16.67 MB, free: 5.973 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.23/1.23, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05409/0.05409, allocations: 10.73 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.001326/0.001326, allocations: 75.89 kB / 390.8 MB, free: 5.008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2157, allocations: 49.01 MB / 439.9 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.00322/0.219, allocations: 1.998 MB / 441.9 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.2207, allocations: 1.204 MB / 443.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.221, allocations: 2.719 kB / 443.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007848/0.2218, allocations: 302.8 kB / 443.4 MB, free: 3.02 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.0004974/0.2223, allocations: 197.8 kB / 443.6 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007411/0.2231, allocations: 301.3 kB / 443.8 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004496/0.2235, allocations: 361.1 kB / 444.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.2237, allocations: 53.97 kB / 444.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002447/0.2239, allocations: 152.7 kB / 444.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.2241, allocations: 150 kB / 444.5 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.595e-05/0.2242, allocations: 19.31 kB / 444.6 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002625/0.2245, allocations: 132.7 kB / 444.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.2246, allocations: 87.16 kB / 444.8 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.2247, allocations: 131.1 kB / 444.9 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005185/0.2252, allocations: 395.5 kB / 445.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2252, allocations: 0.5156 kB / 445.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2252, allocations: 0 / 445.3 MB, free: 2.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.2252, allocations: 0 / 445.3 MB, free: 2.148 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;