Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 105.6 kB / 16.45 MB, free: 6.512 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.6 MB / 244.8 MB, free: 14.33 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 187.5 kB / 299.8 MB, free: 9.863 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4439/0.4439, allocations: 79.73 MB / 434.4 MB, free: 6.301 MB / 302.1 MB " [Timeout remaining time 179] Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002346/0.002346, allocations: 83.88 kB / 0.5788 GB, free: 9.531 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1314, allocations: 72.09 MB / 0.6492 GB, free: 1.336 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005738/0.1372, allocations: 4.371 MB / 0.6535 GB, free: 12.93 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002697/0.1399, allocations: 1.251 MB / 0.6547 GB, free: 11.67 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002964/0.1402, allocations: 8 kB / 0.6547 GB, free: 11.66 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003895/0.1405, allocations: 146.8 kB / 0.6549 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006042/0.1412, allocations: 262 kB / 0.6551 GB, free: 11.26 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.1425, allocations: 0.5851 MB / 0.6557 GB, free: 10.68 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009437/0.1435, allocations: 0.8095 MB / 0.6565 GB, free: 9.867 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002795/0.1438, allocations: 137.8 kB / 0.6566 GB, free: 9.723 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003896/0.1442, allocations: 342.5 kB / 0.6569 GB, free: 9.387 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005536/0.1447, allocations: 410 kB / 0.6573 GB, free: 8.984 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.1448, allocations: 64 kB / 0.6574 GB, free: 8.922 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003102/0.1451, allocations: 136 kB / 0.6575 GB, free: 8.789 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.1453, allocations: 163.2 kB / 0.6577 GB, free: 8.629 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000366/0.1456, allocations: 401.6 kB / 0.6581 GB, free: 8.234 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.1467, allocations: 0.9141 MB / 0.659 GB, free: 7.316 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1467, allocations: 0 / 0.659 GB, free: 7.316 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1467, allocations: 0 / 0.659 GB, free: 7.316 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.1467, allocations: 0 / 0.659 GB, free: 7.316 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.004599/0.1513, allocations: 1.586 MB / 0.6605 GB, free: 5.68 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.1514, allocations: 8.031 kB / 0.6605 GB, free: 5.672 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002702/0.1541, allocations: 435.5 kB / 0.6609 GB, free: 5.246 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007533/0.1548, allocations: 0.5025 MB / 0.6614 GB, free: 4.703 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/0.1551, allocations: 197.8 kB / 0.6616 GB, free: 4.477 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.1552, allocations: 52 kB / 0.6617 GB, free: 4.426 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.1568, allocations: 0.6858 MB / 0.6623 GB, free: 3.734 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.1568, allocations: 0 / 0.6623 GB, free: 3.734 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.666e-05/0.1569, allocations: 31.92 kB / 0.6624 GB, free: 3.703 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.1569, allocations: 15.94 kB / 0.6624 GB, free: 3.688 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.1584, allocations: 0.6727 MB / 0.663 GB, free: 3.016 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004134/0.1626, allocations: 2.137 MB / 0.6651 GB, free: 0.793 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008155/0.1707, allocations: 2.189 MB / 0.6673 GB, free: 14.49 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00105/0.1718, allocations: 431.1 kB / 0.6677 GB, free: 14.07 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.089e-05/0.1719, allocations: 12.64 kB / 0.6677 GB, free: 14.05 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001262/0.1731, allocations: 0.5274 MB / 0.6682 GB, free: 13.51 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 2.806e-06/0.1731, allocations: 0 / 0.6682 GB, free: 13.51 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.0076/0.1807, allocations: 2.44 MB / 0.6706 GB, free: 11 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.1808, allocations: 60.06 kB / 0.6706 GB, free: 10.93 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000634/0.1814, allocations: 0.5109 MB / 0.6711 GB, free: 10.41 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.327e-05/0.1815, allocations: 49.64 kB / 0.6712 GB, free: 10.35 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002726/0.1818, allocations: 329.1 kB / 0.6715 GB, free: 10.03 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000251/0.182, allocations: 261.7 kB / 0.6717 GB, free: 9.77 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.1823, allocations: 118.7 kB / 0.6719 GB, free: 9.648 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.1825, allocations: 382.8 kB / 0.6722 GB, free: 9.266 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009761/0.1835, allocations: 405.8 kB / 0.6726 GB, free: 8.867 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.1845, allocations: 498.5 kB / 0.6731 GB, free: 8.355 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009282/0.1938, allocations: 2.522 MB / 0.6755 GB, free: 5.805 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1938, allocations: 0 / 0.6755 GB, free: 5.805 MB / 478.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007311/0.2011, allocations: 2.204 MB / 0.6777 GB, free: 3.586 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.2011, allocations: 8 kB / 0.6777 GB, free: 3.578 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.2011, allocations: 0 / 0.6777 GB, free: 3.578 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004071/0.2052, allocations: 0.9936 MB / 0.6787 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005184/0.2057, allocations: 115.8 kB / 0.6788 GB, free: 2.461 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009883/0.2156, allocations: 4.511 MB / 0.6832 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000756/0.2164, allocations: 99.61 kB / 0.6833 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.527e-05/0.2165, allocations: 31.94 kB / 0.6833 GB, free: 13.69 MB / 494.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.0003571/0.2168, allocations: 201.3 kB / 0.6835 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.2169, allocations: 75.53 kB / 0.6836 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004942/0.2219, allocations: 1.674 MB / 0.6852 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.2219, allocations: 11.98 kB / 0.6852 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2219, allocations: 0 / 0.6852 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.2219, allocations: 7.922 kB / 0.6852 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004843/0.2268, allocations: 2.427 MB / 0.6876 GB, free: 9.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2268, allocations: 0 / 0.6876 GB, free: 9.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004015/0.2272, allocations: 71.89 kB / 0.6877 GB, free: 9.109 MB / 494.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.004322/0.2315, allocations: 1.064 MB / 0.6887 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.65e-05/0.2315, allocations: 15.98 kB / 0.6887 GB, free: 8.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005705/0.2321, allocations: 100.8 kB / 0.6888 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2321, allocations: 0 / 0.6888 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00472/0.2368, allocations: 1.997 MB / 0.6908 GB, free: 5.891 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/0.237, allocations: 152.5 kB / 0.6909 GB, free: 5.723 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.2371, allocations: 19.94 kB / 0.6909 GB, free: 5.703 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006012/0.2377, allocations: 52.12 kB / 0.691 GB, free: 5.652 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003026/0.238, allocations: 120.5 kB / 0.6911 GB, free: 5.535 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.964e-05/0.2381, allocations: 23.92 kB / 0.6911 GB, free: 5.512 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004378/0.2385, allocations: 358.8 kB / 0.6915 GB, free: 5.164 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2385, allocations: 0 / 0.6915 GB, free: 5.164 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007559/0.2393, allocations: 235.8 kB / 0.6917 GB, free: 4.934 MB / 494.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.0002199/0.2395, allocations: 123.1 kB / 0.6918 GB, free: 4.805 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004153/0.2437, allocations: 1.529 MB / 0.6933 GB, free: 3.219 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.2437, allocations: 4 kB / 0.6933 GB, free: 3.215 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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:3536:9-3536: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:1563:5-1563:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:818:5-818:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 3.264481369405985]