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.001204/0.001204, allocations: 174.8 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.363/1.363, allocations: 221.4 MB / 234.6 MB, free: 14.46 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.0008136/0.0008136, allocations: 98.5 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4315/0.4315, allocations: 78.03 MB / 414.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.139e-05/3.141e-05, allocations: 4 kB / 491.8 MB, free: 13.91 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3966/0.3967, allocations: 69.34 MB / 0.548 GB, free: 20.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.5097, allocations: 93.28 MB / 0.6391 GB, free: 7.172 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.5099, allocations: 79.95 kB / 0.6391 GB, free: 7.094 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03642/0.5464, allocations: 14.02 MB / 0.6528 GB, free: 8.953 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5464, allocations: 0 / 0.6528 GB, free: 8.953 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.908e-05/0.5464, allocations: 16.16 kB / 0.6528 GB, free: 8.938 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.002794/0.5492, allocations: 1.131 MB / 0.6539 GB, free: 7.754 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.5493, allocations: 15.97 kB / 0.654 GB, free: 7.738 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/0.5509, allocations: 302.7 kB / 0.6542 GB, free: 7.441 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006061/0.5515, allocations: 442.7 kB / 0.6547 GB, free: 6.965 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002248/0.5518, allocations: 209.8 kB / 0.6549 GB, free: 6.73 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.5519, allocations: 52.34 kB / 0.6549 GB, free: 6.68 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.553, allocations: 0.5961 MB / 0.6555 GB, free: 6.078 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.553, allocations: 0 / 0.6555 GB, free: 6.078 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.223e-05/0.5531, allocations: 23.98 kB / 0.6555 GB, free: 6.055 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.5531, allocations: 12 kB / 0.6555 GB, free: 6.043 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.5541, allocations: 0.5597 MB / 0.6561 GB, free: 5.48 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00375/0.5579, allocations: 2.168 MB / 0.6582 GB, free: 3.238 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008099/0.566, allocations: 2.577 MB / 0.6607 GB, free: 0.543 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006377/0.5667, allocations: 398.3 kB / 0.6611 GB, free: 152 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.084e-05/0.5668, allocations: 8.781 kB / 0.6611 GB, free: 144 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007365/0.5675, allocations: 446 kB / 0.6615 GB, free: 15.69 MB / 490.7 MB Notification: Performance of pre-optimization done (n=73): time 2.525e-06/0.5675, allocations: 0 / 0.6615 GB, free: 15.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=73): time 0.004338/0.5719, allocations: 1.552 MB / 0.663 GB, free: 14.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.5719, allocations: 60.19 kB / 0.6631 GB, free: 14.05 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005236/0.5724, allocations: 437.2 kB / 0.6635 GB, free: 13.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.369e-05/0.5725, allocations: 41.7 kB / 0.6636 GB, free: 13.58 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.5727, allocations: 324.6 kB / 0.6639 GB, free: 13.25 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/0.573, allocations: 252.4 kB / 0.6641 GB, free: 13 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.624e-05/0.573, allocations: 16 kB / 0.6641 GB, free: 12.99 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.5732, allocations: 382.8 kB / 0.6645 GB, free: 12.61 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005038/0.5737, allocations: 301.6 kB / 0.6648 GB, free: 12.31 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005738/0.5743, allocations: 408.2 kB / 0.6652 GB, free: 11.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005456/0.5749, allocations: 331.6 kB / 0.6655 GB, free: 11.56 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.5749, allocations: 0 / 0.6655 GB, free: 11.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006544/0.5814, allocations: 2.254 MB / 0.6677 GB, free: 9.289 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.5815, allocations: 13.88 kB / 0.6677 GB, free: 9.277 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.5815, allocations: 0 / 0.6677 GB, free: 9.277 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003556/0.585, allocations: 0.9552 MB / 0.6686 GB, free: 8.312 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005555/0.5856, allocations: 115.8 kB / 0.6687 GB, free: 8.199 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006662/0.5923, allocations: 3.718 MB / 0.6724 GB, free: 4.355 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008418/0.5931, allocations: 119.3 kB / 0.6725 GB, free: 4.238 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.019e-05/0.5932, allocations: 28 kB / 0.6725 GB, free: 4.211 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.0002055/0.5934, allocations: 153.7 kB / 0.6727 GB, free: 4.055 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.5935, allocations: 71.16 kB / 0.6727 GB, free: 3.984 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004759/0.5983, allocations: 1.814 MB / 0.6745 GB, free: 2.152 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.5983, allocations: 8 kB / 0.6745 GB, free: 2.145 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.5983, allocations: 0 / 0.6745 GB, free: 2.145 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.5984, allocations: 7.938 kB / 0.6745 GB, free: 2.137 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2626/0.861, allocations: 2.217 MB / 0.6767 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.123e-05/0.8611, allocations: 1.062 kB / 0.6767 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006189/0.8617, allocations: 74.81 kB / 0.6767 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.004505/0.8662, allocations: 1.024 MB / 0.6777 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001626/0.8664, allocations: 13.39 kB / 0.6778 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006622/0.8671, allocations: 126 kB / 0.6779 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.8671, allocations: 0.5 kB / 0.6779 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003735/0.8708, allocations: 1.709 MB / 0.6796 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/0.8711, allocations: 154.2 kB / 0.6797 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.8713, allocations: 14.66 kB / 0.6797 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008225/0.8721, allocations: 82.67 kB / 0.6798 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004027/0.8726, allocations: 121.2 kB / 0.6799 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.584e-05/0.8726, allocations: 21.28 kB / 0.6799 GB, free: 113.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005617/0.8732, allocations: 345.7 kB / 0.6803 GB, free: 113.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.8732, allocations: 0 / 0.6803 GB, free: 113.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008367/0.8741, allocations: 251.9 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.0002669/0.8743, allocations: 133.9 kB / 0.6806 GB, free: 113.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003613/0.878, allocations: 1.459 MB / 0.6821 GB, free: 112.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.878, allocations: 0 / 0.6821 GB, free: 112.9 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/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]