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.0009948/0.0009947, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.246/1.246, allocations: 221.4 MB / 234.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008256/0.0008257, allocations: 96.91 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4428/0.4428, allocations: 78.08 MB / 414.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.747e-05/2.75e-05, allocations: 0 / 491.8 MB, free: 14.05 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3096, allocations: 69.35 MB / 0.548 GB, free: 20.32 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.425, allocations: 93.27 MB / 0.6391 GB, free: 7.281 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.4253, allocations: 79.95 kB / 0.6392 GB, free: 7.203 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03598/0.4613, allocations: 14.03 MB / 0.6529 GB, free: 9.059 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4613, allocations: 0 / 0.6529 GB, free: 9.059 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.831e-05/0.4613, allocations: 20.16 kB / 0.6529 GB, free: 9.039 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.002863/0.4642, allocations: 1.127 MB / 0.654 GB, free: 7.859 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.4643, allocations: 15.97 kB / 0.654 GB, free: 7.844 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001667/0.466, allocations: 306.7 kB / 0.6543 GB, free: 7.543 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006231/0.4666, allocations: 442.7 kB / 0.6547 GB, free: 7.066 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002261/0.4668, allocations: 201.8 kB / 0.6549 GB, free: 6.84 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.4669, allocations: 52.34 kB / 0.655 GB, free: 6.789 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.468, allocations: 0.5961 MB / 0.6555 GB, free: 6.188 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.468, allocations: 0 / 0.6555 GB, free: 6.188 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.921e-05/0.4681, allocations: 24 kB / 0.6556 GB, free: 6.164 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.4681, allocations: 12 kB / 0.6556 GB, free: 6.152 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009762/0.4691, allocations: 0.5636 MB / 0.6561 GB, free: 5.586 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003694/0.4728, allocations: 2.172 MB / 0.6582 GB, free: 3.34 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008216/0.4811, allocations: 2.57 MB / 0.6607 GB, free: 0.6562 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006812/0.4818, allocations: 395.6 kB / 0.6611 GB, free: 268 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.827e-05/0.4819, allocations: 8.781 kB / 0.6611 GB, free: 260 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007882/0.4827, allocations: 446 kB / 0.6616 GB, free: 15.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=73): time 3.156e-06/0.4827, allocations: 0 / 0.6616 GB, free: 15.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=73): time 0.004409/0.4871, allocations: 1.549 MB / 0.6631 GB, free: 14.24 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.4872, allocations: 68.12 kB / 0.6631 GB, free: 14.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005964/0.4878, allocations: 437.2 kB / 0.6636 GB, free: 13.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.096e-05/0.4879, allocations: 49.62 kB / 0.6636 GB, free: 13.68 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/0.4881, allocations: 316.6 kB / 0.6639 GB, free: 13.36 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/0.4883, allocations: 252.4 kB / 0.6641 GB, free: 13.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.096e-05/0.4884, allocations: 16 kB / 0.6642 GB, free: 13.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.4886, allocations: 382.8 kB / 0.6645 GB, free: 12.71 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000529/0.4891, allocations: 301.6 kB / 0.6648 GB, free: 12.42 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005759/0.4897, allocations: 404.3 kB / 0.6652 GB, free: 12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005632/0.4903, allocations: 339.5 kB / 0.6655 GB, free: 11.67 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4903, allocations: 0 / 0.6655 GB, free: 11.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006576/0.4969, allocations: 2.25 MB / 0.6677 GB, free: 9.398 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.4969, allocations: 9.875 kB / 0.6677 GB, free: 9.391 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.4969, allocations: 0 / 0.6677 GB, free: 9.391 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003704/0.5007, allocations: 0.9645 MB / 0.6687 GB, free: 8.418 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006166/0.5013, allocations: 111.8 kB / 0.6688 GB, free: 8.309 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006978/0.5083, allocations: 3.711 MB / 0.6724 GB, free: 4.469 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009062/0.5092, allocations: 119.4 kB / 0.6725 GB, free: 4.352 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.213e-05/0.5093, allocations: 31.94 kB / 0.6725 GB, free: 4.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.0002276/0.5095, allocations: 149.7 kB / 0.6727 GB, free: 4.168 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.5096, allocations: 75.16 kB / 0.6728 GB, free: 4.094 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004738/0.5144, allocations: 1.814 MB / 0.6745 GB, free: 2.262 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.5144, allocations: 8.188 kB / 0.6745 GB, free: 2.254 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.5144, allocations: 4 kB / 0.6745 GB, free: 2.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.5144, allocations: 11.88 kB / 0.6746 GB, free: 2.238 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3233/0.8377, allocations: 2.222 MB / 0.6767 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.761e-05/0.8378, allocations: 0 / 0.6767 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006394/0.8385, allocations: 72.61 kB / 0.6768 GB, free: 113.7 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.004532/0.843, allocations: 1.02 MB / 0.6778 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/0.8432, allocations: 16 kB / 0.6778 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006468/0.8438, allocations: 127.3 kB / 0.6779 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.8438, allocations: 0 / 0.6779 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003595/0.8474, allocations: 1.707 MB / 0.6796 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002363/0.8477, allocations: 153.3 kB / 0.6797 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.8478, allocations: 13.52 kB / 0.6798 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006964/0.8485, allocations: 81.14 kB / 0.6798 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000414/0.8489, allocations: 124.7 kB / 0.6799 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.381e-05/0.849, allocations: 20.7 kB / 0.68 GB, free: 113.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004863/0.8495, allocations: 342.7 kB / 0.6803 GB, free: 113.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.8495, allocations: 3.906 kB / 0.6803 GB, free: 113.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00087/0.8504, allocations: 247.8 kB / 0.6805 GB, free: 113.4 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.0002361/0.8506, allocations: 128.5 kB / 0.6807 GB, free: 113.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003761/0.8544, allocations: 1.471 MB / 0.6821 GB, free: 112.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.8544, allocations: 0 / 0.6821 GB, free: 112.9 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/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3299:9-3299: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:1476:5-1476:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:744:5-744:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]