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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay",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.005703/0.005703, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001117/0.001117, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.312/1.312, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06056/0.06056, allocations: 10.75 MB / 280.7 MB, free: 10.4 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.001715/0.001715, allocations: 74.7 kB / 390.3 MB, free: 5.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2317, allocations: 49.02 MB / 439.4 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay): time 0.002764/0.2345, allocations: 1.988 MB / 441.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.2361, allocations: 1.174 MB / 442.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.2363, allocations: 2.344 kB / 442.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007399/0.237, allocations: 283.9 kB / 442.8 MB, free: 2.797 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.000412/0.2375, allocations: 195.8 kB / 443 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006654/0.2381, allocations: 282.6 kB / 443.3 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003648/0.2385, allocations: 351.6 kB / 443.6 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.2386, allocations: 45.06 kB / 443.7 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.2388, allocations: 141.1 kB / 443.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.239, allocations: 140.8 kB / 443.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.432e-05/0.239, allocations: 20.62 kB / 444 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002111/0.2392, allocations: 108 kB / 444.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.192e-05/0.2393, allocations: 71.2 kB / 444.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.2394, allocations: 119.3 kB / 444.2 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004303/0.2399, allocations: 358.2 kB / 444.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2399, allocations: 1.438 kB / 444.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2399, allocations: 0 / 444.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2399, allocations: 0 / 444.6 MB, free: 1.973 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;