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: "" <> 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.000774/0.000774, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0008697/0.0008697, allocations: 168.7 kB / 15.95 MB, free: 204 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.179/1.179, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0534/0.0534, allocations: 10.74 MB / 281.1 MB, free: 10.54 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.0004515/0.0004516, allocations: 15.94 kB / 341.7 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.067/0.06746, allocations: 49.99 MB / 391.7 MB, free: 5.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.001988/0.06948, allocations: 1.653 MB / 393.4 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.07107, allocations: 1.124 MB / 394.5 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.07122, allocations: 3.938 kB / 394.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006585/0.07189, allocations: 267.4 kB / 394.8 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003528/0.07225, allocations: 175.5 kB / 394.9 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006245/0.07288, allocations: 259.5 kB / 395.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00034/0.07323, allocations: 319.1 kB / 395.5 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.07334, allocations: 40.62 kB / 395.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.07352, allocations: 135.4 kB / 395.7 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.07369, allocations: 135.5 kB / 395.8 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.905e-05/0.07373, allocations: 8 kB / 395.8 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.07391, allocations: 99.86 kB / 395.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.872e-05/0.07401, allocations: 75.75 kB / 396 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.968e-05/0.07408, allocations: 69.58 kB / 396.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.07436, allocations: 291.5 kB / 396.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.07437, allocations: 0 / 396.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.07438, allocations: 0 / 396.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.07439, allocations: 0 / 396.4 MB, free: 1.023 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;