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/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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_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.003806/0.003806, allocations: 170.4 kB / 15.11 MB, free: 6.039 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.138/1.138, allocations: 223.2 MB / 239 MB, free: 1.781 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.0008244/0.0008244, allocations: 107.9 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.39/0.39, allocations: 78.52 MB / 419.8 MB, free: 44.1 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.000322, allocations: 12 kB / 499.7 MB, free: 2.75 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.2992, allocations: 69.35 MB / 0.5557 GB, free: 38.92 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1006/0.3999, allocations: 93.36 MB / 0.6469 GB, free: 13.03 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.4001, allocations: 75.97 kB / 0.647 GB, free: 12.95 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03382/0.4339, allocations: 14.08 MB / 0.6607 GB, free: 14.8 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.434, allocations: 0 / 0.6607 GB, free: 14.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.396e-05/0.434, allocations: 13.53 kB / 0.6607 GB, free: 14.79 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.002959/0.437, allocations: 1.228 MB / 0.6619 GB, free: 13.51 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.437, allocations: 12.03 kB / 0.6619 GB, free: 13.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001613/0.4386, allocations: 298.7 kB / 0.6622 GB, free: 13.21 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006266/0.4393, allocations: 450.7 kB / 0.6626 GB, free: 12.72 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002224/0.4395, allocations: 205.8 kB / 0.6628 GB, free: 12.49 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.4396, allocations: 56.34 kB / 0.6629 GB, free: 12.43 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.4411, allocations: 0.7325 MB / 0.6636 GB, free: 11.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.4411, allocations: 0 / 0.6636 GB, free: 11.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.96e-05/0.4412, allocations: 27.98 kB / 0.6636 GB, free: 11.67 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.4412, allocations: 12 kB / 0.6636 GB, free: 11.66 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001379/0.4426, allocations: 0.7157 MB / 0.6643 GB, free: 10.94 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003648/0.4462, allocations: 2.172 MB / 0.6665 GB, free: 8.691 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00789/0.4541, allocations: 2.739 MB / 0.6691 GB, free: 5.836 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.665e-05/0.4542, allocations: 12.66 kB / 0.6692 GB, free: 5.824 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00106/0.4553, allocations: 0.5587 MB / 0.6697 GB, free: 5.254 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 3.496e-06/0.4553, allocations: 3.984 kB / 0.6697 GB, free: 5.25 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.008592/0.4639, allocations: 3.191 MB / 0.6728 GB, free: 1.984 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.464, allocations: 56.06 kB / 0.6729 GB, free: 1.918 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004846/0.4644, allocations: 450.4 kB / 0.6733 GB, free: 1.473 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.573e-05/0.4645, allocations: 41.7 kB / 0.6733 GB, free: 1.426 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002172/0.4647, allocations: 324.6 kB / 0.6737 GB, free: 1.102 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002051/0.465, allocations: 248.4 kB / 0.6739 GB, free: 0.8555 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.657e-05/0.465, allocations: 12 kB / 0.6739 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4652, allocations: 382.8 kB / 0.6743 GB, free: 472 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008397/0.466, allocations: 449.7 kB / 0.6747 GB, free: 24 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008836/0.4669, allocations: 0.5375 MB / 0.6752 GB, free: 15.45 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008586/0.4678, allocations: 468.9 kB / 0.6757 GB, free: 15 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4678, allocations: 0 / 0.6757 GB, free: 15 MB / 490.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006947/0.4747, allocations: 2.638 MB / 0.6782 GB, free: 12.34 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.4748, allocations: 4 kB / 0.6782 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.4748, allocations: 4 kB / 0.6783 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003906/0.4787, allocations: 1.188 MB / 0.6794 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004486/0.4792, allocations: 111.9 kB / 0.6795 GB, free: 11.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008644/0.4878, allocations: 4.66 MB / 0.6841 GB, free: 6.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006595/0.4885, allocations: 123.3 kB / 0.6842 GB, free: 6.129 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-05/0.4885, allocations: 24 kB / 0.6842 GB, free: 6.105 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.0002922/0.4888, allocations: 197.8 kB / 0.6844 GB, free: 5.902 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.489, allocations: 79.05 kB / 0.6845 GB, free: 5.824 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005394/0.4944, allocations: 2.182 MB / 0.6866 GB, free: 3.621 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4944, allocations: 4 kB / 0.6866 GB, free: 3.617 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.4944, allocations: 4 kB / 0.6866 GB, free: 3.613 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.4944, allocations: 4.172 kB / 0.6866 GB, free: 3.609 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004257/0.4987, allocations: 2.601 MB / 0.6892 GB, free: 0.9141 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4987, allocations: 3.938 kB / 0.6892 GB, free: 0.9102 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003587/0.499, allocations: 75.89 kB / 0.6892 GB, free: 0.8359 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.003974/0.503, allocations: 1.244 MB / 0.6904 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.006e-05/0.5031, allocations: 20 kB / 0.6905 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000531/0.5036, allocations: 124.7 kB / 0.6906 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.5037, allocations: 3.984 kB / 0.6906 GB, free: 15.44 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004174/0.5078, allocations: 2.21 MB / 0.6927 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.508, allocations: 152 kB / 0.6929 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.066e-05/0.5081, allocations: 16 kB / 0.6929 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000599/0.5087, allocations: 75.94 kB / 0.693 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002664/0.509, allocations: 120.4 kB / 0.6931 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.197e-05/0.509, allocations: 23.98 kB / 0.6931 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003598/0.5094, allocations: 350.8 kB / 0.6935 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5094, allocations: 3.938 kB / 0.6935 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000629/0.51, allocations: 247.7 kB / 0.6937 GB, free: 12.22 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.0002068/0.5102, allocations: 144.4 kB / 0.6938 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003756/0.514, allocations: 1.755 MB / 0.6955 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.514, allocations: 0 / 0.6955 GB, free: 10.26 MB / 0.4948 GB [/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: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]