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.001403/0.001403, allocations: 174.2 kB / 7.647 MB, free: 1.422 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.47/1.47, allocations: 221.5 MB / 229.6 MB, free: 7.559 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.0008552/0.0008552, allocations: 86.12 kB / 280.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5059/0.5059, allocations: 78.12 MB / 409.4 MB, free: 6.422 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.779e-05/1.768e-05, allocations: 7.938 kB / 485 MB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1214, allocations: 69.35 MB / 0.5413 GB, free: 6.918 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3812/0.5026, allocations: 92.61 MB / 0.6318 GB, free: 7.113 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.5028, allocations: 75.95 kB / 0.6318 GB, free: 7.039 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0352/0.538, allocations: 13.85 MB / 0.6454 GB, free: 9.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.5381, allocations: 0 / 0.6454 GB, free: 9.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.568e-05/0.5381, allocations: 16 kB / 0.6454 GB, free: 9.254 MB / 458.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.002652/0.5407, allocations: 1.127 MB / 0.6465 GB, free: 8.082 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.5408, allocations: 8.031 kB / 0.6465 GB, free: 8.074 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001626/0.5424, allocations: 307.8 kB / 0.6468 GB, free: 7.773 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005382/0.543, allocations: 447.8 kB / 0.6472 GB, free: 7.297 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002065/0.5432, allocations: 181.8 kB / 0.6474 GB, free: 7.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.719e-05/0.5433, allocations: 32 kB / 0.6474 GB, free: 7.059 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009043/0.5442, allocations: 0.534 MB / 0.6479 GB, free: 6.523 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008591/0.5451, allocations: 0.5193 MB / 0.6484 GB, free: 5.996 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.5451, allocations: 0 / 0.6484 GB, free: 5.996 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.943e-05/0.5452, allocations: 7.984 kB / 0.6484 GB, free: 5.988 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.5452, allocations: 12 kB / 0.6485 GB, free: 5.977 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003351/0.5485, allocations: 2.088 MB / 0.6505 GB, free: 3.824 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007946/0.5565, allocations: 2.546 MB / 0.653 GB, free: 1.168 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005429/0.5571, allocations: 364.8 kB / 0.6533 GB, free: 0.8086 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001006/0.5572, allocations: 12.77 kB / 0.6533 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006577/0.5578, allocations: 407.5 kB / 0.6537 GB, free: 400 kB / 458.7 MB Notification: Performance of pre-optimization done (n=73): time 2.535e-06/0.5579, allocations: 4 kB / 0.6537 GB, free: 396 kB / 458.7 MB Notification: Performance of matching and sorting (n=73): time 0.0042/0.5621, allocations: 1.502 MB / 0.6552 GB, free: 14.86 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.5621, allocations: 64.19 kB / 0.6553 GB, free: 14.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004607/0.5626, allocations: 410.6 kB / 0.6556 GB, free: 14.38 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.92e-05/0.5626, allocations: 29.69 kB / 0.6557 GB, free: 14.35 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002046/0.5629, allocations: 320.6 kB / 0.656 GB, free: 14.03 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001966/0.5631, allocations: 245.1 kB / 0.6562 GB, free: 13.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.666e-05/0.5631, allocations: 0 / 0.6562 GB, free: 13.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.5633, allocations: 378.8 kB / 0.6566 GB, free: 13.41 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004678/0.5637, allocations: 293.6 kB / 0.6569 GB, free: 13.12 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005058/0.5642, allocations: 386.7 kB / 0.6572 GB, free: 12.72 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000482/0.5647, allocations: 322 kB / 0.6575 GB, free: 12.41 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.5647, allocations: 4.562 kB / 0.6575 GB, free: 12.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00649/0.5712, allocations: 2.176 MB / 0.6597 GB, free: 10.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.5713, allocations: 8 kB / 0.6597 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.5713, allocations: 0 / 0.6597 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003683/0.575, allocations: 0.9479 MB / 0.6606 GB, free: 9.246 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005803/0.5756, allocations: 111.8 kB / 0.6607 GB, free: 9.137 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006632/0.5822, allocations: 3.591 MB / 0.6642 GB, free: 5.434 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008734/0.5831, allocations: 99.38 kB / 0.6643 GB, free: 5.336 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.174e-05/0.5832, allocations: 28 kB / 0.6643 GB, free: 5.309 MB / 474.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.0002454/0.5835, allocations: 132 kB / 0.6645 GB, free: 5.176 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.5836, allocations: 75.16 kB / 0.6645 GB, free: 5.102 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004674/0.5883, allocations: 1.725 MB / 0.6662 GB, free: 3.359 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.5883, allocations: 8 kB / 0.6662 GB, free: 3.352 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.5883, allocations: 4 kB / 0.6662 GB, free: 3.348 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.5883, allocations: 3.984 kB / 0.6662 GB, free: 3.344 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/0.5917, allocations: 2.095 MB / 0.6683 GB, free: 1.168 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.5917, allocations: 0 / 0.6683 GB, free: 1.168 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.5921, allocations: 67.91 kB / 0.6683 GB, free: 1.102 MB / 474.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.003785/0.5959, allocations: 1.022 MB / 0.6693 GB, free: 72 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.219e-05/0.596, allocations: 4 kB / 0.6693 GB, free: 68 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006262/0.5966, allocations: 128.7 kB / 0.6695 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.5966, allocations: 0 / 0.6695 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00308/0.5997, allocations: 1.641 MB / 0.6711 GB, free: 14.27 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.5999, allocations: 152.1 kB / 0.6712 GB, free: 14.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.6, allocations: 4 kB / 0.6712 GB, free: 14.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000628/0.6006, allocations: 71.88 kB / 0.6713 GB, free: 14.03 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/0.6009, allocations: 116.6 kB / 0.6714 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-05/0.601, allocations: 25.86 kB / 0.6714 GB, free: 13.89 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00034/0.6013, allocations: 318.9 kB / 0.6717 GB, free: 13.58 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.395e-06/0.6013, allocations: 1.125 kB / 0.6717 GB, free: 13.58 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007394/0.6021, allocations: 219.6 kB / 0.6719 GB, free: 13.37 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.0002362/0.6023, allocations: 128.4 kB / 0.6721 GB, free: 13.23 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003135/0.6055, allocations: 1.417 MB / 0.6734 GB, free: 11.76 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6055, allocations: 0 / 0.6734 GB, free: 11.76 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:3197:9-3197: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/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1369:5-1369:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]