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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On_Redge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00594/0.00594, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.001362/0.001362, allocations: 203.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.499/1.499, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06323/0.06323, allocations: 10.74 MB / 280.7 MB, free: 10.42 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.002071/0.002071, allocations: 76.52 kB / 390.4 MB, free: 5.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2907, allocations: 49.02 MB / 439.4 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.003672/0.2943, allocations: 1.993 MB / 441.4 MB, free: 3.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002113/0.2964, allocations: 1.213 MB / 442.6 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.2966, allocations: 1.375 kB / 442.6 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.2976, allocations: 304.8 kB / 442.9 MB, free: 2.793 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.0005741/0.2982, allocations: 201.6 kB / 443.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.2993, allocations: 292.4 kB / 443.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006761/0.3, allocations: 352.6 kB / 443.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.3002, allocations: 34.02 kB / 443.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.3004, allocations: 153.1 kB / 443.9 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002636/0.3007, allocations: 149.2 kB / 444 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.778e-05/0.3008, allocations: 20.19 kB / 444 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004127/0.3012, allocations: 132.3 kB / 444.2 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.3013, allocations: 90.38 kB / 444.3 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.3015, allocations: 126.8 kB / 444.4 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000687/0.3022, allocations: 396.8 kB / 444.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3022, allocations: 0 / 444.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.3022, allocations: 1.25 kB / 444.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.3022, allocations: 0 / 444.8 MB, free: 1.934 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_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;