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.001332/0.001332, allocations: 113 kB / 17.6 MB, free: 4.684 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.414/1.414, allocations: 225.6 MB / 246.2 MB, free: 13.59 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.001627/0.001627, allocations: 190.7 kB / 301.4 MB, free: 9.098 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.4738/0.4738, allocations: 79.71 MB / 436.3 MB, free: 5.574 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: 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: Performance of FrontEnd - loaded program: time 0.002294/0.002294, allocations: 87.86 kB / 0.5816 GB, free: 8.586 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1563, allocations: 72.09 MB / 0.652 GB, free: 416 kB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.006082/0.1624, allocations: 4.391 MB / 0.6563 GB, free: 11.98 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002743/0.1652, allocations: 1.259 MB / 0.6575 GB, free: 10.71 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003295/0.1655, allocations: 4 kB / 0.6575 GB, free: 10.71 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000451/0.166, allocations: 142.8 kB / 0.6576 GB, free: 10.57 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006288/0.1666, allocations: 266 kB / 0.6579 GB, free: 10.31 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.168, allocations: 0.583 MB / 0.6585 GB, free: 9.727 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009892/0.169, allocations: 0.8057 MB / 0.6592 GB, free: 8.918 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003614/0.1694, allocations: 137.8 kB / 0.6594 GB, free: 8.773 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000379/0.1698, allocations: 338.5 kB / 0.6597 GB, free: 8.441 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006229/0.1704, allocations: 418 kB / 0.6601 GB, free: 8.031 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.1705, allocations: 64 kB / 0.6602 GB, free: 7.969 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003436/0.1708, allocations: 131.9 kB / 0.6603 GB, free: 7.84 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.171, allocations: 163.3 kB / 0.6604 GB, free: 7.68 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004242/0.1714, allocations: 393.7 kB / 0.6608 GB, free: 7.293 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.1726, allocations: 0.9141 MB / 0.6617 GB, free: 6.375 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1727, allocations: 0 / 0.6617 GB, free: 6.375 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1727, allocations: 4 kB / 0.6617 GB, free: 6.371 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.1727, allocations: 0 / 0.6617 GB, free: 6.371 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.004697/0.1774, allocations: 1.582 MB / 0.6633 GB, free: 4.738 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.1774, allocations: 12.03 kB / 0.6633 GB, free: 4.727 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002569/0.18, allocations: 435.5 kB / 0.6637 GB, free: 4.301 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007776/0.1808, allocations: 0.5025 MB / 0.6642 GB, free: 3.758 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002607/0.181, allocations: 201.8 kB / 0.6644 GB, free: 3.527 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.1811, allocations: 52 kB / 0.6644 GB, free: 3.477 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/0.1826, allocations: 0.6897 MB / 0.6651 GB, free: 2.781 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.1827, allocations: 4 kB / 0.6651 GB, free: 2.777 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-05/0.1827, allocations: 23.98 kB / 0.6651 GB, free: 2.754 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.1827, allocations: 15.94 kB / 0.6651 GB, free: 2.738 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.1842, allocations: 0.6727 MB / 0.6658 GB, free: 2.066 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004128/0.1883, allocations: 2.129 MB / 0.6679 GB, free: 15.85 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007825/0.1962, allocations: 2.203 MB / 0.67 GB, free: 13.54 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.1973, allocations: 435.1 kB / 0.6704 GB, free: 13.11 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001109/0.1974, allocations: 12.64 kB / 0.6705 GB, free: 13.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001335/0.1987, allocations: 0.5235 MB / 0.671 GB, free: 12.57 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 4.929e-06/0.1987, allocations: 0 / 0.671 GB, free: 12.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.007551/0.2063, allocations: 2.436 MB / 0.6733 GB, free: 10.06 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.2064, allocations: 60.06 kB / 0.6734 GB, free: 9.988 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007101/0.2071, allocations: 0.5148 MB / 0.6739 GB, free: 9.461 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.027e-05/0.2071, allocations: 41.7 kB / 0.6739 GB, free: 9.414 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/0.2074, allocations: 333 kB / 0.6743 GB, free: 9.086 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002867/0.2077, allocations: 257.7 kB / 0.6745 GB, free: 8.832 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.208, allocations: 126.6 kB / 0.6746 GB, free: 8.703 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000211/0.2082, allocations: 382.8 kB / 0.675 GB, free: 8.32 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009129/0.2091, allocations: 405.8 kB / 0.6754 GB, free: 7.922 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009819/0.2101, allocations: 498.5 kB / 0.6759 GB, free: 7.41 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009092/0.2192, allocations: 2.518 MB / 0.6783 GB, free: 4.863 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/0.2192, allocations: 4 kB / 0.6783 GB, free: 4.859 MB / 478.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007306/0.2265, allocations: 2.204 MB / 0.6805 GB, free: 2.641 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.2265, allocations: 8 kB / 0.6805 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.2265, allocations: 0 / 0.6805 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003971/0.2305, allocations: 0.9975 MB / 0.6814 GB, free: 1.625 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005714/0.2311, allocations: 107.8 kB / 0.6816 GB, free: 1.52 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009674/0.2407, allocations: 4.516 MB / 0.686 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008099/0.2416, allocations: 107.5 kB / 0.6861 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.491e-05/0.2416, allocations: 20 kB / 0.6861 GB, free: 12.73 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.0003886/0.242, allocations: 198.9 kB / 0.6863 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.2421, allocations: 75.53 kB / 0.6863 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004649/0.2468, allocations: 1.682 MB / 0.688 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.2468, allocations: 11.98 kB / 0.688 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2468, allocations: 0 / 0.688 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.2468, allocations: 7.922 kB / 0.688 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00465/0.2515, allocations: 2.411 MB / 0.6904 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.154e-06/0.2515, allocations: 4 kB / 0.6904 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003937/0.2519, allocations: 75.89 kB / 0.6904 GB, free: 8.152 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.004183/0.2561, allocations: 1.068 MB / 0.6915 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.2562, allocations: 15.98 kB / 0.6915 GB, free: 7.059 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005376/0.2567, allocations: 96.75 kB / 0.6916 GB, free: 6.961 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2567, allocations: 4.188 kB / 0.6916 GB, free: 6.957 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004575/0.2613, allocations: 1.997 MB / 0.6935 GB, free: 4.934 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002501/0.2615, allocations: 156.5 kB / 0.6937 GB, free: 4.762 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.2616, allocations: 15.94 kB / 0.6937 GB, free: 4.746 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006287/0.2623, allocations: 59.94 kB / 0.6938 GB, free: 4.688 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003263/0.2626, allocations: 116.5 kB / 0.6939 GB, free: 4.574 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.318e-05/0.2627, allocations: 27.98 kB / 0.6939 GB, free: 4.547 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004255/0.2631, allocations: 346.8 kB / 0.6942 GB, free: 4.211 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2631, allocations: 0 / 0.6942 GB, free: 4.211 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007584/0.2638, allocations: 239.8 kB / 0.6945 GB, free: 3.977 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.0002325/0.2641, allocations: 125.5 kB / 0.6946 GB, free: 3.848 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004042/0.2681, allocations: 1.525 MB / 0.6961 GB, free: 2.262 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.2681, allocations: 0 / 0.6961 GB, free: 2.262 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3563:9-3563: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1566:5-1566:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:821:5-821: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.5112737817689776]