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.0008658/0.0008658, allocations: 103.3 kB / 15.06 MB, free: 1.098 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.001338/0.001339, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.246/1.246, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05225/0.05225, allocations: 10.73 MB / 281.1 MB, free: 10.57 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.000442/0.0004421, allocations: 12.22 kB / 341.6 MB, free: 23.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07193/0.07239, allocations: 50.02 MB / 391.6 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.001982/0.07441, allocations: 1.641 MB / 393.2 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.07592, allocations: 1.085 MB / 394.3 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.329e-05/0.07603, allocations: 7.938 kB / 394.3 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006477/0.07668, allocations: 263.4 kB / 394.6 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000321/0.07701, allocations: 167.6 kB / 394.8 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.07759, allocations: 247.4 kB / 395 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002443/0.07784, allocations: 211.6 kB / 395.2 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.07796, allocations: 44.72 kB / 395.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.07811, allocations: 127.5 kB / 395.4 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.07826, allocations: 131.4 kB / 395.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.07829, allocations: 8 kB / 395.5 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.07844, allocations: 83.92 kB / 395.6 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.923e-05/0.07854, allocations: 67.8 kB / 395.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.591e-05/0.0786, allocations: 73.52 kB / 395.7 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002786/0.07889, allocations: 291.6 kB / 396 MB, free: 1.359 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.0789, allocations: 0 / 396 MB, free: 1.359 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.0789, allocations: 0 / 396 MB, free: 1.359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.07892, allocations: 0 / 396 MB, free: 1.359 MB / 286.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;