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: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 117.8 kB / 16.42 MB, free: 6.48 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.001201/0.001201, allocations: 185.7 kB / 17.34 MB, free: 5.746 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.283/1.283, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05909/0.0591, allocations: 10.73 MB / 281.3 MB, free: 1.301 MB / 222.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.001439/0.001439, allocations: 69.02 kB / 391.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06361/0.06506, allocations: 49.03 MB / 440.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay): time 0.002484/0.06757, allocations: 1.986 MB / 442.5 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.0689, allocations: 1.178 MB / 443.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.06902, allocations: 0 / 443.7 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006234/0.06966, allocations: 279.2 kB / 444 MB, free: 376 kB / 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.0003594/0.07003, allocations: 191.3 kB / 444.2 MB, free: 184 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005941/0.07063, allocations: 290 kB / 444.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003528/0.071, allocations: 327.2 kB / 444.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.07113, allocations: 52.31 kB / 444.8 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.0713, allocations: 147.5 kB / 445 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.07147, allocations: 135.4 kB / 445.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.977e-05/0.07152, allocations: 20 kB / 445.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001935/0.07172, allocations: 103.9 kB / 445.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.459e-05/0.07182, allocations: 79.69 kB / 445.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.07194, allocations: 115.3 kB / 445.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004024/0.07235, allocations: 354.6 kB / 445.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.07236, allocations: 0 / 445.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.07237, allocations: 0 / 445.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.07238, allocations: 0 / 445.8 MB, free: 14.59 MB / 334.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; Error: Internal error SimCode DAEmode: The model IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay could not be translated