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.001201/0.001201, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.001058/0.001058, allocations: 192 kB / 17.31 MB, free: 5.18 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.541/1.541, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06452/0.06452, allocations: 10.74 MB / 281.3 MB, free: 1.309 MB / 222.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.001645/0.001645, allocations: 71.91 kB / 342 MB, free: 4.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3938, allocations: 49.01 MB / 391 MB, free: 49.95 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay): time 0.005787/0.3996, allocations: 1.995 MB / 393 MB, free: 48.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00295/0.4026, allocations: 1.174 MB / 394.2 MB, free: 47.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002037/0.4028, allocations: 10.84 kB / 394.2 MB, free: 47.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001038/0.4039, allocations: 275.5 kB / 394.5 MB, free: 47.68 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.0005352/0.4045, allocations: 188.5 kB / 394.6 MB, free: 47.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008683/0.4054, allocations: 290.2 kB / 394.9 MB, free: 47.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004735/0.4058, allocations: 342.4 kB / 395.3 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.406, allocations: 58.92 kB / 395.3 MB, free: 47.28 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.4062, allocations: 142.2 kB / 395.5 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.4065, allocations: 134.6 kB / 395.6 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.275e-05/0.4065, allocations: 17.72 kB / 395.6 MB, free: 47.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002822/0.4068, allocations: 107.9 kB / 395.7 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.407, allocations: 73.91 kB / 395.8 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.4071, allocations: 120.4 kB / 395.9 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006382/0.4078, allocations: 352.1 kB / 396.2 MB, free: 46.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4078, allocations: 4.75 kB / 396.2 MB, free: 46.87 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.4078, allocations: 1.375 kB / 396.2 MB, free: 46.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.4078, allocations: 0 / 396.2 MB, free: 46.87 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;