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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08414/0.08414, allocations: 12.6 MB / 28.9 MB, free: 0.6172 MB / 19.63 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 115.5 kB / 34.51 MB, free: 1.551 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.1 MB / 245.1 MB, free: 12.16 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 184.5 kB / 297.4 MB, free: 8.84 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.452/0.452, allocations: 78.5 MB / 428 MB, free: 9.57 MB / 302.1 MB " [Timeout remaining time 179] 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=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") [Timeout 660] "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.004019/0.004019, allocations: 147.8 kB / 0.5663 GB, free: 16.26 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1305, allocations: 68.13 MB / 0.6329 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005796/0.1363, allocations: 4.41 MB / 0.6372 GB, free: 7.672 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002506/0.1389, allocations: 1.217 MB / 0.6384 GB, free: 6.449 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.1391, allocations: 8 kB / 0.6384 GB, free: 6.441 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003924/0.1395, allocations: 142.8 kB / 0.6385 GB, free: 6.301 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005499/0.1402, allocations: 234 kB / 0.6387 GB, free: 6.07 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001347/0.1415, allocations: 0.5815 MB / 0.6393 GB, free: 5.492 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009513/0.1425, allocations: 0.8017 MB / 0.6401 GB, free: 4.688 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003599/0.1429, allocations: 197.8 kB / 0.6403 GB, free: 4.477 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.1433, allocations: 338.5 kB / 0.6406 GB, free: 4.145 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000546/0.1438, allocations: 414 kB / 0.641 GB, free: 3.738 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.737e-05/0.1439, allocations: 60 kB / 0.641 GB, free: 3.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003856/0.1443, allocations: 131.9 kB / 0.6412 GB, free: 3.551 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.1445, allocations: 163.3 kB / 0.6413 GB, free: 3.391 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004262/0.1449, allocations: 389.8 kB / 0.6417 GB, free: 3.008 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.1463, allocations: 0.9257 MB / 0.6426 GB, free: 2.078 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.1464, allocations: 0 / 0.6426 GB, free: 2.078 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1464, allocations: 4 kB / 0.6426 GB, free: 2.074 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.1464, allocations: 0 / 0.6426 GB, free: 2.074 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.005073/0.1515, allocations: 1.578 MB / 0.6441 GB, free: 452 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.971e-05/0.1516, allocations: 11.98 kB / 0.6441 GB, free: 440 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002668/0.1542, allocations: 435.6 kB / 0.6446 GB, free: 4 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008043/0.1551, allocations: 0.5025 MB / 0.6451 GB, free: 15.46 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002796/0.1553, allocations: 201.8 kB / 0.6452 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.1555, allocations: 52 kB / 0.6453 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.157, allocations: 0.6858 MB / 0.646 GB, free: 14.49 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.157, allocations: 7.938 kB / 0.646 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.216e-05/0.1571, allocations: 24 kB / 0.646 GB, free: 14.46 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.1571, allocations: 19.94 kB / 0.646 GB, free: 14.44 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.1587, allocations: 0.6688 MB / 0.6467 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00404/0.1627, allocations: 2.137 MB / 0.6488 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008476/0.1712, allocations: 2.268 MB / 0.651 GB, free: 9.172 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.1724, allocations: 483.1 kB / 0.6514 GB, free: 8.699 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.385e-05/0.1725, allocations: 8.656 kB / 0.6514 GB, free: 8.691 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001286/0.1738, allocations: 0.5274 MB / 0.652 GB, free: 8.148 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 2.836e-06/0.1738, allocations: 0 / 0.652 GB, free: 8.148 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007816/0.1817, allocations: 2.459 MB / 0.6544 GB, free: 5.621 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.271e-05/0.1818, allocations: 64.05 kB / 0.6544 GB, free: 5.543 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006936/0.1825, allocations: 0.4993 MB / 0.6549 GB, free: 5.031 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.391e-05/0.1826, allocations: 41.7 kB / 0.6549 GB, free: 4.984 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002864/0.1829, allocations: 329.1 kB / 0.6553 GB, free: 4.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/0.1831, allocations: 265.7 kB / 0.6555 GB, free: 4.398 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002517/0.1834, allocations: 118.6 kB / 0.6556 GB, free: 4.277 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.1836, allocations: 382.8 kB / 0.656 GB, free: 3.895 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009684/0.1846, allocations: 405.8 kB / 0.6564 GB, free: 3.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001066/0.1857, allocations: 0.4984 MB / 0.6569 GB, free: 2.969 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009597/0.1953, allocations: 2.514 MB / 0.6593 GB, free: 444 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.1953, allocations: 0 / 0.6593 GB, free: 444 kB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007824/0.2031, allocations: 2.224 MB / 0.6615 GB, free: 14.19 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.2032, allocations: 8 kB / 0.6615 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.2032, allocations: 0 / 0.6615 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004376/0.2076, allocations: 0.9976 MB / 0.6625 GB, free: 13.17 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005682/0.2082, allocations: 107.8 kB / 0.6626 GB, free: 13.07 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/0.2186, allocations: 4.525 MB / 0.667 GB, free: 8.406 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008578/0.2195, allocations: 103.5 kB / 0.6671 GB, free: 8.305 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.248e-05/0.2196, allocations: 24 kB / 0.6671 GB, free: 8.281 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.0003721/0.22, allocations: 197.8 kB / 0.6673 GB, free: 8.078 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.2201, allocations: 79.48 kB / 0.6674 GB, free: 8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005024/0.2251, allocations: 1.694 MB / 0.669 GB, free: 6.285 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.2252, allocations: 8 kB / 0.669 GB, free: 6.277 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.2252, allocations: 4 kB / 0.669 GB, free: 6.273 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.2252, allocations: 7.922 kB / 0.6691 GB, free: 6.266 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004969/0.2302, allocations: 2.431 MB / 0.6714 GB, free: 3.742 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.2302, allocations: 4 kB / 0.6714 GB, free: 3.738 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003964/0.2306, allocations: 67.91 kB / 0.6715 GB, free: 3.672 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.004489/0.2351, allocations: 1.069 MB / 0.6725 GB, free: 2.594 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-05/0.2352, allocations: 19.98 kB / 0.6726 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000599/0.2358, allocations: 100.7 kB / 0.6727 GB, free: 2.473 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2358, allocations: 4 kB / 0.6727 GB, free: 2.469 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004918/0.2407, allocations: 2.02 MB / 0.6746 GB, free: 428 kB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.241, allocations: 156.5 kB / 0.6748 GB, free: 252 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.2411, allocations: 23.88 kB / 0.6748 GB, free: 228 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006386/0.2417, allocations: 55.94 kB / 0.6749 GB, free: 172 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003378/0.2421, allocations: 124.5 kB / 0.675 GB, free: 48 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-05/0.2422, allocations: 16 kB / 0.675 GB, free: 32 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004584/0.2426, allocations: 354.9 kB / 0.6753 GB, free: 15.68 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2426, allocations: 0 / 0.6753 GB, free: 15.68 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007247/0.2434, allocations: 231.8 kB / 0.6755 GB, free: 15.46 MB / 494.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.0002059/0.2436, allocations: 123.2 kB / 0.6757 GB, free: 15.33 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004352/0.2479, allocations: 1.583 MB / 0.6772 GB, free: 13.69 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2479, allocations: 0 / 0.6772 GB, free: 13.69 MB / 494.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] " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 3.2843622798100114]