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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 90] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004647/0.004647, allocations: 97.62 kB / 15.73 MB, free: 6.004 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.001268/0.001268, allocations: 195.5 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.1792/0.1792, allocations: 11.16 MB / 301.7 MB, free: 1.227 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 67.89 kB / 417.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2775, allocations: 51.97 MB / 469.8 MB, free: 16.99 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.003683/0.2812, allocations: 1.991 MB / 471.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002334/0.2836, allocations: 1.291 MB / 473.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.2838, allocations: 5.344 kB / 473.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008918/0.2847, allocations: 304.7 kB / 473.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004577/0.2852, allocations: 202.7 kB / 473.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008435/0.2861, allocations: 331.6 kB / 473.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003818/0.2865, allocations: 362.9 kB / 474.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.2866, allocations: 56.64 kB / 474.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.2868, allocations: 142.6 kB / 474.5 MB, free: 14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.287, allocations: 157.5 kB / 474.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.286e-05/0.2871, allocations: 19.28 kB / 474.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002692/0.2873, allocations: 123.8 kB / 474.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.2874, allocations: 93.81 kB / 474.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.2876, allocations: 131.1 kB / 475 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004438/0.288, allocations: 387.5 kB / 475.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.288, allocations: 4 kB / 475.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.288, allocations: 0 / 475.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.288, allocations: 1.375 kB / 475.3 MB, free: 13.43 MB / 350.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 2.0.0/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;