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.07485/0.07485, allocations: 12.6 MB / 28.9 MB, free: 0.7227 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.001/0.001, allocations: 115.5 kB / 32.51 MB, free: 3.656 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.209/1.209, allocations: 205.1 MB / 241.1 MB, free: 12.36 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.001288/0.001288, allocations: 203.3 kB / 291.4 MB, free: 13.38 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4099/0.4099, allocations: 78.52 MB / 420 MB, free: 11.23 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.002505/0.002505, allocations: 142.5 kB / 0.5565 GB, free: 28.44 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1193, allocations: 68.13 MB / 0.623 GB, free: 15.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004784/0.1242, allocations: 4.417 MB / 0.6273 GB, free: 11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002151/0.1263, allocations: 1.209 MB / 0.6285 GB, free: 9.789 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002597/0.1267, allocations: 4 kB / 0.6285 GB, free: 9.785 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003568/0.127, allocations: 146.8 kB / 0.6287 GB, free: 9.641 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005507/0.1276, allocations: 230 kB / 0.6289 GB, free: 9.414 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.1289, allocations: 0.5823 MB / 0.6295 GB, free: 8.836 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008018/0.1297, allocations: 0.8056 MB / 0.6302 GB, free: 8.023 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.13, allocations: 205.7 kB / 0.6304 GB, free: 7.805 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.1303, allocations: 330.5 kB / 0.6308 GB, free: 7.48 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004335/0.1307, allocations: 406.1 kB / 0.6311 GB, free: 7.082 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.32e-05/0.1308, allocations: 64 kB / 0.6312 GB, free: 7.02 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003097/0.1311, allocations: 131.9 kB / 0.6313 GB, free: 6.891 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.1313, allocations: 171.3 kB / 0.6315 GB, free: 6.723 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003288/0.1316, allocations: 389.7 kB / 0.6319 GB, free: 6.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008499/0.1325, allocations: 0.9069 MB / 0.6327 GB, free: 5.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1325, allocations: 4 kB / 0.6328 GB, free: 5.426 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1325, allocations: 0 / 0.6328 GB, free: 5.426 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.1325, allocations: 3.938 kB / 0.6328 GB, free: 5.422 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.004013/0.1365, allocations: 1.56 MB / 0.6343 GB, free: 3.809 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1366, allocations: 15.98 kB / 0.6343 GB, free: 3.793 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002417/0.139, allocations: 423.1 kB / 0.6347 GB, free: 3.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006607/0.1397, allocations: 0.4942 MB / 0.6352 GB, free: 2.844 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/0.1399, allocations: 205.7 kB / 0.6354 GB, free: 2.609 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.561e-05/0.14, allocations: 59.98 kB / 0.6354 GB, free: 2.551 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.1414, allocations: 0.6897 MB / 0.6361 GB, free: 1.855 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.1414, allocations: 0 / 0.6361 GB, free: 1.855 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.892e-05/0.1415, allocations: 20 kB / 0.6361 GB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.1415, allocations: 19.94 kB / 0.6361 GB, free: 1.816 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.1428, allocations: 0.6727 MB / 0.6368 GB, free: 1.145 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003529/0.1464, allocations: 2.132 MB / 0.6389 GB, free: 14.93 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007321/0.1537, allocations: 2.269 MB / 0.6411 GB, free: 12.55 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000999/0.1548, allocations: 480.5 kB / 0.6416 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.411e-05/0.1549, allocations: 12.64 kB / 0.6416 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001128/0.156, allocations: 0.5313 MB / 0.6421 GB, free: 11.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.065e-06/0.156, allocations: 0 / 0.6421 GB, free: 11.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.006571/0.1626, allocations: 2.455 MB / 0.6445 GB, free: 8.996 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.1627, allocations: 60.06 kB / 0.6445 GB, free: 8.922 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005155/0.1632, allocations: 0.507 MB / 0.645 GB, free: 8.402 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.881e-05/0.1632, allocations: 45.69 kB / 0.6451 GB, free: 8.352 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.1635, allocations: 316.6 kB / 0.6454 GB, free: 8.039 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002041/0.1637, allocations: 252.4 kB / 0.6456 GB, free: 7.789 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.1639, allocations: 118.7 kB / 0.6457 GB, free: 7.668 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.164, allocations: 382.8 kB / 0.6461 GB, free: 7.285 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007996/0.1649, allocations: 401.8 kB / 0.6465 GB, free: 6.895 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008728/0.1657, allocations: 0.4984 MB / 0.647 GB, free: 6.363 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008226/0.174, allocations: 2.514 MB / 0.6494 GB, free: 3.828 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.174, allocations: 0 / 0.6494 GB, free: 3.828 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006508/0.1805, allocations: 2.216 MB / 0.6516 GB, free: 1.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.1806, allocations: 8 kB / 0.6516 GB, free: 1.582 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.1806, allocations: 4 kB / 0.6516 GB, free: 1.578 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00367/0.1842, allocations: 0.9976 MB / 0.6526 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004927/0.1848, allocations: 111.8 kB / 0.6527 GB, free: 472 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008757/0.1935, allocations: 4.51 MB / 0.6571 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007155/0.1943, allocations: 107.3 kB / 0.6572 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.178e-05/0.1944, allocations: 24 kB / 0.6572 GB, free: 11.69 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.0003336/0.1947, allocations: 203.3 kB / 0.6574 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.1948, allocations: 79.05 kB / 0.6575 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004381/0.1992, allocations: 1.694 MB / 0.6591 GB, free: 9.688 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.1993, allocations: 8 kB / 0.6591 GB, free: 9.68 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1993, allocations: 0 / 0.6591 GB, free: 9.68 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.1993, allocations: 7.922 kB / 0.6592 GB, free: 9.672 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004374/0.2037, allocations: 2.435 MB / 0.6615 GB, free: 7.145 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.2037, allocations: 0 / 0.6615 GB, free: 7.145 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003729/0.2041, allocations: 67.91 kB / 0.6616 GB, free: 7.078 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.003919/0.208, allocations: 1.072 MB / 0.6626 GB, free: 5.996 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.2081, allocations: 11.98 kB / 0.6627 GB, free: 5.984 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000527/0.2087, allocations: 104.8 kB / 0.6628 GB, free: 5.879 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2087, allocations: 0 / 0.6628 GB, free: 5.879 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004261/0.2129, allocations: 2.016 MB / 0.6647 GB, free: 3.836 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.2132, allocations: 156 kB / 0.6649 GB, free: 3.664 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.197e-05/0.2133, allocations: 15.94 kB / 0.6649 GB, free: 3.648 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005601/0.2139, allocations: 55.94 kB / 0.6649 GB, free: 3.594 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.2142, allocations: 124.5 kB / 0.6651 GB, free: 3.473 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.333e-05/0.2142, allocations: 20 kB / 0.6651 GB, free: 3.453 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003887/0.2146, allocations: 350.8 kB / 0.6654 GB, free: 3.113 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.763e-06/0.2146, allocations: 0 / 0.6654 GB, free: 3.113 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007071/0.2153, allocations: 239.6 kB / 0.6656 GB, free: 2.879 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.0002117/0.2156, allocations: 123.2 kB / 0.6658 GB, free: 2.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003847/0.2194, allocations: 1.579 MB / 0.6673 GB, free: 1.113 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2194, allocations: 0 / 0.6673 GB, free: 1.113 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3522:9-3522: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1549:5-1549:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]