Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004199/0.004199, allocations: 171.9 kB / 15.12 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.2 MB / 239 MB, free: 1.777 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008836/0.0008838, allocations: 110.5 kB / 290.2 MB, free: 13.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4172/0.4172, allocations: 78.58 MB / 419.9 MB, free: 44.19 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003721, allocations: 11.98 kB / 499.8 MB, free: 2.941 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3511, allocations: 69.35 MB / 0.5558 GB, free: 38.71 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.4524, allocations: 93.35 MB / 0.6469 GB, free: 13.14 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.4527, allocations: 79.95 kB / 0.647 GB, free: 13.06 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03309/0.4858, allocations: 14.07 MB / 0.6608 GB, free: 14.91 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4858, allocations: 4 kB / 0.6608 GB, free: 14.91 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.265e-05/0.4858, allocations: 13.53 kB / 0.6608 GB, free: 14.9 MB / 474.7 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.002707/0.4886, allocations: 1.232 MB / 0.662 GB, free: 13.62 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.4886, allocations: 8.031 kB / 0.662 GB, free: 13.61 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001539/0.4901, allocations: 302.7 kB / 0.6623 GB, free: 13.31 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000547/0.4907, allocations: 450.7 kB / 0.6627 GB, free: 12.83 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.4909, allocations: 205.8 kB / 0.6629 GB, free: 12.59 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.124e-05/0.491, allocations: 48.34 kB / 0.6629 GB, free: 12.55 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.4924, allocations: 0.7325 MB / 0.6637 GB, free: 11.81 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.4924, allocations: 0 / 0.6637 GB, free: 11.81 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-05/0.4924, allocations: 24 kB / 0.6637 GB, free: 11.79 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.4925, allocations: 16 kB / 0.6637 GB, free: 11.77 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.4938, allocations: 0.7157 MB / 0.6644 GB, free: 11.05 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003572/0.4974, allocations: 2.172 MB / 0.6665 GB, free: 8.805 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008104/0.5055, allocations: 2.749 MB / 0.6692 GB, free: 5.941 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.286e-05/0.5056, allocations: 8.656 kB / 0.6692 GB, free: 5.934 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001075/0.5067, allocations: 0.5626 MB / 0.6698 GB, free: 5.359 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 2.865e-06/0.5067, allocations: 0 / 0.6698 GB, free: 5.359 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.008821/0.5155, allocations: 3.183 MB / 0.6729 GB, free: 2.102 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.5156, allocations: 64.06 kB / 0.6729 GB, free: 2.027 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004881/0.5161, allocations: 446.4 kB / 0.6734 GB, free: 1.586 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.668e-05/0.5162, allocations: 41.7 kB / 0.6734 GB, free: 1.539 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.5164, allocations: 332.5 kB / 0.6737 GB, free: 1.207 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.5166, allocations: 248.4 kB / 0.674 GB, free: 0.9609 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.941e-05/0.5167, allocations: 12 kB / 0.674 GB, free: 0.9492 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.5168, allocations: 382.8 kB / 0.6743 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008615/0.5177, allocations: 449.7 kB / 0.6748 GB, free: 132 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009098/0.5186, allocations: 0.522 MB / 0.6753 GB, free: 15.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008744/0.5195, allocations: 472.9 kB / 0.6757 GB, free: 15.12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.5195, allocations: 0 / 0.6757 GB, free: 15.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00732/0.5268, allocations: 2.642 MB / 0.6783 GB, free: 12.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.5268, allocations: 9.719 kB / 0.6783 GB, free: 12.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.5269, allocations: 4 kB / 0.6783 GB, free: 12.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00403/0.5309, allocations: 1.189 MB / 0.6795 GB, free: 11.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004784/0.5314, allocations: 103.9 kB / 0.6796 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009095/0.5405, allocations: 4.664 MB / 0.6841 GB, free: 6.359 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007794/0.5413, allocations: 127.3 kB / 0.6842 GB, free: 6.234 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.609e-05/0.5413, allocations: 20 kB / 0.6843 GB, free: 6.215 MB / 490.7 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xp: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 ($whenCondition1,$whenCondition2,$PRE.ultc.m,ultc.m,ultc.zeroCrossing.y,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.disable,$PRE.ultc.zeroCrossing.u_pos,ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.enable,ultc.zeroCrossing.enable) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003689/0.5417, allocations: 207.7 kB / 0.6845 GB, free: 6.004 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.5418, allocations: 75.06 kB / 0.6845 GB, free: 5.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005535/0.5474, allocations: 2.182 MB / 0.6867 GB, free: 3.727 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.5474, allocations: 11.94 kB / 0.6867 GB, free: 3.715 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.5474, allocations: 4 kB / 0.6867 GB, free: 3.711 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.5474, allocations: 3.984 kB / 0.6867 GB, free: 3.707 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004544/0.552, allocations: 2.597 MB / 0.6892 GB, free: 1.016 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.552, allocations: 0 / 0.6892 GB, free: 1.016 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003869/0.5524, allocations: 79.89 kB / 0.6893 GB, free: 0.9375 MB / 490.7 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.004224/0.5566, allocations: 1.244 MB / 0.6905 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.5e-05/0.5567, allocations: 16 kB / 0.6905 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005755/0.5573, allocations: 128.7 kB / 0.6906 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.5573, allocations: 4 kB / 0.6907 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004421/0.5617, allocations: 2.206 MB / 0.6928 GB, free: 13.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.5619, allocations: 152.1 kB / 0.693 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.578e-05/0.562, allocations: 19.98 kB / 0.693 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006205/0.5627, allocations: 75.94 kB / 0.693 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002716/0.563, allocations: 120.4 kB / 0.6932 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-05/0.563, allocations: 24 kB / 0.6932 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003987/0.5634, allocations: 350.8 kB / 0.6935 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5634, allocations: 3.938 kB / 0.6935 GB, free: 12.56 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0007074/0.5641, allocations: 247.7 kB / 0.6938 GB, free: 12.32 MB / 0.4948 GB 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001992/0.5643, allocations: 140 kB / 0.6939 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003827/0.5682, allocations: 1.74 MB / 0.6956 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5682, allocations: 0 / 0.6956 GB, free: 10.38 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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:3332:9-3332:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {28:8}, {22:7}, {26:5}, {24:3}, {31:66}, {30:33}, {15:29}, {16:67}, {7:20}, {9:21}}, {10, 14, 5, 12, 6, 8, 19, 18, 11, 13, 25, 27, 29, 21, 20, 17:35, 11, 53, 10, 52, 46, 47, 30, 40, 41, 43, 42, 45, 13, 12, 44} Size: 16 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1480:5-1480:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]