Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_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 3.2.3+maint.om/package.mo): time 0.004009/0.004009, allocations: 178.3 kB / 7.454 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.2 MB / 213.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009196/0.0009195, allocations: 94.91 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06692/0.06692, allocations: 12.59 MB / 321.6 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2818/0.2818, allocations: 78.05 MB / 450.4 MB, free: 3.219 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.22e-06/5.26e-06, allocations: 0 / 0.5141 GB, free: 30 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1266, allocations: 69.31 MB / 0.5818 GB, free: 8.793 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3541/0.4808, allocations: 94.06 MB / 0.6737 GB, free: 10.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.4811, allocations: 76.03 kB / 0.6737 GB, free: 10.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.03203/0.5131, allocations: 13.12 MB / 0.6866 GB, free: 2.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.073e-05/0.5131, allocations: 12 kB / 0.6866 GB, free: 2.719 MB / 426.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.002436/0.5156, allocations: 1.164 MB / 0.6877 GB, free: 1.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.617e-05/0.5156, allocations: 15.97 kB / 0.6877 GB, free: 1.574 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/0.5172, allocations: 316 kB / 0.688 GB, free: 1.289 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.5177, allocations: 443.2 kB / 0.6884 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.5179, allocations: 189.8 kB / 0.6886 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.084e-05/0.518, allocations: 32 kB / 0.6887 GB, free: 0.6523 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008266/0.5188, allocations: 0.538 MB / 0.6892 GB, free: 332 kB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008064/0.5196, allocations: 0.5194 MB / 0.6897 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.5196, allocations: 3.938 kB / 0.6897 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.592e-05/0.5197, allocations: 0 / 0.6897 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.5197, allocations: 16 kB / 0.6897 GB, free: 15.94 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003584/0.5233, allocations: 2.253 MB / 0.6919 GB, free: 14.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.5244, allocations: 0.6346 MB / 0.6925 GB, free: 13.85 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005048/0.525, allocations: 357.4 kB / 0.6929 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.451e-05/0.525, allocations: 12.56 kB / 0.6929 GB, free: 13.65 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000623/0.5257, allocations: 417.8 kB / 0.6933 GB, free: 13.37 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 1.683e-06/0.5257, allocations: 0 / 0.6933 GB, free: 13.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=73): time 0.00419/0.5299, allocations: 1.558 MB / 0.6948 GB, free: 12.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.5299, allocations: 60.06 kB / 0.6949 GB, free: 12.05 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000458/0.5304, allocations: 418.1 kB / 0.6953 GB, free: 11.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.882e-05/0.5304, allocations: 29.64 kB / 0.6953 GB, free: 11.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.5306, allocations: 235.4 kB / 0.6955 GB, free: 11.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.5308, allocations: 242.4 kB / 0.6957 GB, free: 11.28 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.352e-05/0.5308, allocations: 4 kB / 0.6957 GB, free: 11.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.531, allocations: 385.1 kB / 0.6961 GB, free: 10.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/0.5314, allocations: 298.8 kB / 0.6964 GB, free: 10.77 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005059/0.5319, allocations: 388.4 kB / 0.6968 GB, free: 10.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004776/0.5324, allocations: 324.1 kB / 0.6971 GB, free: 10.33 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.5324, allocations: 0 / 0.6971 GB, free: 10.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006565/0.539, allocations: 2.307 MB / 0.6993 GB, free: 8.379 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.539, allocations: 4 kB / 0.6993 GB, free: 8.375 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.539, allocations: 0 / 0.6993 GB, free: 8.375 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003717/0.5428, allocations: 0.9855 MB / 0.7003 GB, free: 7.508 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006116/0.5434, allocations: 109.5 kB / 0.7004 GB, free: 7.406 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006978/0.5504, allocations: 3.364 MB / 0.7037 GB, free: 4.695 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009576/0.5514, allocations: 111.4 kB / 0.7038 GB, free: 4.586 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.299e-05/0.5515, allocations: 27.3 kB / 0.7038 GB, free: 4.566 MB / 442.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.0002716/0.5517, allocations: 132.7 kB / 0.7039 GB, free: 4.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.5519, allocations: 75.06 kB / 0.704 GB, free: 4.355 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00595/0.5578, allocations: 2.115 MB / 0.7061 GB, free: 2.598 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.5579, allocations: 8 kB / 0.7061 GB, free: 2.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.5579, allocations: 3.906 kB / 0.7061 GB, free: 2.586 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.5579, allocations: 11.98 kB / 0.7061 GB, free: 2.574 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/0.5612, allocations: 2.03 MB / 0.7081 GB, free: 1.082 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.5612, allocations: 3.984 kB / 0.7081 GB, free: 1.078 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004293/0.5617, allocations: 71.72 kB / 0.7082 GB, free: 1.012 MB / 442.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.003786/0.5655, allocations: 1.049 MB / 0.7092 GB, free: 100 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7e-05/0.5656, allocations: 8.125 kB / 0.7092 GB, free: 96 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007128/0.5663, allocations: 148.6 kB / 0.7093 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5663, allocations: 3.938 kB / 0.7093 GB, free: 15.94 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002944/0.5692, allocations: 1.69 MB / 0.711 GB, free: 14.81 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.5695, allocations: 155.8 kB / 0.7111 GB, free: 14.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.5696, allocations: 0 / 0.7111 GB, free: 14.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006886/0.5703, allocations: 79.56 kB / 0.7112 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002379/0.5705, allocations: 94.67 kB / 0.7113 GB, free: 14.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.258e-05/0.5706, allocations: 22.47 kB / 0.7113 GB, free: 14.47 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003526/0.571, allocations: 312.7 kB / 0.7116 GB, free: 14.24 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007833/0.5717, allocations: 219.6 kB / 0.7118 GB, free: 14.03 MB / 458.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.0002395/0.572, allocations: 122.7 kB / 0.7119 GB, free: 13.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003279/0.5753, allocations: 1.427 MB / 0.7133 GB, free: 12.74 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5753, allocations: 0 / 0.7133 GB, free: 12.74 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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]