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.09518/0.09518, allocations: 12.78 MB / 29.8 MB, free: 6.34 MB / 26.18 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.001517/0.001517, allocations: 123.4 kB / 35.58 MB, free: 1.078 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.607/1.607, allocations: 207.6 MB / 248.9 MB, free: 7.617 MB / 190.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.002158/0.002158, allocations: 196.4 kB / 303.8 MB, free: 1.035 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.3212/0.3212, allocations: 79.71 MB / 438.3 MB, free: 13.2 MB / 318.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.003985/0.003985, allocations: 151.8 kB / 0.5839 GB, free: 11.02 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1645, allocations: 72 MB / 0.6542 GB, free: 2.949 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.358/0.5225, allocations: 4.427 MB / 0.6585 GB, free: 9.461 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002529/0.525, allocations: 1.216 MB / 0.6597 GB, free: 9.055 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003123/0.5253, allocations: 10.78 kB / 0.6597 GB, free: 9.051 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004534/0.5258, allocations: 136.5 kB / 0.6599 GB, free: 8.984 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007169/0.5265, allocations: 272.3 kB / 0.6601 GB, free: 8.836 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.5279, allocations: 0.5795 MB / 0.6607 GB, free: 8.66 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009557/0.5289, allocations: 0.8048 MB / 0.6615 GB, free: 8.453 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003223/0.5292, allocations: 141 kB / 0.6616 GB, free: 8.406 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.5296, allocations: 331.5 kB / 0.6619 GB, free: 8.316 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005723/0.5302, allocations: 420.2 kB / 0.6623 GB, free: 8.195 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.5303, allocations: 62.38 kB / 0.6624 GB, free: 8.195 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003576/0.5306, allocations: 133.3 kB / 0.6625 GB, free: 8.188 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.5308, allocations: 164.7 kB / 0.6627 GB, free: 8.145 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003058/0.5311, allocations: 392.8 kB / 0.663 GB, free: 7.996 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009804/0.5321, allocations: 0.9151 MB / 0.6639 GB, free: 7.578 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.5321, allocations: 0 / 0.6639 GB, free: 7.578 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5321, allocations: 0.5 kB / 0.6639 GB, free: 7.578 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.5321, allocations: 5.344 kB / 0.6639 GB, free: 7.574 MB / 462.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.004381/0.5365, allocations: 1.588 MB / 0.6655 GB, free: 6.719 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.5365, allocations: 13.64 kB / 0.6655 GB, free: 6.715 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002625/0.5391, allocations: 432.7 kB / 0.6659 GB, free: 6.621 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006537/0.5398, allocations: 0.5041 MB / 0.6664 GB, free: 6.223 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002306/0.54, allocations: 196 kB / 0.6666 GB, free: 6.043 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.5401, allocations: 55.44 kB / 0.6667 GB, free: 6.023 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.5417, allocations: 0.6884 MB / 0.6673 GB, free: 5.766 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.5417, allocations: 3.516 kB / 0.6673 GB, free: 5.766 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/0.5417, allocations: 30.31 kB / 0.6674 GB, free: 5.742 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.5418, allocations: 14.78 kB / 0.6674 GB, free: 5.738 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.5432, allocations: 0.6705 MB / 0.668 GB, free: 5.52 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003852/0.547, allocations: 2.137 MB / 0.6701 GB, free: 4.312 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00776/0.5548, allocations: 2.194 MB / 0.6723 GB, free: 3.414 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.5558, allocations: 430.5 kB / 0.6727 GB, free: 3.262 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.041e-05/0.5559, allocations: 15.16 kB / 0.6727 GB, free: 3.258 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/0.5571, allocations: 0.5215 MB / 0.6732 GB, free: 3.047 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.476e-06/0.5571, allocations: 0 / 0.6732 GB, free: 3.047 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007241/0.5644, allocations: 2.44 MB / 0.6756 GB, free: 2.129 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.5644, allocations: 64.64 kB / 0.6756 GB, free: 2.059 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006817/0.5651, allocations: 0.5021 MB / 0.6761 GB, free: 1.828 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.78e-05/0.5651, allocations: 43.7 kB / 0.6762 GB, free: 1.785 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002205/0.5654, allocations: 339.4 kB / 0.6765 GB, free: 1.512 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002254/0.5656, allocations: 254.2 kB / 0.6767 GB, free: 1.312 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.5658, allocations: 121.4 kB / 0.6768 GB, free: 1.246 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.5659, allocations: 386 kB / 0.6772 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008547/0.5668, allocations: 406.9 kB / 0.6776 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009482/0.5677, allocations: 0.4926 MB / 0.6781 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/0.5779, allocations: 2.52 MB / 0.6805 GB, free: 15.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.777e-06/0.5779, allocations: 1 kB / 0.6805 GB, free: 15.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.008019/0.5859, allocations: 2.204 MB / 0.6827 GB, free: 15.14 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/0.5859, allocations: 5.5 kB / 0.6827 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.5859, allocations: 2.75 kB / 0.6827 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004237/0.5902, allocations: 0.9922 MB / 0.6837 GB, free: 14.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006109/0.5908, allocations: 110.2 kB / 0.6838 GB, free: 14.65 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.6015, allocations: 4.521 MB / 0.6882 GB, free: 11.47 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.6025, allocations: 94.22 kB / 0.6883 GB, free: 11.42 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.388e-05/0.6026, allocations: 30.98 kB / 0.6883 GB, free: 11.41 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.000485/0.6031, allocations: 206.9 kB / 0.6885 GB, free: 11.23 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.6032, allocations: 79.98 kB / 0.6886 GB, free: 11.18 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005108/0.6083, allocations: 1.668 MB / 0.6902 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.6083, allocations: 12.27 kB / 0.6902 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.6084, allocations: 1.125 kB / 0.6902 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.6084, allocations: 5.281 kB / 0.6902 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005185/0.6136, allocations: 2.424 MB / 0.6926 GB, free: 8.625 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.6136, allocations: 0 / 0.6926 GB, free: 8.625 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004149/0.614, allocations: 73.11 kB / 0.6927 GB, free: 8.605 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.004424/0.6184, allocations: 1.064 MB / 0.6937 GB, free: 8.113 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-05/0.6185, allocations: 15.41 kB / 0.6937 GB, free: 8.102 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005761/0.6191, allocations: 102.4 kB / 0.6938 GB, free: 8.055 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.6191, allocations: 5.172 kB / 0.6938 GB, free: 8.051 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004896/0.624, allocations: 1.993 MB / 0.6958 GB, free: 6.961 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003434/0.6243, allocations: 155.8 kB / 0.6959 GB, free: 6.809 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.6244, allocations: 20.94 kB / 0.6959 GB, free: 6.793 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006518/0.6251, allocations: 53.28 kB / 0.696 GB, free: 6.77 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003201/0.6254, allocations: 118 kB / 0.6961 GB, free: 6.699 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.065e-05/0.6255, allocations: 24.58 kB / 0.6961 GB, free: 6.691 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004824/0.6259, allocations: 359 kB / 0.6965 GB, free: 6.48 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6259, allocations: 0 / 0.6965 GB, free: 6.48 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008687/0.6268, allocations: 241.3 kB / 0.6967 GB, free: 6.438 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.0002525/0.6271, allocations: 119.4 kB / 0.6968 GB, free: 6.332 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004334/0.6314, allocations: 1.532 MB / 0.6983 GB, free: 5.418 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.6314, allocations: 0 / 0.6983 GB, free: 5.418 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_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3536:9-3536: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_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1563:5-1563:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:818:5-818:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.9239730529952794] Failed to read output from testmodel.py, exit status != 0: 0.6417257050052285 0.655279152 0.12028290500000001 Calling exit ...