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.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.00184/0.00184, allocations: 113 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.515/1.515, allocations: 230.6 MB / 252.6 MB, free: 8.324 MB / 206.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.001713/0.001713, allocations: 228.1 kB / 309.2 MB, free: 3.168 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.4665/0.4665, allocations: 79.73 MB / 445.4 MB, free: 14.86 MB / 318.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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) 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: OpenIPSL requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Modelica of version 4.0.0. Modelica 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.002641/0.002641, allocations: 86.22 kB / 0.5934 GB, free: 13.52 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1533, allocations: 73.29 MB / 0.665 GB, free: 4.121 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005751/0.159, allocations: 4.411 MB / 0.6693 GB, free: 15.69 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.162, allocations: 1.294 MB / 0.6705 GB, free: 14.39 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/0.1622, allocations: 8 kB / 0.6705 GB, free: 14.38 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004308/0.1627, allocations: 150.8 kB / 0.6707 GB, free: 14.23 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005818/0.1632, allocations: 266 kB / 0.6709 GB, free: 13.97 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.1646, allocations: 0.5314 MB / 0.6715 GB, free: 13.45 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008807/0.1654, allocations: 0.8017 MB / 0.6722 GB, free: 12.64 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002797/0.1657, allocations: 154.2 kB / 0.6724 GB, free: 12.48 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003581/0.1661, allocations: 342.5 kB / 0.6727 GB, free: 12.14 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005569/0.1666, allocations: 418.1 kB / 0.6731 GB, free: 11.73 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.1667, allocations: 64 kB / 0.6732 GB, free: 11.67 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003213/0.1671, allocations: 132 kB / 0.6733 GB, free: 11.54 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.1672, allocations: 171.2 kB / 0.6735 GB, free: 11.37 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003702/0.1676, allocations: 393.7 kB / 0.6738 GB, free: 10.98 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.1686, allocations: 0.9102 MB / 0.6747 GB, free: 10.07 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1686, allocations: 0 / 0.6747 GB, free: 10.07 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1686, allocations: 3.938 kB / 0.6747 GB, free: 10.07 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.1686, allocations: 0 / 0.6747 GB, free: 10.07 MB / 478.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.004575/0.1732, allocations: 1.618 MB / 0.6763 GB, free: 8.406 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.1733, allocations: 15.98 kB / 0.6763 GB, free: 8.391 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002699/0.176, allocations: 431.6 kB / 0.6767 GB, free: 7.969 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007259/0.1767, allocations: 439.5 kB / 0.6772 GB, free: 7.516 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002973/0.177, allocations: 274.9 kB / 0.6774 GB, free: 7.195 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.1771, allocations: 56 kB / 0.6775 GB, free: 7.141 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.1786, allocations: 0.6936 MB / 0.6781 GB, free: 6.441 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.1786, allocations: 0 / 0.6781 GB, free: 6.441 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.892e-05/0.1787, allocations: 27.88 kB / 0.6782 GB, free: 6.414 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.1787, allocations: 15.94 kB / 0.6782 GB, free: 6.398 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.1802, allocations: 0.6727 MB / 0.6788 GB, free: 5.727 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004063/0.1843, allocations: 2.102 MB / 0.6809 GB, free: 3.551 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007897/0.1922, allocations: 1.751 MB / 0.6826 GB, free: 1.793 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.1932, allocations: 435.1 kB / 0.683 GB, free: 1.367 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.31e-05/0.1933, allocations: 12.64 kB / 0.683 GB, free: 1.352 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.1946, allocations: 0.5196 MB / 0.6835 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 2.685e-06/0.1946, allocations: 0 / 0.6835 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.007502/0.2021, allocations: 2.214 MB / 0.6857 GB, free: 14.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.2021, allocations: 60.06 kB / 0.6858 GB, free: 14.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000674/0.2028, allocations: 0.5109 MB / 0.6863 GB, free: 14 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.715e-05/0.2029, allocations: 41.7 kB / 0.6863 GB, free: 13.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.2031, allocations: 337 kB / 0.6866 GB, free: 13.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002555/0.2034, allocations: 253.8 kB / 0.6869 GB, free: 13.37 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002372/0.2036, allocations: 122.6 kB / 0.687 GB, free: 13.24 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.2038, allocations: 382.8 kB / 0.6873 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009296/0.2048, allocations: 405.8 kB / 0.6877 GB, free: 12.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.2058, allocations: 0.4907 MB / 0.6882 GB, free: 11.95 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009366/0.2151, allocations: 2.514 MB / 0.6907 GB, free: 9.402 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.371e-06/0.2152, allocations: 0 / 0.6907 GB, free: 9.402 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00744/0.2226, allocations: 2.208 MB / 0.6928 GB, free: 7.172 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.2226, allocations: 4 kB / 0.6928 GB, free: 7.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.2226, allocations: 4 kB / 0.6928 GB, free: 7.164 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004147/0.2268, allocations: 0.9975 MB / 0.6938 GB, free: 6.156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005826/0.2274, allocations: 115.8 kB / 0.6939 GB, free: 6.043 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.2374, allocations: 4.402 MB / 0.6982 GB, free: 1.539 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000855/0.2383, allocations: 99.55 kB / 0.6983 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.039e-05/0.2383, allocations: 31.88 kB / 0.6983 GB, free: 1.41 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.0003863/0.2387, allocations: 198.3 kB / 0.6985 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.2388, allocations: 75.53 kB / 0.6986 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2963/0.5351, allocations: 1.673 MB / 0.7002 GB, free: 35.89 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.5351, allocations: 7.031 kB / 0.7002 GB, free: 35.89 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.5351, allocations: 5.219 kB / 0.7002 GB, free: 35.89 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.76e-05/0.5351, allocations: 3 kB / 0.7002 GB, free: 35.89 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004733/0.5399, allocations: 2.383 MB / 0.7026 GB, free: 35.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.5399, allocations: 0 / 0.7026 GB, free: 35.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003968/0.5403, allocations: 75.14 kB / 0.7026 GB, free: 35.48 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.004069/0.5443, allocations: 1.066 MB / 0.7037 GB, free: 35.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.096e-05/0.5444, allocations: 14.12 kB / 0.7037 GB, free: 35.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005462/0.545, allocations: 103.6 kB / 0.7038 GB, free: 35.45 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.545, allocations: 0 / 0.7038 GB, free: 35.45 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004323/0.5493, allocations: 2 MB / 0.7058 GB, free: 35.28 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.5494, allocations: 80.09 kB / 0.7058 GB, free: 35.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.5495, allocations: 16.19 kB / 0.7058 GB, free: 35.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006209/0.5502, allocations: 61.05 kB / 0.7059 GB, free: 35.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003122/0.5505, allocations: 124.8 kB / 0.706 GB, free: 35.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.325e-05/0.5505, allocations: 19.11 kB / 0.706 GB, free: 35.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004297/0.551, allocations: 359.1 kB / 0.7064 GB, free: 35.18 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.551, allocations: 0.5469 kB / 0.7064 GB, free: 35.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007625/0.5517, allocations: 235.4 kB / 0.7066 GB, free: 35.17 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.0001792/0.5519, allocations: 120.3 kB / 0.7067 GB, free: 35.08 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003926/0.5558, allocations: 1.382 MB / 0.7081 GB, free: 34.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.5558, allocations: 0 / 0.7081 GB, free: 34.9 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:3565:9-3565: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:1568:5-1568:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822: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.772677722154185] Failed to read output from testmodel.py, exit status != 0: 0.5652528249192983 0.577980284 0.406650581 Calling exit ...