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.001267/0.001267, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.413/1.413, allocations: 230.6 MB / 250.5 MB, free: 9.219 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.001717/0.001717, allocations: 205.5 kB / 306.7 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.4388/0.4388, allocations: 79.72 MB / 442.5 MB, free: 136 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="cs",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.002656/0.002656, allocations: 83.86 kB / 0.5885 GB, free: 1.605 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1401, allocations: 73.26 MB / 0.66 GB, free: 8.25 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005692/0.1458, allocations: 4.403 MB / 0.6643 GB, free: 3.816 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003066/0.1489, allocations: 1.286 MB / 0.6656 GB, free: 2.527 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003703/0.1492, allocations: 4 kB / 0.6656 GB, free: 2.523 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004946/0.1497, allocations: 142.8 kB / 0.6657 GB, free: 2.383 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006444/0.1504, allocations: 266 kB / 0.666 GB, free: 2.121 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.1517, allocations: 0.5307 MB / 0.6665 GB, free: 1.594 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009013/0.1526, allocations: 0.8056 MB / 0.6673 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002986/0.1529, allocations: 145.7 kB / 0.6674 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.1532, allocations: 334.6 kB / 0.6677 GB, free: 308 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000566/0.1538, allocations: 418 kB / 0.6681 GB, free: 15.89 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.544e-05/0.1539, allocations: 60 kB / 0.6682 GB, free: 15.83 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003473/0.1543, allocations: 143.9 kB / 0.6683 GB, free: 15.69 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.1544, allocations: 167.2 kB / 0.6685 GB, free: 15.53 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003713/0.1548, allocations: 389.7 kB / 0.6689 GB, free: 15.14 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.1558, allocations: 0.918 MB / 0.6698 GB, free: 14.22 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1558, allocations: 0 / 0.6698 GB, free: 14.22 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1559, allocations: 0 / 0.6698 GB, free: 14.22 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.1559, allocations: 0 / 0.6698 GB, free: 14.22 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.00463/0.1605, allocations: 1.594 MB / 0.6713 GB, free: 12.58 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.1605, allocations: 16.03 kB / 0.6713 GB, free: 12.56 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.664e-05/0.1606, allocations: 13.19 kB / 0.6713 GB, free: 12.55 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001215/0.1607, allocations: 94.7 kB / 0.6714 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002688/0.1634, allocations: 435.2 kB / 0.6718 GB, free: 12.02 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007022/0.1641, allocations: 0.4948 MB / 0.6723 GB, free: 11.48 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002521/0.1643, allocations: 201.7 kB / 0.6725 GB, free: 11.25 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.1644, allocations: 52 kB / 0.6726 GB, free: 11.2 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.1659, allocations: 0.6897 MB / 0.6732 GB, free: 10.51 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.166, allocations: 0 / 0.6732 GB, free: 10.51 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.018e-05/0.166, allocations: 31.92 kB / 0.6733 GB, free: 10.48 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.1661, allocations: 12 kB / 0.6733 GB, free: 10.47 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.1676, allocations: 0.6727 MB / 0.6739 GB, free: 9.793 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00389/0.1715, allocations: 2.145 MB / 0.676 GB, free: 7.566 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008349/0.1798, allocations: 2.21 MB / 0.6782 GB, free: 5.234 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.1809, allocations: 435.1 kB / 0.6786 GB, free: 4.805 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-05/0.181, allocations: 12.59 kB / 0.6786 GB, free: 4.793 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.1822, allocations: 0.5158 MB / 0.6791 GB, free: 4.266 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 2.915e-06/0.1822, allocations: 0 / 0.6791 GB, free: 4.266 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.00773/0.1899, allocations: 2.436 MB / 0.6815 GB, free: 1.762 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.19, allocations: 60.06 kB / 0.6816 GB, free: 1.688 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006511/0.1907, allocations: 0.507 MB / 0.6821 GB, free: 1.168 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.61e-05/0.1907, allocations: 41.7 kB / 0.6821 GB, free: 1.121 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002647/0.191, allocations: 337 kB / 0.6824 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002816/0.1913, allocations: 261.8 kB / 0.6827 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.1915, allocations: 126.6 kB / 0.6828 GB, free: 408 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.1917, allocations: 378.8 kB / 0.6832 GB, free: 20 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.1928, allocations: 405.8 kB / 0.6835 GB, free: 15.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.1938, allocations: 0.4946 MB / 0.684 GB, free: 15.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009599/0.2034, allocations: 2.526 MB / 0.6865 GB, free: 12.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.2034, allocations: 0 / 0.6865 GB, free: 12.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007508/0.2109, allocations: 2.197 MB / 0.6886 GB, free: 10.33 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.2109, allocations: 4 kB / 0.6886 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.2109, allocations: 8 kB / 0.6886 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004153/0.2151, allocations: 0.9898 MB / 0.6896 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/0.2157, allocations: 111.8 kB / 0.6897 GB, free: 9.211 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.2257, allocations: 4.504 MB / 0.6941 GB, free: 4.574 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008357/0.2265, allocations: 103.5 kB / 0.6942 GB, free: 4.473 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.189e-05/0.2266, allocations: 27.94 kB / 0.6942 GB, free: 4.445 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.000379/0.227, allocations: 205.5 kB / 0.6944 GB, free: 4.238 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000128/0.2271, allocations: 79.53 kB / 0.6945 GB, free: 4.16 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004981/0.2321, allocations: 1.682 MB / 0.6962 GB, free: 2.457 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.2321, allocations: 4 kB / 0.6962 GB, free: 2.453 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.2321, allocations: 7.938 kB / 0.6962 GB, free: 2.445 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.2321, allocations: 3.984 kB / 0.6962 GB, free: 2.441 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2626/0.4947, allocations: 2.407 MB / 0.6985 GB, free: 37.33 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.4947, allocations: 0.8906 kB / 0.6985 GB, free: 37.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004657/0.4952, allocations: 68.45 kB / 0.6986 GB, free: 37.33 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.004175/0.4993, allocations: 1.075 MB / 0.6996 GB, free: 37.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.834e-05/0.4994, allocations: 13.28 kB / 0.6996 GB, free: 37.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005458/0.5, allocations: 104.3 kB / 0.6997 GB, free: 37.29 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5, allocations: 3.094 kB / 0.6998 GB, free: 37.29 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004416/0.5044, allocations: 1.986 MB / 0.7017 GB, free: 37.14 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001544/0.5045, allocations: 157.6 kB / 0.7018 GB, free: 37.05 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.5046, allocations: 18.41 kB / 0.7019 GB, free: 37.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006189/0.5053, allocations: 52.64 kB / 0.7019 GB, free: 37.05 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003116/0.5056, allocations: 121.9 kB / 0.702 GB, free: 37.05 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.375e-05/0.5056, allocations: 20.8 kB / 0.702 GB, free: 37.05 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003813/0.506, allocations: 360.8 kB / 0.7024 GB, free: 36.96 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.506, allocations: 3.281 kB / 0.7024 GB, free: 36.96 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007763/0.5068, allocations: 235.1 kB / 0.7026 GB, free: 36.96 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.004853/0.5116, allocations: 2.553 MB / 0.7051 GB, free: 36.22 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004173/0.5158, allocations: 1.527 MB / 0.7066 GB, free: 35.86 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5158, allocations: 0 / 0.7066 GB, free: 35.86 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.415790313971229] Failed to read output from testmodel.py, exit status != 0: 0.5234401950147003 0.5353989929999999 0.377105998 Calling exit ...