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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 84.44 kB / 19.18 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 173.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9505/0.9505, allocations: 177.1 MB / 202.8 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03761/0.03761, allocations: 8.615 MB / 267.8 MB, free: 5.137 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_Redge",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_Redge",fmuType="me_cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.053e-06/2.053e-06, allocations: 0 / 396.6 MB, free: 1.121 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.094e-05/2.299e-05, allocations: 5.234 kB / 396.6 MB, free: 1.117 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.003485/0.003508, allocations: 1.967 MB / 398.6 MB, free: 15.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005523/0.009031, allocations: 1.364 MB / 400 MB, free: 13.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.009192, allocations: 7.938 kB / 400 MB, free: 13.76 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003872/0.01306, allocations: 303.1 kB / 400.3 MB, free: 13.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008274/0.01389, allocations: 270.8 kB / 400.5 MB, free: 13.2 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006991/0.01459, allocations: 274.7 kB / 400.8 MB, free: 12.93 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004543/0.01504, allocations: 386.9 kB / 401.2 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.01518, allocations: 40.72 kB / 401.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002789/0.01546, allocations: 195.5 kB / 401.4 MB, free: 12.32 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003254/0.01871, allocations: 147.6 kB / 401.6 MB, free: 12.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.413e-05/0.01876, allocations: 20 kB / 401.6 MB, free: 12.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002604/0.01902, allocations: 139.7 kB / 401.7 MB, free: 12.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.01913, allocations: 95.67 kB / 401.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.739e-05/0.01923, allocations: 71.77 kB / 401.9 MB, free: 11.86 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005372/0.01977, allocations: 422.6 kB / 402.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.01977, allocations: 0 / 402.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.01977, allocations: 4 kB / 402.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.01978, allocations: 0 / 402.3 MB, free: 11.44 MB / 378.7 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 2.0.0/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; " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 1.7868257854133844]