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.002097/0.002097, allocations: 103.1 kB / 16.45 MB, free: 6.504 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.564/1.564, allocations: 225.6 MB / 244.8 MB, free: 14.16 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.001622/0.001622, allocations: 194.9 kB / 299.8 MB, free: 9.852 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.4596/0.4596, allocations: 79.73 MB / 434.4 MB, free: 6.211 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: "" <> 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: Performance of FrontEnd - loaded program: time 0.002353/0.002353, allocations: 87.86 kB / 0.5784 GB, free: 10.01 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1476, allocations: 72.09 MB / 0.6487 GB, free: 1.828 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.006335/0.1539, allocations: 4.382 MB / 0.653 GB, free: 13.41 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003013/0.1569, allocations: 1.255 MB / 0.6543 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006095/0.1575, allocations: 7.938 kB / 0.6543 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006156/0.1581, allocations: 142.8 kB / 0.6544 GB, free: 12 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001017/0.1592, allocations: 266 kB / 0.6546 GB, free: 11.74 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001616/0.1608, allocations: 0.5814 MB / 0.6552 GB, free: 11.16 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.162, allocations: 0.8017 MB / 0.656 GB, free: 10.36 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.1623, allocations: 142 kB / 0.6561 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003519/0.1626, allocations: 334.5 kB / 0.6565 GB, free: 9.883 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005207/0.1631, allocations: 418 kB / 0.6569 GB, free: 9.473 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.622e-05/0.1632, allocations: 64 kB / 0.6569 GB, free: 9.41 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003183/0.1635, allocations: 135.9 kB / 0.657 GB, free: 9.277 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.1637, allocations: 163.3 kB / 0.6572 GB, free: 9.117 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00036/0.1641, allocations: 389.8 kB / 0.6576 GB, free: 8.734 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.1651, allocations: 0.914 MB / 0.6585 GB, free: 7.816 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1652, allocations: 0 / 0.6585 GB, free: 7.816 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1652, allocations: 0 / 0.6585 GB, free: 7.816 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.1652, allocations: 0 / 0.6585 GB, free: 7.816 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.004537/0.1697, allocations: 1.586 MB / 0.66 GB, free: 6.18 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.1698, allocations: 12.03 kB / 0.66 GB, free: 6.168 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.1699, allocations: 94.7 kB / 0.6601 GB, free: 6.066 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002591/0.1725, allocations: 439.3 kB / 0.6605 GB, free: 5.637 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007784/0.1732, allocations: 0.4986 MB / 0.661 GB, free: 5.098 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002551/0.1735, allocations: 201.7 kB / 0.6612 GB, free: 4.867 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.1736, allocations: 56 kB / 0.6613 GB, free: 4.812 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.175, allocations: 0.6896 MB / 0.6619 GB, free: 4.117 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.1751, allocations: 0 / 0.6619 GB, free: 4.117 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.959e-05/0.1751, allocations: 27.97 kB / 0.662 GB, free: 4.09 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/0.1751, allocations: 19.94 kB / 0.662 GB, free: 4.07 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.1766, allocations: 0.6727 MB / 0.6626 GB, free: 3.398 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003876/0.1805, allocations: 2.137 MB / 0.6647 GB, free: 1.176 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007552/0.188, allocations: 2.193 MB / 0.6669 GB, free: 14.87 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.1891, allocations: 435.1 kB / 0.6673 GB, free: 14.44 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.837e-05/0.1891, allocations: 12.64 kB / 0.6673 GB, free: 14.43 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.1903, allocations: 0.5235 MB / 0.6678 GB, free: 13.89 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 3.607e-06/0.1903, allocations: 0 / 0.6678 GB, free: 13.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.007171/0.1975, allocations: 2.436 MB / 0.6702 GB, free: 11.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/0.1976, allocations: 60.06 kB / 0.6702 GB, free: 11.31 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006615/0.1982, allocations: 0.5109 MB / 0.6707 GB, free: 10.79 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.518e-05/0.1983, allocations: 41.7 kB / 0.6708 GB, free: 10.74 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/0.1986, allocations: 333.1 kB / 0.6711 GB, free: 10.41 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002705/0.1989, allocations: 261.7 kB / 0.6713 GB, free: 10.16 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002312/0.1991, allocations: 122.7 kB / 0.6715 GB, free: 10.03 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.1993, allocations: 382.8 kB / 0.6718 GB, free: 9.648 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000864/0.2001, allocations: 401.8 kB / 0.6722 GB, free: 9.254 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009632/0.2011, allocations: 0.4946 MB / 0.6727 GB, free: 8.734 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008914/0.21, allocations: 2.522 MB / 0.6752 GB, free: 6.184 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.21, allocations: 3.938 kB / 0.6752 GB, free: 6.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00731/0.2173, allocations: 2.201 MB / 0.6773 GB, free: 3.965 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.2174, allocations: 8 kB / 0.6773 GB, free: 3.957 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/0.2174, allocations: 7.938 kB / 0.6773 GB, free: 3.949 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003948/0.2213, allocations: 0.9968 MB / 0.6783 GB, free: 2.945 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005407/0.2219, allocations: 111.8 kB / 0.6784 GB, free: 2.836 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.2319, allocations: 4.515 MB / 0.6828 GB, free: 14.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009222/0.2328, allocations: 95.52 kB / 0.6829 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.233, allocations: 24 kB / 0.6829 GB, free: 14.07 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.0005283/0.2335, allocations: 208.4 kB / 0.6831 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002206/0.2337, allocations: 75.53 kB / 0.6832 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004799/0.2385, allocations: 1.667 MB / 0.6848 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.2385, allocations: 11.98 kB / 0.6848 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.2386, allocations: 7.938 kB / 0.6848 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.2386, allocations: 0 / 0.6848 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005018/0.2436, allocations: 2.419 MB / 0.6872 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.2436, allocations: 4.188 kB / 0.6872 GB, free: 9.562 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004131/0.244, allocations: 67.89 kB / 0.6873 GB, free: 9.496 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.004258/0.2483, allocations: 1.068 MB / 0.6883 GB, free: 8.418 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.411e-05/0.2483, allocations: 19.98 kB / 0.6883 GB, free: 8.398 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005722/0.2489, allocations: 92.75 kB / 0.6884 GB, free: 8.305 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2489, allocations: 4 kB / 0.6884 GB, free: 8.301 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004656/0.2536, allocations: 2.001 MB / 0.6904 GB, free: 6.27 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.2538, allocations: 156.5 kB / 0.6905 GB, free: 6.098 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/0.254, allocations: 16.03 kB / 0.6906 GB, free: 6.082 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006431/0.2546, allocations: 55.94 kB / 0.6906 GB, free: 6.027 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/0.2549, allocations: 124.5 kB / 0.6907 GB, free: 5.906 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-05/0.255, allocations: 27.92 kB / 0.6908 GB, free: 5.879 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000469/0.2555, allocations: 354.8 kB / 0.6911 GB, free: 5.535 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2555, allocations: 4 kB / 0.6911 GB, free: 5.531 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008129/0.2563, allocations: 231.8 kB / 0.6913 GB, free: 5.305 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.005036/0.2613, allocations: 2.556 MB / 0.6938 GB, free: 2.715 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004159/0.2655, allocations: 1.529 MB / 0.6953 GB, free: 1.125 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.2655, allocations: 4.062 kB / 0.6953 GB, free: 1.121 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_2/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_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1564:5-1564:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.721912512090057] Failed to read output from testmodel.py, exit status != 0: 0.5533407828770578 0.56760458 0.399199604 Calling exit ...