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.001294/0.001294, allocations: 107.6 kB / 16.45 MB, free: 6.453 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.475/1.475, allocations: 230.6 MB / 249.8 MB, free: 9.254 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.001538/0.001538, allocations: 213.6 kB / 306 MB, free: 4.301 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.4889/0.4889, allocations: 79.72 MB / 441.8 MB, free: 168 kB / 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.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: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) [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.002355/0.002355, allocations: 83.88 kB / 0.5878 GB, free: 1.613 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1558, allocations: 73.26 MB / 0.6593 GB, free: 8.262 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005636/0.1615, allocations: 4.402 MB / 0.6636 GB, free: 3.832 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002894/0.1644, allocations: 1.282 MB / 0.6649 GB, free: 2.547 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002996/0.1647, allocations: 8 kB / 0.6649 GB, free: 2.539 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004545/0.1651, allocations: 142.8 kB / 0.665 GB, free: 2.398 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006201/0.1658, allocations: 270 kB / 0.6653 GB, free: 2.133 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.1671, allocations: 0.5271 MB / 0.6658 GB, free: 1.609 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009507/0.168, allocations: 0.8095 MB / 0.6666 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.1683, allocations: 141.7 kB / 0.6667 GB, free: 0.6445 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000346/0.1687, allocations: 338.6 kB / 0.667 GB, free: 320 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005288/0.1692, allocations: 418 kB / 0.6674 GB, free: 15.9 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.295e-05/0.1693, allocations: 64 kB / 0.6675 GB, free: 15.84 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003282/0.1696, allocations: 139.8 kB / 0.6676 GB, free: 15.7 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.1698, allocations: 163.3 kB / 0.6678 GB, free: 15.54 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003728/0.1702, allocations: 389.7 kB / 0.6682 GB, free: 15.16 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.1713, allocations: 0.9218 MB / 0.6691 GB, free: 14.23 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.1713, allocations: 4 kB / 0.6691 GB, free: 14.23 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1713, allocations: 0 / 0.6691 GB, free: 14.23 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.1713, allocations: 0 / 0.6691 GB, free: 14.23 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.004796/0.1761, allocations: 1.586 MB / 0.6706 GB, free: 12.59 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.1761, allocations: 16.03 kB / 0.6706 GB, free: 12.58 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.1763, allocations: 94.7 kB / 0.6707 GB, free: 12.48 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002653/0.1789, allocations: 431.4 kB / 0.6711 GB, free: 12.05 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007296/0.1797, allocations: 0.5025 MB / 0.6716 GB, free: 11.51 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002602/0.1799, allocations: 197.8 kB / 0.6718 GB, free: 11.28 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.18, allocations: 52 kB / 0.6719 GB, free: 11.23 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.1815, allocations: 0.6936 MB / 0.6725 GB, free: 10.54 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.1815, allocations: 4 kB / 0.6725 GB, free: 10.53 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.318e-05/0.1816, allocations: 20 kB / 0.6726 GB, free: 10.51 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.1816, allocations: 15.94 kB / 0.6726 GB, free: 10.5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.1832, allocations: 0.6727 MB / 0.6732 GB, free: 9.82 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004039/0.1872, allocations: 2.137 MB / 0.6753 GB, free: 7.602 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008296/0.1955, allocations: 2.22 MB / 0.6775 GB, free: 5.262 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.1966, allocations: 435.1 kB / 0.6779 GB, free: 4.832 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.372e-05/0.1967, allocations: 8.656 kB / 0.6779 GB, free: 4.824 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001252/0.1979, allocations: 0.5235 MB / 0.6784 GB, free: 4.289 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 3.266e-06/0.198, allocations: 0 / 0.6784 GB, free: 4.289 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.00795/0.2059, allocations: 2.436 MB / 0.6808 GB, free: 1.785 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.206, allocations: 60.06 kB / 0.6809 GB, free: 1.711 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007297/0.2067, allocations: 0.507 MB / 0.6814 GB, free: 1.191 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.967e-05/0.2068, allocations: 45.69 kB / 0.6814 GB, free: 1.141 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.2071, allocations: 329.1 kB / 0.6817 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002836/0.2073, allocations: 261.7 kB / 0.682 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/0.2076, allocations: 126.6 kB / 0.6821 GB, free: 440 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.2078, allocations: 378.8 kB / 0.6824 GB, free: 52 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009601/0.2088, allocations: 405.8 kB / 0.6828 GB, free: 15.65 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.2098, allocations: 0.4984 MB / 0.6833 GB, free: 15.12 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009628/0.2194, allocations: 2.51 MB / 0.6858 GB, free: 12.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.2194, allocations: 3.938 kB / 0.6858 GB, free: 12.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007696/0.2271, allocations: 2.201 MB / 0.6879 GB, free: 10.37 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.2271, allocations: 4 kB / 0.6879 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.2272, allocations: 4 kB / 0.6879 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004348/0.2315, allocations: 0.9976 MB / 0.6889 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006054/0.2321, allocations: 107.8 kB / 0.689 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.2425, allocations: 4.511 MB / 0.6934 GB, free: 4.598 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009083/0.2434, allocations: 111.5 kB / 0.6935 GB, free: 4.488 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.994e-05/0.2434, allocations: 20 kB / 0.6935 GB, free: 4.469 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.000403/0.2438, allocations: 202.2 kB / 0.6937 GB, free: 4.266 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.244, allocations: 83.45 kB / 0.6938 GB, free: 4.184 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00508/0.2491, allocations: 1.682 MB / 0.6955 GB, free: 2.48 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.2491, allocations: 8 kB / 0.6955 GB, free: 2.473 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.2491, allocations: 3.938 kB / 0.6955 GB, free: 2.469 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.2491, allocations: 7.922 kB / 0.6955 GB, free: 2.461 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3135/0.5626, allocations: 2.404 MB / 0.6978 GB, free: 37.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/0.5626, allocations: 0 / 0.6978 GB, free: 37.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004941/0.5631, allocations: 71.72 kB / 0.6979 GB, free: 37.34 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.004466/0.5676, allocations: 1.068 MB / 0.6989 GB, free: 37.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.5677, allocations: 16.09 kB / 0.6989 GB, free: 37.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000579/0.5683, allocations: 104.5 kB / 0.699 GB, free: 37.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5683, allocations: 0 / 0.699 GB, free: 37.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004729/0.573, allocations: 1.991 MB / 0.701 GB, free: 37.15 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.5732, allocations: 159.6 kB / 0.7011 GB, free: 37.06 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.5733, allocations: 17.72 kB / 0.7012 GB, free: 37.06 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006324/0.574, allocations: 53.89 kB / 0.7012 GB, free: 37.06 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003704/0.5743, allocations: 123.1 kB / 0.7013 GB, free: 37.06 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.086e-05/0.5744, allocations: 20.22 kB / 0.7013 GB, free: 37.06 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004572/0.5748, allocations: 357.8 kB / 0.7017 GB, free: 36.97 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5748, allocations: 0 / 0.7017 GB, free: 36.97 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008648/0.5757, allocations: 231.2 kB / 0.7019 GB, free: 36.97 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.005149/0.5809, allocations: 2.558 MB / 0.7044 GB, free: 36.23 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004391/0.5852, allocations: 1.533 MB / 0.7059 GB, free: 35.87 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.5853, allocations: 0 / 0.7059 GB, free: 35.87 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3537:9-3537: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:1564:5-1564:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/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 659] [Calling sys.exit(0), Time elapsed: 3.7854361739882734] Failed to read output from testmodel.py, exit status != 0: 0.592830405003042 0.6058483880000001 0.432007199 Calling exit ...