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.002517/0.002517, allocations: 108 kB / 15.61 MB, free: 152 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.002771/0.002771, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.489/2.489, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09378/0.09378, allocations: 10.73 MB / 280.5 MB, free: 10.49 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.002292/0.002292, allocations: 71.89 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1308, allocations: 49.01 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On_Redge): time 0.00606/0.137, allocations: 2 MB / 391.7 MB, free: 4.129 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00301/0.14, allocations: 1.197 MB / 392.9 MB, free: 2.922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003082/0.1403, allocations: 3.938 kB / 392.9 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001281/0.1417, allocations: 303.2 kB / 393.2 MB, free: 2.621 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.0007309/0.1424, allocations: 207.2 kB / 393.4 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.1436, allocations: 299.3 kB / 393.7 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000675/0.1443, allocations: 363.1 kB / 394 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.1445, allocations: 48.62 kB / 394.1 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003446/0.1449, allocations: 147.4 kB / 394.2 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003284/0.1452, allocations: 151.4 kB / 394.4 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.208e-05/0.1453, allocations: 24 kB / 394.4 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003856/0.1457, allocations: 123.8 kB / 394.5 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001741/0.1459, allocations: 83.75 kB / 394.6 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.1461, allocations: 135.1 kB / 394.7 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008291/0.147, allocations: 391 kB / 395.1 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.147, allocations: 0 / 395.1 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.147, allocations: 0 / 395.1 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.147, allocations: 0 / 395.1 MB, free: 0.6875 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_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;