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: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006063/0.006063, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001444/0.001444, allocations: 200.5 kB / 16.68 MB, free: 5.969 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.583/1.583, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.056/0.056, allocations: 10.75 MB / 280.6 MB, free: 10.43 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.001398/0.001398, allocations: 68.53 kB / 390.8 MB, free: 5.047 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3203, allocations: 49.02 MB / 439.9 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay): time 0.003587/0.3239, allocations: 1.983 MB / 441.8 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.3259, allocations: 1.174 MB / 443 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.326, allocations: 5.375 kB / 443 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008446/0.3269, allocations: 280.8 kB / 443.3 MB, free: 3.082 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.000472/0.3274, allocations: 196 kB / 443.5 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008017/0.3282, allocations: 285.8 kB / 443.8 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004191/0.3286, allocations: 344.6 kB / 444.1 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.3288, allocations: 47.52 kB / 444.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.329, allocations: 146.8 kB / 444.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.3292, allocations: 135.9 kB / 444.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.763e-05/0.3292, allocations: 20.69 kB / 444.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002383/0.3295, allocations: 102.9 kB / 444.5 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.3296, allocations: 74.91 kB / 444.6 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.3297, allocations: 120.9 kB / 444.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005007/0.3302, allocations: 359.2 kB / 445.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3302, allocations: 0 / 445.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3302, allocations: 0 / 445.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3302, allocations: 4 kB / 445.1 MB, free: 2.254 MB / 318.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;