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-master/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-master/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-master/package.mo): time 0.1106/0.1106, allocations: 12.59 MB / 28.22 MB, free: 0.7305 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 111.4 kB / 31.84 MB, free: 3.875 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.567/1.567, allocations: 205.1 MB / 240.4 MB, free: 12.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 196.4 kB / 290.7 MB, free: 13.4 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4917/0.4917, allocations: 78.5 MB / 419.3 MB, free: 11.26 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.002587/0.002587, allocations: 138.1 kB / 0.5558 GB, free: 28.69 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1555, allocations: 68.13 MB / 0.6224 GB, free: 15.58 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005527/0.161, allocations: 4.417 MB / 0.6267 GB, free: 11.14 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002487/0.1636, allocations: 1.209 MB / 0.6279 GB, free: 9.926 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002451/0.1638, allocations: 7.938 kB / 0.6279 GB, free: 9.918 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004104/0.1643, allocations: 150.8 kB / 0.628 GB, free: 9.77 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005462/0.1648, allocations: 258 kB / 0.6283 GB, free: 9.516 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001247/0.1661, allocations: 0.5801 MB / 0.6288 GB, free: 8.938 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000762/0.1669, allocations: 0.8056 MB / 0.6296 GB, free: 8.125 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003133/0.1672, allocations: 201.7 kB / 0.6298 GB, free: 7.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003238/0.1675, allocations: 330.6 kB / 0.6301 GB, free: 7.586 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004772/0.168, allocations: 418 kB / 0.6305 GB, free: 7.176 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.089e-05/0.1681, allocations: 64 kB / 0.6306 GB, free: 7.113 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003202/0.1684, allocations: 131.9 kB / 0.6307 GB, free: 6.984 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.1686, allocations: 163.3 kB / 0.6309 GB, free: 6.824 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003573/0.1689, allocations: 389.7 kB / 0.6312 GB, free: 6.441 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001043/0.17, allocations: 0.9141 MB / 0.6321 GB, free: 5.523 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.17, allocations: 0 / 0.6321 GB, free: 5.523 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.17, allocations: 4 kB / 0.6321 GB, free: 5.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.17, allocations: 4 kB / 0.6321 GB, free: 5.516 MB / 446.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.004346/0.1744, allocations: 1.582 MB / 0.6337 GB, free: 3.879 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1744, allocations: 15.98 kB / 0.6337 GB, free: 3.863 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002545/0.177, allocations: 431.6 kB / 0.6341 GB, free: 3.441 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007037/0.1777, allocations: 0.5103 MB / 0.6346 GB, free: 2.891 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002473/0.178, allocations: 197.8 kB / 0.6348 GB, free: 2.664 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.1781, allocations: 52 kB / 0.6348 GB, free: 2.613 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.1795, allocations: 0.6858 MB / 0.6355 GB, free: 1.922 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1795, allocations: 0 / 0.6355 GB, free: 1.922 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-05/0.1796, allocations: 28 kB / 0.6355 GB, free: 1.895 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.409e-05/0.1796, allocations: 15.94 kB / 0.6355 GB, free: 1.879 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001418/0.181, allocations: 0.6727 MB / 0.6362 GB, free: 1.207 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003704/0.1848, allocations: 2.133 MB / 0.6383 GB, free: 14.99 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007715/0.1925, allocations: 2.265 MB / 0.6405 GB, free: 12.61 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001037/0.1936, allocations: 484.5 kB / 0.641 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.531e-05/0.1937, allocations: 16.64 kB / 0.641 GB, free: 12.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.1948, allocations: 0.5313 MB / 0.6415 GB, free: 11.58 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 2.886e-06/0.1948, allocations: 0 / 0.6415 GB, free: 11.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007094/0.2019, allocations: 2.463 MB / 0.6439 GB, free: 9.047 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.402e-05/0.2021, allocations: 60.06 kB / 0.644 GB, free: 8.973 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007655/0.2028, allocations: 0.507 MB / 0.6445 GB, free: 8.453 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.831e-05/0.2029, allocations: 41.7 kB / 0.6445 GB, free: 8.406 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.2032, allocations: 329.1 kB / 0.6448 GB, free: 8.082 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002682/0.2035, allocations: 257.7 kB / 0.6451 GB, free: 7.828 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002377/0.2037, allocations: 126.6 kB / 0.6452 GB, free: 7.699 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.204, allocations: 382.8 kB / 0.6455 GB, free: 7.316 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008961/0.2049, allocations: 409.7 kB / 0.6459 GB, free: 6.918 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009515/0.2058, allocations: 0.4907 MB / 0.6464 GB, free: 6.395 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00875/0.2146, allocations: 2.518 MB / 0.6489 GB, free: 3.855 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.2146, allocations: 0 / 0.6489 GB, free: 3.855 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007131/0.2218, allocations: 2.22 MB / 0.651 GB, free: 1.613 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.2218, allocations: 4 kB / 0.651 GB, free: 1.609 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.2219, allocations: 4 kB / 0.651 GB, free: 1.605 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003917/0.2258, allocations: 0.9976 MB / 0.652 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005866/0.2264, allocations: 107.8 kB / 0.6521 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009429/0.2358, allocations: 4.507 MB / 0.6565 GB, free: 11.85 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008916/0.2368, allocations: 103.5 kB / 0.6566 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.2369, allocations: 28 kB / 0.6566 GB, free: 11.72 MB / 478.1 MB Warning: Assuming fixed start value for the following 2 variables: load.xp:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xq: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 ($PRE.ultc.zeroCrossing.enable,$PRE.ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.enable,ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.zeroCrossing.y,ultc.m,$PRE.ultc.m,$whenCondition2,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,11)} Notification: Performance of prepare postOptimizeDAE: time 0.000505/0.2374, allocations: 207.5 kB / 0.6568 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.2377, allocations: 79.48 kB / 0.6569 GB, free: 11.43 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004832/0.2425, allocations: 1.686 MB / 0.6586 GB, free: 9.727 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.2425, allocations: 15.94 kB / 0.6586 GB, free: 9.711 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.2425, allocations: 0 / 0.6586 GB, free: 9.711 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.2426, allocations: 11.86 kB / 0.6586 GB, free: 9.699 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004877/0.2474, allocations: 2.431 MB / 0.661 GB, free: 7.176 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.2475, allocations: 0 / 0.661 GB, free: 7.176 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004122/0.2479, allocations: 75.89 kB / 0.661 GB, free: 7.102 MB / 478.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.004127/0.252, allocations: 1.064 MB / 0.6621 GB, free: 6.027 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.088e-05/0.2521, allocations: 16 kB / 0.6621 GB, free: 6.012 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005581/0.2527, allocations: 100.7 kB / 0.6622 GB, free: 5.91 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.2527, allocations: 0 / 0.6622 GB, free: 5.91 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004737/0.2575, allocations: 2.02 MB / 0.6642 GB, free: 3.863 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004103/0.2579, allocations: 152.5 kB / 0.6643 GB, free: 3.695 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.2581, allocations: 23.92 kB / 0.6643 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000737/0.2588, allocations: 59.94 kB / 0.6644 GB, free: 3.613 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003784/0.2592, allocations: 116.5 kB / 0.6645 GB, free: 3.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.604e-05/0.2593, allocations: 20 kB / 0.6645 GB, free: 3.48 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005474/0.2599, allocations: 354.8 kB / 0.6649 GB, free: 3.137 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2599, allocations: 0 / 0.6649 GB, free: 3.137 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.000979/0.2608, allocations: 239.8 kB / 0.6651 GB, free: 2.902 MB / 478.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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002826/0.2611, allocations: 123.3 kB / 0.6652 GB, free: 2.773 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004212/0.2654, allocations: 1.583 MB / 0.6667 GB, free: 1.133 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.2654, allocations: 0 / 0.6667 GB, free: 1.133 MB / 478.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:3521:9-3521: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:1548:5-1548:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]