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.001707/0.001707, allocations: 108 kB / 15.6 MB, free: 132 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.002313/0.002313, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.786/1.786, allocations: 205.1 MB / 222.4 MB, free: 4.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0627/0.0627, allocations: 10.74 MB / 280.5 MB, free: 10.51 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.001478/0.001479, allocations: 75.81 kB / 340.7 MB, free: 23.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0918/0.0933, allocations: 49.01 MB / 389.7 MB, free: 6.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay): time 0.003983/0.09733, allocations: 2.004 MB / 391.7 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.09937, allocations: 1.162 MB / 392.8 MB, free: 2.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.09956, allocations: 4 kB / 392.8 MB, free: 2.945 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009047/0.1005, allocations: 275.2 kB / 393.1 MB, free: 2.676 MB / 286.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.0004913/0.101, allocations: 195.3 kB / 393.3 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008007/0.1018, allocations: 287.3 kB / 393.6 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004079/0.1023, allocations: 355.1 kB / 393.9 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.1024, allocations: 48.28 kB / 394 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.1026, allocations: 139.5 kB / 394.1 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.1028, allocations: 143.4 kB / 394.2 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.095e-05/0.1029, allocations: 20 kB / 394.3 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000228/0.1031, allocations: 91.95 kB / 394.4 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.1033, allocations: 87.67 kB / 394.4 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.1034, allocations: 115.3 kB / 394.5 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004389/0.1039, allocations: 343.2 kB / 394.9 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1039, allocations: 4 kB / 394.9 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1039, allocations: 0 / 394.9 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.1039, allocations: 0 / 394.9 MB, free: 0.8828 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;