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.001975/0.001975, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.502/1.502, allocations: 177.2 MB / 200.1 MB, free: 9.273 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.00227/0.00227, allocations: 165.4 kB / 256.6 MB, free: 0.7539 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.3331/0.3331, allocations: 59.78 MB / 372.8 MB, free: 13.14 MB / 350.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.002984/0.002984, allocations: 89.48 kB / 0.5224 GB, free: 56.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1481, allocations: 73.28 MB / 0.5939 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.006557/0.1547, allocations: 3.932 MB / 0.5978 GB, free: 6.254 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003169/0.1578, allocations: 1.216 MB / 0.5989 GB, free: 5.035 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004493/0.1583, allocations: 8 kB / 0.599 GB, free: 5.027 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004831/0.1588, allocations: 138.8 kB / 0.5991 GB, free: 4.891 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007535/0.1595, allocations: 274 kB / 0.5993 GB, free: 4.621 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001482/0.161, allocations: 0.5168 MB / 0.5998 GB, free: 4.105 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001144/0.1621, allocations: 0.8018 MB / 0.6006 GB, free: 3.301 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000346/0.1625, allocations: 138.3 kB / 0.6008 GB, free: 3.152 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004245/0.1629, allocations: 338.5 kB / 0.6011 GB, free: 2.82 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005942/0.1635, allocations: 374 kB / 0.6014 GB, free: 2.453 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.1636, allocations: 64 kB / 0.6015 GB, free: 2.391 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003879/0.164, allocations: 135.9 kB / 0.6016 GB, free: 2.258 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.1642, allocations: 163.3 kB / 0.6018 GB, free: 2.098 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.1645, allocations: 318.3 kB / 0.6021 GB, free: 1.785 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001176/0.1657, allocations: 0.9296 MB / 0.603 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1657, allocations: 0 / 0.603 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1657, allocations: 0 / 0.603 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.595e-05/0.1657, allocations: 0 / 0.603 GB, free: 0.8516 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.005004/0.1707, allocations: 1.618 MB / 0.6046 GB, free: 15.19 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.1708, allocations: 11.98 kB / 0.6046 GB, free: 15.18 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002805/0.1736, allocations: 423.6 kB / 0.605 GB, free: 14.77 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008501/0.1744, allocations: 451.4 kB / 0.6054 GB, free: 14.3 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003326/0.1748, allocations: 274.9 kB / 0.6057 GB, free: 13.98 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.1749, allocations: 59.94 kB / 0.6057 GB, free: 13.92 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.1765, allocations: 0.6896 MB / 0.6064 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.1765, allocations: 0 / 0.6064 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.1766, allocations: 20 kB / 0.6064 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.1766, allocations: 19.94 kB / 0.6065 GB, free: 13.19 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.1781, allocations: 0.6688 MB / 0.6071 GB, free: 12.52 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003978/0.1821, allocations: 1.71 MB / 0.6088 GB, free: 10.77 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008312/0.1904, allocations: 1.748 MB / 0.6105 GB, free: 9.02 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/0.1916, allocations: 427.1 kB / 0.6109 GB, free: 8.602 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001068/0.1918, allocations: 12.66 kB / 0.6109 GB, free: 8.586 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0015/0.1933, allocations: 0.5197 MB / 0.6114 GB, free: 8.055 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 4.268e-06/0.1933, allocations: 0 / 0.6114 GB, free: 8.055 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.008027/0.2013, allocations: 2.218 MB / 0.6136 GB, free: 5.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.2013, allocations: 60.06 kB / 0.6136 GB, free: 5.75 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008398/0.2022, allocations: 0.5148 MB / 0.6141 GB, free: 5.223 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.849e-05/0.2023, allocations: 45.69 kB / 0.6142 GB, free: 5.172 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.2026, allocations: 325.1 kB / 0.6145 GB, free: 4.852 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003167/0.2029, allocations: 261.7 kB / 0.6147 GB, free: 4.594 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.2032, allocations: 122.7 kB / 0.6149 GB, free: 4.469 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.2034, allocations: 378.8 kB / 0.6152 GB, free: 4.09 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009842/0.2044, allocations: 409.8 kB / 0.6156 GB, free: 3.691 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.2055, allocations: 0.4946 MB / 0.6161 GB, free: 3.164 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/0.2155, allocations: 2.506 MB / 0.6185 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.2155, allocations: 3.938 kB / 0.6185 GB, free: 0.625 MB / 478.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.008161/0.2237, allocations: 2.204 MB / 0.6207 GB, free: 14.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.2237, allocations: 11.94 kB / 0.6207 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.2237, allocations: 0 / 0.6207 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004401/0.2281, allocations: 1.001 MB / 0.6217 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006393/0.2288, allocations: 107.8 kB / 0.6218 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.2396, allocations: 4.288 MB / 0.626 GB, free: 8.902 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009323/0.2406, allocations: 91.52 kB / 0.6261 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.2407, allocations: 32 kB / 0.6261 GB, free: 8.781 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.0005153/0.2412, allocations: 205.6 kB / 0.6263 GB, free: 8.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/0.2414, allocations: 75.53 kB / 0.6264 GB, free: 8.496 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005361/0.2468, allocations: 1.67 MB / 0.628 GB, free: 6.805 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.2468, allocations: 8 kB / 0.628 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.2468, allocations: 0 / 0.628 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.2468, allocations: 3.984 kB / 0.628 GB, free: 6.793 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005133/0.252, allocations: 2.061 MB / 0.63 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.252, allocations: 4 kB / 0.63 GB, free: 4.684 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004561/0.2524, allocations: 71.89 kB / 0.6301 GB, free: 4.613 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.00458/0.257, allocations: 1.057 MB / 0.6311 GB, free: 3.547 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.2571, allocations: 16.17 kB / 0.6311 GB, free: 3.531 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006153/0.2577, allocations: 104.8 kB / 0.6312 GB, free: 3.426 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.2577, allocations: 7.875 kB / 0.6312 GB, free: 3.418 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005129/0.2629, allocations: 1.993 MB / 0.6332 GB, free: 1.398 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.2631, allocations: 75.44 kB / 0.6333 GB, free: 1.324 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.2633, allocations: 16 kB / 0.6333 GB, free: 1.309 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007363/0.264, allocations: 59.88 kB / 0.6333 GB, free: 1.25 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003888/0.2644, allocations: 132.4 kB / 0.6335 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.643e-05/0.2645, allocations: 16 kB / 0.6335 GB, free: 1.105 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0005499/0.265, allocations: 358.8 kB / 0.6338 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.265, allocations: 0 / 0.6338 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008884/0.2659, allocations: 235.8 kB / 0.634 GB, free: 0.5273 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.0002635/0.2662, allocations: 119.2 kB / 0.6342 GB, free: 412 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00442/0.2706, allocations: 1.386 MB / 0.6355 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2706, allocations: 0 / 0.6355 GB, free: 14.99 MB / 0.4981 GB [/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3579:9-3579: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1582:5-1582:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:836:5-836: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.468816851032898] Failed to read output from testmodel.py, exit status != 0: 0.2811935830395669 0.29836337300000004 0.129201163 Calling exit ...