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") [: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.004335/0.004335, allocations: 181.8 kB / 7.451 MB, free: 2.008 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.212/1.212, allocations: 221.4 MB / 229.3 MB, free: 3.008 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.001013/0.001013, allocations: 101.4 kB / 280.1 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4109/0.4109, allocations: 78.05 MB / 408.9 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.132e-06/6.172e-06, allocations: 0 / 484.3 MB, free: 4.43 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2578, allocations: 69.35 MB / 0.5407 GB, free: 21.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.364, allocations: 92.54 MB / 0.6311 GB, free: 12.28 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.3643, allocations: 75.95 kB / 0.6312 GB, free: 12.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.0393/0.4036, allocations: 13.58 MB / 0.6444 GB, free: 14.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.4037, allocations: 16.16 kB / 0.6444 GB, free: 14.48 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.003133/0.4068, allocations: 1.158 MB / 0.6456 GB, free: 13.27 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.4068, allocations: 8.031 kB / 0.6456 GB, free: 13.27 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002004/0.4089, allocations: 330.6 kB / 0.6459 GB, free: 12.94 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006852/0.4096, allocations: 438.8 kB / 0.6463 GB, free: 12.47 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002405/0.4098, allocations: 185.8 kB / 0.6465 GB, free: 12.26 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.4099, allocations: 32 kB / 0.6465 GB, free: 12.23 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001139/0.4111, allocations: 0.5415 MB / 0.647 GB, free: 11.69 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.4122, allocations: 0.5115 MB / 0.6475 GB, free: 11.17 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.4122, allocations: 0 / 0.6475 GB, free: 11.17 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.549e-05/0.4123, allocations: 7.984 kB / 0.6476 GB, free: 11.16 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.4123, allocations: 12 kB / 0.6476 GB, free: 11.15 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004228/0.4165, allocations: 2.242 MB / 0.6498 GB, free: 8.809 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001289/0.4178, allocations: 0.647 MB / 0.6504 GB, free: 8.148 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005947/0.4184, allocations: 358.8 kB / 0.6507 GB, free: 7.797 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.43e-05/0.4185, allocations: 16.58 kB / 0.6507 GB, free: 7.781 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007383/0.4193, allocations: 411.1 kB / 0.6511 GB, free: 7.371 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 2.524e-06/0.4193, allocations: 0 / 0.6511 GB, free: 7.371 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.004691/0.424, allocations: 1.564 MB / 0.6527 GB, free: 5.785 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.4241, allocations: 64 kB / 0.6527 GB, free: 5.711 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005285/0.4246, allocations: 414.5 kB / 0.6531 GB, free: 5.297 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.037e-05/0.4247, allocations: 29.7 kB / 0.6532 GB, free: 5.262 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.4249, allocations: 236.6 kB / 0.6534 GB, free: 5.027 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002621/0.4251, allocations: 244.4 kB / 0.6536 GB, free: 4.785 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.54e-05/0.4252, allocations: 0 / 0.6536 GB, free: 4.785 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.4254, allocations: 378.8 kB / 0.654 GB, free: 4.406 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005727/0.426, allocations: 297.6 kB / 0.6543 GB, free: 4.113 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/0.4266, allocations: 394.7 kB / 0.6546 GB, free: 3.703 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006353/0.4272, allocations: 326 kB / 0.6549 GB, free: 3.383 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.4272, allocations: 4 kB / 0.6549 GB, free: 3.379 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007381/0.4346, allocations: 2.303 MB / 0.6572 GB, free: 1.059 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.4347, allocations: 8 kB / 0.6572 GB, free: 1.051 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.4347, allocations: 8 kB / 0.6572 GB, free: 1.043 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004131/0.4388, allocations: 0.9786 MB / 0.6582 GB, free: 56 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007963/0.4396, allocations: 119.9 kB / 0.6583 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007427/0.4471, allocations: 3.367 MB / 0.6616 GB, free: 12.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009306/0.448, allocations: 111.3 kB / 0.6617 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.4482, allocations: 24 kB / 0.6617 GB, free: 12.32 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.0002574/0.4484, allocations: 126.9 kB / 0.6618 GB, free: 12.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.4486, allocations: 75.06 kB / 0.6619 GB, free: 12.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006708/0.4553, allocations: 2.106 MB / 0.6639 GB, free: 9.996 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.4553, allocations: 15.98 kB / 0.664 GB, free: 9.98 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4553, allocations: 3.938 kB / 0.664 GB, free: 9.977 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.4554, allocations: 0 / 0.664 GB, free: 9.977 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003842/0.4592, allocations: 2.038 MB / 0.666 GB, free: 7.871 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.4592, allocations: 0 / 0.666 GB, free: 7.871 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004793/0.4597, allocations: 71.91 kB / 0.666 GB, free: 7.801 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.004319/0.464, allocations: 1.054 MB / 0.6671 GB, free: 6.738 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.598e-05/0.4641, allocations: 11.98 kB / 0.6671 GB, free: 6.727 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007478/0.4649, allocations: 148.7 kB / 0.6672 GB, free: 6.578 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4649, allocations: 3.938 kB / 0.6672 GB, free: 6.574 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003363/0.4683, allocations: 1.687 MB / 0.6689 GB, free: 4.863 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.4685, allocations: 152 kB / 0.669 GB, free: 4.695 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.4686, allocations: 3.984 kB / 0.669 GB, free: 4.691 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008123/0.4695, allocations: 75.94 kB / 0.6691 GB, free: 4.617 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/0.4697, allocations: 96.48 kB / 0.6692 GB, free: 4.523 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.945e-05/0.4698, allocations: 20 kB / 0.6692 GB, free: 4.504 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0003609/0.4702, allocations: 318.9 kB / 0.6695 GB, free: 4.195 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007292/0.4709, allocations: 207.9 kB / 0.6697 GB, free: 3.992 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.0002358/0.4711, allocations: 131 kB / 0.6698 GB, free: 3.855 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003574/0.4747, allocations: 1.435 MB / 0.6712 GB, free: 2.359 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4748, allocations: 4.062 kB / 0.6712 GB, free: 2.355 MB / 490.7 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/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]