Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay.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_OffDelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay",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.0007352/0.0007353, allocations: 91.38 kB / 15.06 MB, free: 1.094 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.0008109/0.0008109, allocations: 172.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.182/1.182, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05245/0.05245, allocations: 10.74 MB / 281.1 MB, free: 10.55 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.0004716/0.0004717, allocations: 12 kB / 341.7 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06816/0.06864, allocations: 49.99 MB / 391.7 MB, free: 5.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay): time 0.002033/0.0707, allocations: 1.649 MB / 393.4 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.07224, allocations: 1.093 MB / 394.5 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.07238, allocations: 7.938 kB / 394.5 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006436/0.07303, allocations: 247.5 kB / 394.7 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003411/0.07338, allocations: 159.5 kB / 394.9 MB, free: 2.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006065/0.074, allocations: 247.6 kB / 395.1 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003257/0.07433, allocations: 307.1 kB / 395.4 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.07445, allocations: 48.28 kB / 395.5 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.07462, allocations: 119.4 kB / 395.6 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.07478, allocations: 123.5 kB / 395.7 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.07481, allocations: 4 kB / 395.7 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.07499, allocations: 91.81 kB / 395.8 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.406e-05/0.07507, allocations: 55.83 kB / 395.9 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.43e-05/0.07514, allocations: 73.5 kB / 395.9 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.07541, allocations: 259.7 kB / 396.2 MB, free: 1.191 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.07542, allocations: 0 / 396.2 MB, free: 1.191 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.07543, allocations: 3.938 kB / 396.2 MB, free: 1.188 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.421e-06/0.07544, allocations: 0 / 396.2 MB, free: 1.188 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_OffDelay.mo:12:3-27:11:writable] Error: Internal error BackendDAECreate.lowerWhenEqn: equation not handled: equation when sample(1, 0.0, 0.01) then 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.odt(timer.S, timer.R, timer.PV, time, timer.startTime); timer.tr = if not timer.Q then timer.PV - (time - timer.startTime) else timer.PV; end when;