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.001463/0.001463, allocations: 176.2 kB / 7.643 MB, free: 1.414 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.345/1.345, allocations: 221.5 MB / 229.6 MB, free: 7.582 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.0009934/0.0009933, allocations: 91.3 kB / 280.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4854/0.4854, allocations: 78.07 MB / 409.3 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.982e-05/1.985e-05, allocations: 0 / 484.9 MB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1708, allocations: 69.36 MB / 0.5413 GB, free: 6.859 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.416/0.5868, allocations: 92.61 MB / 0.6317 GB, free: 7.012 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.587, allocations: 75.95 kB / 0.6318 GB, free: 6.938 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03771/0.6248, allocations: 13.85 MB / 0.6453 GB, free: 9.164 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6248, allocations: 8 kB / 0.6453 GB, free: 9.156 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.516e-05/0.6248, allocations: 12 kB / 0.6453 GB, free: 9.145 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.003074/0.6279, allocations: 1.124 MB / 0.6464 GB, free: 7.977 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.628, allocations: 16.03 kB / 0.6464 GB, free: 7.961 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001754/0.6297, allocations: 302.7 kB / 0.6467 GB, free: 7.664 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007588/0.6305, allocations: 446.7 kB / 0.6472 GB, free: 7.188 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002515/0.6308, allocations: 181.8 kB / 0.6473 GB, free: 6.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.6309, allocations: 32 kB / 0.6474 GB, free: 6.949 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001019/0.6319, allocations: 0.5414 MB / 0.6479 GB, free: 6.41 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009858/0.6329, allocations: 0.5154 MB / 0.6484 GB, free: 5.887 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.633, allocations: 7.938 kB / 0.6484 GB, free: 5.879 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.795e-05/0.633, allocations: 0 / 0.6484 GB, free: 5.879 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.633, allocations: 12 kB / 0.6484 GB, free: 5.867 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003922/0.637, allocations: 2.08 MB / 0.6504 GB, free: 3.723 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0082/0.6452, allocations: 2.544 MB / 0.6529 GB, free: 1.062 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007034/0.6459, allocations: 370 kB / 0.6533 GB, free: 0.6992 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/0.646, allocations: 14.17 kB / 0.6533 GB, free: 0.6875 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008465/0.6469, allocations: 412.5 kB / 0.6537 GB, free: 280 kB / 458.7 MB Notification: Performance of pre-optimization done (n=73): time 3.186e-06/0.6469, allocations: 0 / 0.6537 GB, free: 280 kB / 458.7 MB Notification: Performance of matching and sorting (n=73): time 0.004536/0.6515, allocations: 1.494 MB / 0.6552 GB, free: 14.76 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.796e-05/0.6516, allocations: 64.19 kB / 0.6552 GB, free: 14.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007878/0.6524, allocations: 414.5 kB / 0.6556 GB, free: 14.27 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001058/0.6525, allocations: 29.64 kB / 0.6556 GB, free: 14.24 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.6528, allocations: 324.6 kB / 0.6559 GB, free: 13.92 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003008/0.6531, allocations: 240.5 kB / 0.6562 GB, free: 13.68 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.76e-05/0.6532, allocations: 0 / 0.6562 GB, free: 13.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.6534, allocations: 378.8 kB / 0.6565 GB, free: 13.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005314/0.6539, allocations: 293.6 kB / 0.6568 GB, free: 13.02 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000607/0.6545, allocations: 394.7 kB / 0.6572 GB, free: 12.61 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005476/0.6551, allocations: 314.1 kB / 0.6575 GB, free: 12.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.6551, allocations: 9.156 kB / 0.6575 GB, free: 12.29 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006542/0.6617, allocations: 2.176 MB / 0.6596 GB, free: 10.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.6617, allocations: 8 kB / 0.6596 GB, free: 10.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.6617, allocations: 0 / 0.6596 GB, free: 10.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003541/0.6653, allocations: 0.9479 MB / 0.6606 GB, free: 9.133 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005633/0.6659, allocations: 111.8 kB / 0.6607 GB, free: 9.023 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006686/0.6726, allocations: 3.578 MB / 0.6642 GB, free: 5.332 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008572/0.6735, allocations: 103.4 kB / 0.6643 GB, free: 5.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00012/0.6736, allocations: 31.98 kB / 0.6643 GB, free: 5.199 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.0002905/0.6739, allocations: 131.5 kB / 0.6644 GB, free: 5.066 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.6741, allocations: 71.16 kB / 0.6645 GB, free: 4.996 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004554/0.6786, allocations: 1.734 MB / 0.6662 GB, free: 3.246 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.6787, allocations: 12 kB / 0.6662 GB, free: 3.234 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.6787, allocations: 0 / 0.6662 GB, free: 3.234 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.6787, allocations: 3.984 kB / 0.6662 GB, free: 3.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003746/0.6824, allocations: 2.094 MB / 0.6682 GB, free: 1.055 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.6825, allocations: 0 / 0.6682 GB, free: 1.055 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003931/0.6829, allocations: 75.89 kB / 0.6683 GB, free: 0.9805 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.003698/0.6866, allocations: 1.015 MB / 0.6693 GB, free: 15.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.457e-05/0.6866, allocations: 4 kB / 0.6693 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005975/0.6873, allocations: 128.7 kB / 0.6694 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.6873, allocations: 0 / 0.6694 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002973/0.6902, allocations: 1.645 MB / 0.671 GB, free: 14.15 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002443/0.6905, allocations: 149.7 kB / 0.6712 GB, free: 13.99 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.6907, allocations: 6.062 kB / 0.6712 GB, free: 13.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006706/0.6913, allocations: 67.94 kB / 0.6712 GB, free: 13.92 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.6916, allocations: 120.5 kB / 0.6714 GB, free: 13.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.064e-05/0.6917, allocations: 24 kB / 0.6714 GB, free: 13.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004159/0.6921, allocations: 314.9 kB / 0.6717 GB, free: 13.47 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6921, allocations: 0 / 0.6717 GB, free: 13.47 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008462/0.693, allocations: 215.7 kB / 0.6719 GB, free: 13.26 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.0002554/0.6932, allocations: 130.9 kB / 0.672 GB, free: 13.12 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003263/0.6965, allocations: 1.421 MB / 0.6734 GB, free: 11.65 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.6965, allocations: 0.5 kB / 0.6734 GB, free: 11.65 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: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]