Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.08967/0.08967, allocations: 12.36 MB / 31.22 MB, free: 6.41 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 113 kB / 37.25 MB, free: 1.102 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.509/1.509, allocations: 207.7 MB / 250.9 MB, free: 7.289 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 220.2 kB / 306.1 MB, free: 292 kB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3353/0.3353, allocations: 79.73 MB / 440.9 MB, free: 12.27 MB / 318.1 MB " [Timeout remaining time 179] Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/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 ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") [Timeout 660] "Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.004325/0.004325, allocations: 147.8 kB / 0.588 GB, free: 8.867 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1374, allocations: 71.95 MB / 0.6582 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2641/0.4014, allocations: 3.965 MB / 0.6621 GB, free: 9.246 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.404, allocations: 1.154 MB / 0.6632 GB, free: 8.77 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004444/0.4044, allocations: 5.094 kB / 0.6632 GB, free: 8.77 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000432/0.4049, allocations: 141.1 kB / 0.6634 GB, free: 8.703 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006139/0.4055, allocations: 269.1 kB / 0.6636 GB, free: 8.555 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.4068, allocations: 0.515 MB / 0.6641 GB, free: 8.43 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008807/0.4076, allocations: 0.8034 MB / 0.6649 GB, free: 8.023 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.4079, allocations: 138.2 kB / 0.665 GB, free: 7.941 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003237/0.4082, allocations: 342.1 kB / 0.6654 GB, free: 7.773 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004201/0.4086, allocations: 371.1 kB / 0.6657 GB, free: 7.605 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.888e-05/0.4087, allocations: 62.56 kB / 0.6658 GB, free: 7.605 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003364/0.4091, allocations: 130.5 kB / 0.6659 GB, free: 7.582 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.4092, allocations: 172.2 kB / 0.6661 GB, free: 7.469 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.4095, allocations: 312 kB / 0.6664 GB, free: 7.289 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008714/0.4103, allocations: 0.9356 MB / 0.6673 GB, free: 6.867 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4103, allocations: 0 / 0.6673 GB, free: 6.867 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4103, allocations: 0 / 0.6673 GB, free: 6.867 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.4103, allocations: 0 / 0.6673 GB, free: 6.867 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.0045/0.4148, allocations: 1.608 MB / 0.6689 GB, free: 6.066 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.4149, allocations: 9.969 kB / 0.6689 GB, free: 6.066 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002732/0.4176, allocations: 432.6 kB / 0.6693 GB, free: 5.973 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007904/0.4184, allocations: 453.2 kB / 0.6697 GB, free: 5.637 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002382/0.4187, allocations: 275.5 kB / 0.67 GB, free: 5.363 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.4188, allocations: 57.28 kB / 0.67 GB, free: 5.344 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001459/0.4202, allocations: 0.6957 MB / 0.6707 GB, free: 5.074 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.4202, allocations: 0 / 0.6707 GB, free: 5.074 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-05/0.4203, allocations: 26.98 kB / 0.6707 GB, free: 5.055 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.4203, allocations: 22.22 kB / 0.6707 GB, free: 5.047 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.4217, allocations: 0.6617 MB / 0.6714 GB, free: 4.832 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004116/0.4258, allocations: 1.691 MB / 0.673 GB, free: 3.914 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007687/0.4335, allocations: 1.742 MB / 0.6747 GB, free: 3.562 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.4345, allocations: 443 kB / 0.6752 GB, free: 3.398 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-05/0.4346, allocations: 11.17 kB / 0.6752 GB, free: 3.398 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001133/0.4357, allocations: 0.5238 MB / 0.6757 GB, free: 3.188 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.526e-06/0.4357, allocations: 0 / 0.6757 GB, free: 3.188 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007067/0.4428, allocations: 2.21 MB / 0.6778 GB, free: 2.551 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.4428, allocations: 64.08 kB / 0.6779 GB, free: 2.484 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006382/0.4435, allocations: 0.5144 MB / 0.6784 GB, free: 2.246 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.121e-05/0.4435, allocations: 42.94 kB / 0.6785 GB, free: 2.203 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.4437, allocations: 327.5 kB / 0.6788 GB, free: 1.941 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/0.4439, allocations: 261.5 kB / 0.679 GB, free: 1.734 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002072/0.4441, allocations: 121.5 kB / 0.6791 GB, free: 1.668 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.45e-05/0.4442, allocations: 382.9 kB / 0.6795 GB, free: 1.324 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000846/0.4451, allocations: 409.8 kB / 0.6799 GB, free: 1.176 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000882/0.446, allocations: 0.4897 MB / 0.6804 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009632/0.4556, allocations: 2.513 MB / 0.6828 GB, free: 184 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.4556, allocations: 0.625 kB / 0.6828 GB, free: 184 kB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007718/0.4633, allocations: 2.203 MB / 0.685 GB, free: 15.58 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.4634, allocations: 10.05 kB / 0.685 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.4634, allocations: 2.75 kB / 0.685 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004193/0.4676, allocations: 0.9949 MB / 0.686 GB, free: 15.13 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005976/0.4682, allocations: 113.9 kB / 0.6861 GB, free: 15.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.4783, allocations: 4.28 MB / 0.6902 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009709/0.4793, allocations: 102.4 kB / 0.6903 GB, free: 12.13 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.199e-05/0.4793, allocations: 26.64 kB / 0.6904 GB, free: 12.12 MB / 478.1 MB Warning: Assuming fixed start value for the following 2 variables: load.xp:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xq:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.ultc.zeroCrossing.enable,$PRE.ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.enable,ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.zeroCrossing.y,ultc.m,$PRE.ultc.m,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004412/0.4798, allocations: 211.8 kB / 0.6906 GB, free: 11.94 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.4799, allocations: 75.88 kB / 0.6906 GB, free: 11.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004998/0.4849, allocations: 1.673 MB / 0.6923 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.4849, allocations: 11.19 kB / 0.6923 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.4849, allocations: 5.203 kB / 0.6923 GB, free: 10.99 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.485, allocations: 0 / 0.6923 GB, free: 10.99 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004822/0.4898, allocations: 2.052 MB / 0.6943 GB, free: 9.734 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.4898, allocations: 5.672 kB / 0.6943 GB, free: 9.734 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003955/0.4902, allocations: 73.45 kB / 0.6944 GB, free: 9.715 MB / 478.1 MB Warning: The tearing heuristic was not able to avoid discrete iteration variables because otherwise the system could not have been torn. This may lead to problems during simulation. Notification: Performance of postOpt tearingSystem (simulation): time 0.004428/0.4946, allocations: 1.069 MB / 0.6954 GB, free: 9.215 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/0.4947, allocations: 11.41 kB / 0.6954 GB, free: 9.207 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005986/0.4953, allocations: 101.5 kB / 0.6955 GB, free: 9.16 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4953, allocations: 0 / 0.6955 GB, free: 9.16 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005043/0.5004, allocations: 1.998 MB / 0.6975 GB, free: 8.066 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002829/0.5007, allocations: 83.7 kB / 0.6976 GB, free: 8.004 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.5008, allocations: 12.09 kB / 0.6976 GB, free: 7.996 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006505/0.5015, allocations: 61.39 kB / 0.6976 GB, free: 7.965 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003189/0.5018, allocations: 125.5 kB / 0.6977 GB, free: 7.879 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.927e-05/0.5018, allocations: 20.89 kB / 0.6978 GB, free: 7.871 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004525/0.5023, allocations: 358.8 kB / 0.6981 GB, free: 7.66 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5023, allocations: 0 / 0.6981 GB, free: 7.66 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008077/0.5031, allocations: 232.7 kB / 0.6983 GB, free: 7.625 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (ultc.x1,load.xp,load.xq) * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,ultc.m,ultc.zeroCrossing.y,ultc.zeroCrossing.disable,ultc.zeroCrossing.u_pos) * Number of discrete states: 3 (ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.m) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002208/0.5033, allocations: 119.6 kB / 0.6984 GB, free: 7.52 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004216/0.5075, allocations: 1.383 MB / 0.6998 GB, free: 6.785 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5075, allocations: 0 / 0.6998 GB, free: 6.785 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/Electrical/Branches/Generic/ULTC.mo:57:5-57:24:writable] Error: The language feature non-linear equations within when-equations is not supported. Suggested workaround: Perform non-linear operations outside the when-equation (this is slower, but works) Error: Internal error function createNonlinearResidualEquations failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3566:9-3566:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {27:8}, {26:7}, {24:3}, {30:5}, {21:66}, {20:33}, {14:29}, {15:67}, {9:20}, {5:21}}, {8, 6, 7, 13, 22, 31, 25, 29, 28, 12, 10, 11, 18, 19, 17, 16:35, 53, 11, 52, 10, 47, 46, 30, 12, 13, 40, 41, 43, 42, 45, 44} Size: 16 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1569:5-1569:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.5755382273346186] Failed to read output from testmodel.py, exit status != 0: 0.5176411122083664 0.53259042 0.118980024 Calling exit ...