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/Modelica_Synchronous 0.93.0/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/Modelica 3.2.3+maint.om/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07613/0.07613, allocations: 12.21 MB / 27.16 MB, free: 112 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009339/0.000934, allocations: 110 kB / 30.67 MB, free: 6.422 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.4 MB / 239.5 MB, free: 10.68 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 173.2 kB / 290.6 MB, free: 8.105 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3722/0.3722, allocations: 78.5 MB / 420.1 MB, free: 6.582 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008116/0.0008117, allocations: 25.47 kB / 0.4894 GB, free: 37.81 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09373/0.09455, allocations: 69.26 MB / 0.557 GB, free: 8.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003665/0.09825, allocations: 3.837 MB / 0.5608 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.1004, allocations: 1.198 MB / 0.5619 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004007/0.1008, allocations: 4 kB / 0.5619 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003189/0.1011, allocations: 107.2 kB / 0.562 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005126/0.1016, allocations: 247.1 kB / 0.5623 GB, free: 3.449 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.1027, allocations: 486.3 kB / 0.5627 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005132/0.1032, allocations: 0.5305 MB / 0.5633 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002364/0.1034, allocations: 157.2 kB / 0.5634 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.1037, allocations: 290.8 kB / 0.5637 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003505/0.104, allocations: 350.4 kB / 0.564 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.059e-05/0.1041, allocations: 36 kB / 0.5641 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.1043, allocations: 91.95 kB / 0.5641 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.887e-05/0.1044, allocations: 127.4 kB / 0.5643 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.1045, allocations: 153.3 kB / 0.5644 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005374/0.1051, allocations: 0.6353 MB / 0.565 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1051, allocations: 0 / 0.565 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1051, allocations: 0 / 0.565 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1051, allocations: 0 / 0.565 GB, free: 0.6016 MB / 382.1 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.003857/0.109, allocations: 1.458 MB / 0.5665 GB, free: 15.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.109, allocations: 15.98 kB / 0.5665 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002393/0.1114, allocations: 426.6 kB / 0.5669 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005878/0.112, allocations: 490.6 kB / 0.5674 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/0.1122, allocations: 213.7 kB / 0.5676 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.898e-05/0.1123, allocations: 55.91 kB / 0.5676 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.1136, allocations: 0.7248 MB / 0.5683 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.1137, allocations: 0 / 0.5683 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.429e-05/0.1137, allocations: 23.98 kB / 0.5683 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.1138, allocations: 12 kB / 0.5683 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.1151, allocations: 0.7118 MB / 0.569 GB, free: 12.36 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003358/0.1184, allocations: 2.369 MB / 0.5714 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007823/0.1263, allocations: 2.747 MB / 0.574 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.221e-05/0.1263, allocations: 12.66 kB / 0.5741 GB, free: 6.996 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001053/0.1274, allocations: 0.5587 MB / 0.5746 GB, free: 6.422 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 8.917e-06/0.1274, allocations: 0 / 0.5746 GB, free: 6.422 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.00716/0.1346, allocations: 2.832 MB / 0.5774 GB, free: 3.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.1346, allocations: 60.06 kB / 0.5774 GB, free: 3.445 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004873/0.1351, allocations: 0.507 MB / 0.5779 GB, free: 2.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.075e-05/0.1352, allocations: 41.7 kB / 0.578 GB, free: 2.883 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.1354, allocations: 320.6 kB / 0.5783 GB, free: 2.562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.1356, allocations: 252.3 kB / 0.5785 GB, free: 2.312 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.7e-05/0.1357, allocations: 16 kB / 0.5785 GB, free: 2.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1358, allocations: 386.7 kB / 0.5789 GB, free: 1.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008627/0.1367, allocations: 441.8 kB / 0.5793 GB, free: 1.477 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009165/0.1376, allocations: 0.5336 MB / 0.5798 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008853/0.1385, allocations: 468.8 kB / 0.5803 GB, free: 468 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1385, allocations: 0 / 0.5803 GB, free: 468 kB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007243/0.1458, allocations: 2.634 MB / 0.5828 GB, free: 13.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1458, allocations: 11.94 kB / 0.5829 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.1458, allocations: 0 / 0.5829 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004013/0.1498, allocations: 1.185 MB / 0.584 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004564/0.1503, allocations: 107.8 kB / 0.5841 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008845/0.1592, allocations: 4.678 MB / 0.5887 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006692/0.1599, allocations: 119.4 kB / 0.5888 GB, free: 7.574 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.1599, allocations: 20 kB / 0.5888 GB, free: 7.555 MB / 414.1 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xp:VARIABLE(start = 0.0 fixed = true 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 () * Number of clocked 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.0003017/0.1602, allocations: 209.7 kB / 0.589 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.1603, allocations: 75.06 kB / 0.5891 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004776/0.1651, allocations: 1.956 MB / 0.591 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-06/0.1652, allocations: 8 kB / 0.591 GB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.1652, allocations: 0 / 0.591 GB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.1652, allocations: 3.984 kB / 0.591 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004402/0.1696, allocations: 2.601 MB / 0.5936 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1696, allocations: 4 kB / 0.5936 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003593/0.17, allocations: 75.84 kB / 0.5936 GB, free: 2.508 MB / 414.1 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.004154/0.1741, allocations: 1.253 MB / 0.5949 GB, free: 1.246 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.298e-05/0.1742, allocations: 12 kB / 0.5949 GB, free: 1.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005697/0.1748, allocations: 136.7 kB / 0.595 GB, free: 1.098 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1748, allocations: 0 / 0.595 GB, free: 1.098 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/0.179, allocations: 2.222 MB / 0.5972 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.1792, allocations: 148.2 kB / 0.5973 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.348e-05/0.1793, allocations: 16 kB / 0.5973 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000595/0.1799, allocations: 83.92 kB / 0.5974 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002514/0.1801, allocations: 116.4 kB / 0.5975 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.975e-05/0.1802, allocations: 20 kB / 0.5975 GB, free: 14.45 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003421/0.1805, allocations: 346.8 kB / 0.5979 GB, free: 14.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1805, allocations: 0 / 0.5979 GB, free: 14.12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000661/0.1812, allocations: 247.6 kB / 0.5981 GB, free: 13.88 MB / 430.1 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) * Number of clocked states: 0 () * 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.0001626/0.1814, allocations: 111.2 kB / 0.5982 GB, free: 13.76 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003744/0.1851, allocations: 1.747 MB / 0.5999 GB, free: 11.95 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1851, allocations: 0.5 kB / 0.5999 GB, free: 11.95 MB / 430.1 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/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3336:9-3336:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {27:8}, {26:7}, {24:3}, {30:5}, {21:66}, {20:33}, {14:29}, {15:67}, {9:20}, {5:21}}, {8, 6, 7, 13, 22, 31, 25, 29, 28, 12, 10, 11, 18, 19, 17, 16:35, 53, 11, 52, 10, 47, 46, 30, 12, 13, 40, 41, 43, 42, 45, 44} Size: 16 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1480:5-1480:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]