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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 186.5 kB / 7.46 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.036/1.036, allocations: 221.4 MB / 229.3 MB, free: 3.07 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.0008756/0.0008756, allocations: 106.7 kB / 280.1 MB, free: 1.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3564/0.3564, allocations: 78.1 MB / 409 MB, free: 15.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.613e-06/6.633e-06, allocations: 4 kB / 484.4 MB, free: 4.574 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2285, allocations: 69.35 MB / 0.5408 GB, free: 21.66 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09549/0.324, allocations: 92.53 MB / 0.6311 GB, free: 12.51 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.3243, allocations: 79.95 kB / 0.6312 GB, free: 12.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.03352/0.3578, allocations: 13.57 MB / 0.6444 GB, free: 14.75 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.248e-05/0.3578, allocations: 20.16 kB / 0.6445 GB, free: 14.73 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.002503/0.3603, allocations: 1.166 MB / 0.6456 GB, free: 13.52 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.3604, allocations: 8.031 kB / 0.6456 GB, free: 13.51 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001614/0.362, allocations: 326.6 kB / 0.6459 GB, free: 13.19 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005103/0.3625, allocations: 434.8 kB / 0.6463 GB, free: 12.72 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/0.3627, allocations: 189.7 kB / 0.6465 GB, free: 12.51 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.712e-05/0.3628, allocations: 35.94 kB / 0.6466 GB, free: 12.47 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008891/0.3637, allocations: 0.5415 MB / 0.6471 GB, free: 11.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008431/0.3646, allocations: 0.5115 MB / 0.6476 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.3646, allocations: 0 / 0.6476 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.654e-05/0.3647, allocations: 0 / 0.6476 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.3647, allocations: 16 kB / 0.6476 GB, free: 11.4 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003448/0.3681, allocations: 2.25 MB / 0.6498 GB, free: 9.047 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.3692, allocations: 0.6353 MB / 0.6504 GB, free: 8.395 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004912/0.3697, allocations: 362.8 kB / 0.6508 GB, free: 8.039 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.53e-05/0.3698, allocations: 16.58 kB / 0.6508 GB, free: 8.023 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005857/0.3704, allocations: 411.1 kB / 0.6512 GB, free: 7.613 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 1.844e-06/0.3704, allocations: 4 kB / 0.6512 GB, free: 7.609 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.004029/0.3745, allocations: 1.556 MB / 0.6527 GB, free: 6.031 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/0.3745, allocations: 64 kB / 0.6528 GB, free: 5.957 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004054/0.3749, allocations: 414.5 kB / 0.6531 GB, free: 5.543 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.533e-05/0.375, allocations: 29.7 kB / 0.6532 GB, free: 5.508 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.3751, allocations: 236.6 kB / 0.6534 GB, free: 5.273 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.3753, allocations: 236.5 kB / 0.6536 GB, free: 5.039 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.3753, allocations: 0 / 0.6536 GB, free: 5.039 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.3755, allocations: 378.8 kB / 0.654 GB, free: 4.66 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004671/0.3759, allocations: 305.6 kB / 0.6543 GB, free: 4.359 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005047/0.3765, allocations: 394.7 kB / 0.6547 GB, free: 3.949 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004758/0.3769, allocations: 322 kB / 0.655 GB, free: 3.633 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3769, allocations: 4 kB / 0.655 GB, free: 3.629 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006271/0.3832, allocations: 2.311 MB / 0.6572 GB, free: 1.301 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.3832, allocations: 4 kB / 0.6572 GB, free: 1.297 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3833, allocations: 4 kB / 0.6572 GB, free: 1.293 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003492/0.3868, allocations: 0.981 MB / 0.6582 GB, free: 312 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/0.3873, allocations: 111.8 kB / 0.6583 GB, free: 200 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006231/0.3935, allocations: 3.369 MB / 0.6616 GB, free: 12.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007382/0.3943, allocations: 115.3 kB / 0.6617 GB, free: 12.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.717e-05/0.3943, allocations: 27.98 kB / 0.6617 GB, free: 12.57 MB / 490.7 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 protected = true ) type: Real load.xp:VARIABLE(start = 0.0 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 () * 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.0002134/0.3946, allocations: 124.8 kB / 0.6618 GB, free: 12.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.3947, allocations: 75.06 kB / 0.6619 GB, free: 12.37 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005823/0.4005, allocations: 2.118 MB / 0.664 GB, free: 10.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.4005, allocations: 8 kB / 0.664 GB, free: 10.22 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4005, allocations: 3.938 kB / 0.664 GB, free: 10.22 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.4006, allocations: 3.984 kB / 0.664 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003175/0.4037, allocations: 2.026 MB / 0.666 GB, free: 8.121 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.4038, allocations: 192 / 0.666 GB, free: 8.121 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004094/0.4042, allocations: 79.91 kB / 0.6661 GB, free: 8.043 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.00364/0.4078, allocations: 1.062 MB / 0.6671 GB, free: 6.973 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.391e-05/0.4079, allocations: 0 / 0.6671 GB, free: 6.973 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006096/0.4085, allocations: 148.7 kB / 0.6672 GB, free: 6.824 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4085, allocations: 4 kB / 0.6672 GB, free: 6.82 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002757/0.4113, allocations: 1.69 MB / 0.6689 GB, free: 5.105 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.4114, allocations: 152 kB / 0.669 GB, free: 4.938 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.4115, allocations: 8 kB / 0.669 GB, free: 4.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006338/0.4122, allocations: 71.94 kB / 0.6691 GB, free: 4.859 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.4124, allocations: 96.48 kB / 0.6692 GB, free: 4.766 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-05/0.4124, allocations: 16 kB / 0.6692 GB, free: 4.75 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0002777/0.4127, allocations: 318.9 kB / 0.6695 GB, free: 4.441 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0005751/0.4133, allocations: 211.7 kB / 0.6697 GB, free: 4.234 MB / 490.7 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) * 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.0001857/0.4135, allocations: 132.8 kB / 0.6698 GB, free: 4.098 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002956/0.4165, allocations: 1.431 MB / 0.6712 GB, free: 2.609 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.4165, allocations: 0 / 0.6712 GB, free: 2.609 MB / 490.7 MB [/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/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3599:9-3599:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{14:9}, {18:8}, {17:7}, {30:5}, {15:3}, {29:69}, {28:33}, {22:29}, {23:70}, {9:20}, {6:21}}, {5, 16, 31, 19, 25, 7, 8, 10, 11, 21, 20, 13, 12, 27, 26, 24:35, 53, 11, 10, 52, 46, 47, 30, 12, 45, 42, 44, 13, 40, 43, 41} Size: 16 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1356:5-1356:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]