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.001071/0.001071, allocations: 100.5 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001554/0.001555, allocations: 175.8 kB / 16.58 MB, free: 6.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.036/2.036, allocations: 205.4 MB / 222.8 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05669/0.05669, allocations: 10.75 MB / 281.8 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.0005947/0.0005949, allocations: 16 kB / 342.3 MB, free: 23.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.127, allocations: 50 MB / 392.3 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay): time 0.003115/0.1302, allocations: 1.652 MB / 393.9 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00225/0.1325, allocations: 1.097 MB / 395 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000239/0.1327, allocations: 4 kB / 395 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.1338, allocations: 255.4 kB / 395.3 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006235/0.1344, allocations: 163.5 kB / 395.4 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000813/0.1353, allocations: 243.5 kB / 395.7 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005089/0.1358, allocations: 307.1 kB / 396 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.1359, allocations: 36.38 kB / 396 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002683/0.1362, allocations: 115.5 kB / 396.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.1365, allocations: 135.4 kB / 396.3 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.414e-05/0.1365, allocations: 4 kB / 396.3 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002403/0.1368, allocations: 79.94 kB / 396.3 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.1369, allocations: 55.77 kB / 396.4 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.137, allocations: 77.56 kB / 396.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004314/0.1374, allocations: 259.6 kB / 396.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.1374, allocations: 0 / 396.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1375, allocations: 0 / 396.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1375, allocations: 0 / 396.7 MB, free: 1.309 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;