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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_Redge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004641/0.004641, allocations: 102.1 kB / 15.73 MB, free: 6 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.001267/0.001267, allocations: 184.2 kB / 16.67 MB, free: 5.926 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06564/0.06564, allocations: 11.21 MB / 301.7 MB, free: 4.027 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 72.34 kB / 417.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08573/0.0876, allocations: 51.98 MB / 469.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.003371/0.09101, allocations: 2.001 MB / 471.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.09314, allocations: 1.29 MB / 472.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.09326, allocations: 7.938 kB / 472.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007879/0.09407, allocations: 291.2 kB / 472.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004492/0.09453, allocations: 207.2 kB / 473.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007602/0.0953, allocations: 334.8 kB / 473.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.09572, allocations: 363.1 kB / 473.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.09587, allocations: 44.73 kB / 473.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.09607, allocations: 155.4 kB / 474 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.09628, allocations: 147.4 kB / 474.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.441e-05/0.09633, allocations: 20 kB / 474.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.09657, allocations: 123.9 kB / 474.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.0967, allocations: 87.73 kB / 474.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.09685, allocations: 135.1 kB / 474.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004814/0.09734, allocations: 390.7 kB / 474.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.09735, allocations: 3.938 kB / 474.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.09736, allocations: 0 / 474.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.09737, allocations: 4 kB / 474.9 MB, free: 9.508 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-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;