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.001418/0.001418, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001742/0.001742, allocations: 197.7 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.1 MB / 222 MB, free: 4.992 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05526/0.05526, allocations: 10.73 MB / 280.1 MB, free: 10.96 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.00124/0.00124, allocations: 63.91 kB / 339.8 MB, free: 23.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09988/0.1011, allocations: 49.02 MB / 388.9 MB, free: 6.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.004208/0.1054, allocations: 2.053 MB / 390.9 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.1074, allocations: 1.201 MB / 392.1 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.1076, allocations: 3.938 kB / 392.1 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009177/0.1085, allocations: 283.4 kB / 392.4 MB, free: 3.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005011/0.109, allocations: 191.5 kB / 392.6 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008762/0.1099, allocations: 275.5 kB / 392.9 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004426/0.1104, allocations: 347.1 kB / 393.2 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.1105, allocations: 44.72 kB / 393.2 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.1108, allocations: 131.4 kB / 393.4 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001924/0.111, allocations: 147.4 kB / 393.5 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.088e-05/0.111, allocations: 15.94 kB / 393.5 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002358/0.1113, allocations: 103.9 kB / 393.6 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.997e-05/0.1114, allocations: 79.67 kB / 393.7 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.1115, allocations: 123.3 kB / 393.8 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004631/0.112, allocations: 383 kB / 394.2 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.112, allocations: 0 / 394.2 MB, free: 1.367 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.112, allocations: 3.938 kB / 394.2 MB, free: 1.363 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.112, allocations: 0 / 394.2 MB, free: 1.363 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;