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.002008/0.002008, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.605/1.605, allocations: 230.6 MB / 253.4 MB, free: 8.273 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.001771/0.001771, allocations: 209.5 kB / 310 MB, free: 3.148 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.4734/0.4734, allocations: 79.75 MB / 446.2 MB, free: 14.83 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.00251/0.00251, allocations: 79.88 kB / 0.5941 GB, free: 13.51 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.179, allocations: 73.3 MB / 0.6657 GB, free: 4.113 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.006081/0.1851, allocations: 4.425 MB / 0.67 GB, free: 15.67 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002892/0.188, allocations: 1.286 MB / 0.6713 GB, free: 14.38 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000271/0.1883, allocations: 4 kB / 0.6713 GB, free: 14.38 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004435/0.1887, allocations: 146.8 kB / 0.6714 GB, free: 14.23 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005964/0.1893, allocations: 274 kB / 0.6717 GB, free: 13.96 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.1906, allocations: 0.523 MB / 0.6722 GB, free: 13.44 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009373/0.1915, allocations: 0.8095 MB / 0.673 GB, free: 12.63 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.1918, allocations: 146.2 kB / 0.6731 GB, free: 12.47 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003699/0.1922, allocations: 350.5 kB / 0.6735 GB, free: 12.13 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005699/0.1927, allocations: 410.1 kB / 0.6739 GB, free: 11.73 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.851e-05/0.1928, allocations: 64 kB / 0.6739 GB, free: 11.66 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003238/0.1932, allocations: 135.9 kB / 0.674 GB, free: 11.53 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.1933, allocations: 171.2 kB / 0.6742 GB, free: 11.36 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003854/0.1937, allocations: 393.7 kB / 0.6746 GB, free: 10.98 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.1948, allocations: 0.9064 MB / 0.6755 GB, free: 10.07 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1948, allocations: 7.984 kB / 0.6755 GB, free: 10.06 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1948, allocations: 3.938 kB / 0.6755 GB, free: 10.05 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1948, allocations: 3.938 kB / 0.6755 GB, free: 10.05 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.004622/0.1994, allocations: 1.614 MB / 0.6771 GB, free: 8.395 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1995, allocations: 11.98 kB / 0.6771 GB, free: 8.383 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002614/0.2021, allocations: 435.6 kB / 0.6775 GB, free: 7.957 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007364/0.2028, allocations: 435.5 kB / 0.6779 GB, free: 7.508 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003221/0.2031, allocations: 274.9 kB / 0.6782 GB, free: 7.188 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.2032, allocations: 55.98 kB / 0.6782 GB, free: 7.133 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.2047, allocations: 0.6897 MB / 0.6789 GB, free: 6.438 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.2047, allocations: 0 / 0.6789 GB, free: 6.438 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.45e-05/0.2048, allocations: 24 kB / 0.6789 GB, free: 6.414 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.2048, allocations: 15.94 kB / 0.6789 GB, free: 6.398 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.2063, allocations: 0.6766 MB / 0.6796 GB, free: 5.723 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003961/0.2102, allocations: 2.102 MB / 0.6816 GB, free: 3.547 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007577/0.2178, allocations: 1.751 MB / 0.6834 GB, free: 1.789 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.2189, allocations: 433.1 kB / 0.6838 GB, free: 1.367 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001107/0.219, allocations: 12.59 kB / 0.6838 GB, free: 1.352 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0012/0.2202, allocations: 0.5235 MB / 0.6843 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 3.727e-06/0.2202, allocations: 0 / 0.6843 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.00721/0.2274, allocations: 2.222 MB / 0.6865 GB, free: 14.58 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.2275, allocations: 60.06 kB / 0.6865 GB, free: 14.51 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007066/0.2282, allocations: 0.507 MB / 0.687 GB, free: 13.99 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.423e-05/0.2283, allocations: 41.7 kB / 0.6871 GB, free: 13.94 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002867/0.2285, allocations: 329 kB / 0.6874 GB, free: 13.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000281/0.2288, allocations: 261.8 kB / 0.6876 GB, free: 13.36 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002376/0.2291, allocations: 126.6 kB / 0.6877 GB, free: 13.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.2293, allocations: 382.8 kB / 0.6881 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000907/0.2302, allocations: 405.8 kB / 0.6885 GB, free: 12.45 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009934/0.2312, allocations: 498.5 kB / 0.689 GB, free: 11.94 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009196/0.2404, allocations: 2.518 MB / 0.6914 GB, free: 9.391 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.2404, allocations: 0 / 0.6914 GB, free: 9.391 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007165/0.2475, allocations: 2.204 MB / 0.6936 GB, free: 7.164 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.2476, allocations: 8 kB / 0.6936 GB, free: 7.156 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.2476, allocations: 4 kB / 0.6936 GB, free: 7.152 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004013/0.2516, allocations: 0.9967 MB / 0.6946 GB, free: 6.148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/0.2522, allocations: 107.9 kB / 0.6947 GB, free: 6.043 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.2623, allocations: 4.393 MB / 0.699 GB, free: 1.543 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008851/0.2632, allocations: 103.5 kB / 0.6991 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-05/0.2633, allocations: 31.94 kB / 0.6991 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.0004136/0.2637, allocations: 206.4 kB / 0.6993 GB, free: 1.199 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.2638, allocations: 79.53 kB / 0.6994 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3766/0.6404, allocations: 1.671 MB / 0.701 GB, free: 35.79 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.6404, allocations: 8.312 kB / 0.701 GB, free: 35.79 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6404, allocations: 2.5 kB / 0.701 GB, free: 35.79 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.962e-05/0.6404, allocations: 2.953 kB / 0.701 GB, free: 35.79 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004669/0.6451, allocations: 2.386 MB / 0.7033 GB, free: 35.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.6451, allocations: 0 / 0.7033 GB, free: 35.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003935/0.6455, allocations: 75.45 kB / 0.7034 GB, free: 35.38 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.6497, allocations: 1.066 MB / 0.7044 GB, free: 35.35 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.701e-05/0.6498, allocations: 13.14 kB / 0.7045 GB, free: 35.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005923/0.6503, allocations: 103.6 kB / 0.7046 GB, free: 35.34 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.6503, allocations: 0 / 0.7046 GB, free: 35.34 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0046/0.6549, allocations: 2.002 MB / 0.7065 GB, free: 35.18 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/0.6552, allocations: 74.95 kB / 0.7066 GB, free: 35.17 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.6553, allocations: 15.72 kB / 0.7066 GB, free: 35.17 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006306/0.6559, allocations: 55.64 kB / 0.7067 GB, free: 35.17 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003668/0.6563, allocations: 130 kB / 0.7068 GB, free: 35.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.944e-05/0.6563, allocations: 18.47 kB / 0.7068 GB, free: 35.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004758/0.6568, allocations: 357.1 kB / 0.7071 GB, free: 35.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6568, allocations: 1.516 kB / 0.7071 GB, free: 35.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0008191/0.6576, allocations: 240.2 kB / 0.7074 GB, free: 35.06 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.0001972/0.6578, allocations: 122.7 kB / 0.7075 GB, free: 34.97 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004134/0.6619, allocations: 1.382 MB / 0.7088 GB, free: 34.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.6619, allocations: 0.5 kB / 0.7088 GB, free: 34.8 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: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1568:5-1568:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/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: 4.096300704171881] Failed to read output from testmodel.py, exit status != 0: 0.6714734360575676 0.685273749 0.48761814800000003 Calling exit ...