Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.PI_ContinuousVsDigital.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.Applications.ControlProblems.PI_ContinuousVsDigital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.PI_ContinuousVsDigital") translateModel(IndustrialControlSystems.Applications.ControlProblems.PI_ContinuousVsDigital,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ControlProblems.PI_ContinuousVsDigital") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001085, allocations: 119.8 kB / 16.42 MB, free: 6.496 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.001096/0.001096, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.351/1.351, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05946/0.05946, allocations: 10.73 MB / 281.3 MB, free: 1.312 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.001471/0.001471, allocations: 70 kB / 391.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07886/0.08034, allocations: 49.03 MB / 440.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ControlProblems.PI_ContinuousVsDigital): time 0.003066/0.08345, allocations: 2.618 MB / 443.2 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.08466, allocations: 0.7956 MB / 444 MB, free: 396 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002016/0.08488, allocations: 23.81 kB / 444 MB, free: 372 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002035/0.08509, allocations: 83.12 kB / 444.1 MB, free: 288 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002079/0.08532, allocations: 59.36 kB / 444.1 MB, free: 228 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006437/0.08597, allocations: 383.3 kB / 444.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007474/0.08673, allocations: 0.7936 MB / 445.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.08695, allocations: 126.7 kB / 445.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003016/0.08726, allocations: 295 kB / 445.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000334/0.0876, allocations: 282.7 kB / 446 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.567e-05/0.0877, allocations: 52 kB / 446 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.08786, allocations: 87.97 kB / 446.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.08803, allocations: 167.4 kB / 446.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002402/0.08827, allocations: 290.3 kB / 446.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005534/0.08884, allocations: 0.5993 MB / 447.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.08885, allocations: 0 / 447.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.08886, allocations: 0 / 447.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.08887, allocations: 0 / 447.2 MB, free: 13.16 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001556/0.09043, allocations: 1.006 MB / 448.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.09048, allocations: 8.031 kB / 448.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.09062, allocations: 76.09 kB / 448.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006845/0.09131, allocations: 0.4897 MB / 448.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.778e-05/0.09139, allocations: 67.27 kB / 448.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.09151, allocations: 60.36 kB / 448.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.09254, allocations: 0.6096 MB / 449.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.09258, allocations: 15.84 kB / 449.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.534e-05/0.09264, allocations: 23.94 kB / 449.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.09266, allocations: 12 kB / 449.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008854/0.09355, allocations: 435.7 kB / 449.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/0.0963, allocations: 1.755 MB / 451.7 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009097/0.09723, allocations: 442.9 kB / 452.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00046/0.0977, allocations: 309.6 kB / 452.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.09774, allocations: 7.984 kB / 452.4 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005495/0.0983, allocations: 327.5 kB / 452.8 MB, free: 7.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=51): time 2.224e-06/0.09831, allocations: 0 / 452.8 MB, free: 7.32 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) R_disc.cs R_disc.Iaction R_disc.satDiff R_disc.satin when $whenCondition2 then R_disc.satin := R_disc.Iaction + R_disc.Paction + R_disc.Daction; end when; when $whenCondition2 then R_disc.satDiff := R_disc.cs - R_disc.satin; end when; when $whenCondition2 then R_disc.Iaction := IndustrialControlSystems.LinearSystems.Discrete.Functions.fIntegrator(1.0, 2.0 * (R_disc.SP - R_disc.PV) + 0.01 * R_disc.satDiff, 2.0 * (pre(R_disc.SP) - pre(R_disc.PV)) + 0.01 * pre(R_disc.satDiff), pre(R_disc.Iaction), 0.01, 1.0); end when; when $whenCondition2 then R_disc.cs := max(0.0, min(2.0, R_disc.satin)); end when; [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: R_disc.cs R_disc.Iaction R_disc.satDiff R_disc.satin equations: when $whenCondition2 then R_disc.satin := R_disc.Iaction + R_disc.Paction + R_disc.Daction; end when; when $whenCondition2 then R_disc.satDiff := R_disc.cs - R_disc.satin; end when; when $whenCondition2 then R_disc.Iaction := IndustrialControlSystems.LinearSystems.Discrete.Functions.fIntegrator(1.0, 2.0 * (R_disc.SP - R_disc.PV) + 0.01 * R_disc.satDiff, 2.0 * (pre(R_disc.SP) - pre(R_disc.PV)) + 0.01 * pre(R_disc.satDiff), pre(R_disc.Iaction), 0.01, 1.0); end when; when $whenCondition2 then R_disc.cs := max(0.0, min(2.0, R_disc.satin)); end when; [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8011:5-8011:89:writable] Error: Internal error Transformation module sort components failed Error: Internal error SimCode DAEmode: The model IndustrialControlSystems.Applications.ControlProblems.PI_ContinuousVsDigital could not be translated