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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.09075/0.09075, allocations: 12.36 MB / 31.96 MB, free: 6.43 MB / 26.18 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 113 kB / 38 MB, free: 1.113 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.556/1.556, allocations: 207.7 MB / 251.7 MB, free: 7.289 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 208.3 kB / 306.9 MB, free: 320 kB / 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.3343/0.3343, allocations: 79.73 MB / 441.7 MB, free: 12.3 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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=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.1.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.1.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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.004346/0.004346, allocations: 147.8 kB / 0.5887 GB, free: 8.898 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1462, allocations: 71.96 MB / 0.659 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.3071/0.4533, allocations: 3.959 MB / 0.6628 GB, free: 9.227 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.4557, allocations: 1.157 MB / 0.664 GB, free: 8.75 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003279/0.456, allocations: 6.156 kB / 0.664 GB, free: 8.75 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004148/0.4565, allocations: 140.2 kB / 0.6641 GB, free: 8.68 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005769/0.457, allocations: 266.1 kB / 0.6644 GB, free: 8.535 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.4583, allocations: 0.5145 MB / 0.6649 GB, free: 8.41 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008749/0.4592, allocations: 0.8062 MB / 0.6657 GB, free: 8.039 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002677/0.4595, allocations: 137.7 kB / 0.6658 GB, free: 7.961 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003318/0.4598, allocations: 345.5 kB / 0.6661 GB, free: 7.789 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004413/0.4603, allocations: 369 kB / 0.6665 GB, free: 7.621 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.863e-05/0.4603, allocations: 62.25 kB / 0.6665 GB, free: 7.621 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003378/0.4607, allocations: 132.1 kB / 0.6666 GB, free: 7.598 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.4608, allocations: 173.2 kB / 0.6668 GB, free: 7.484 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002847/0.4611, allocations: 312.1 kB / 0.6671 GB, free: 7.305 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009033/0.462, allocations: 0.9307 MB / 0.668 GB, free: 6.883 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.462, allocations: 0 / 0.668 GB, free: 6.883 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.462, allocations: 0 / 0.668 GB, free: 6.883 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.462, allocations: 1.281 kB / 0.668 GB, free: 6.883 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.004282/0.4663, allocations: 1.61 MB / 0.6696 GB, free: 6.078 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.4663, allocations: 12.64 kB / 0.6696 GB, free: 6.078 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002572/0.4689, allocations: 429.2 kB / 0.67 GB, free: 5.984 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007598/0.4697, allocations: 450.8 kB / 0.6704 GB, free: 5.652 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002436/0.4699, allocations: 284.7 kB / 0.6707 GB, free: 5.371 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.47, allocations: 55.31 kB / 0.6708 GB, free: 5.352 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.4715, allocations: 0.687 MB / 0.6714 GB, free: 5.09 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.4715, allocations: 0 / 0.6714 GB, free: 5.09 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.926e-05/0.4716, allocations: 28.73 kB / 0.6715 GB, free: 5.07 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.4716, allocations: 20.03 kB / 0.6715 GB, free: 5.062 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.4729, allocations: 0.6649 MB / 0.6721 GB, free: 4.848 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003738/0.4767, allocations: 1.695 MB / 0.6738 GB, free: 3.926 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007499/0.4842, allocations: 1.744 MB / 0.6755 GB, free: 3.574 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009628/0.4851, allocations: 437.8 kB / 0.6759 GB, free: 3.414 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.097e-05/0.4852, allocations: 8.5 kB / 0.6759 GB, free: 3.414 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001127/0.4863, allocations: 0.5218 MB / 0.6764 GB, free: 3.203 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.757e-06/0.4863, allocations: 0 / 0.6764 GB, free: 3.203 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.006804/0.4931, allocations: 2.208 MB / 0.6786 GB, free: 2.57 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.4932, allocations: 66.38 kB / 0.6787 GB, free: 2.504 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006575/0.4938, allocations: 0.5146 MB / 0.6792 GB, free: 2.262 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.492e-05/0.4939, allocations: 37.28 kB / 0.6792 GB, free: 2.223 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.4941, allocations: 334 kB / 0.6795 GB, free: 1.957 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/0.4943, allocations: 260.5 kB / 0.6798 GB, free: 1.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/0.4945, allocations: 123.8 kB / 0.6799 GB, free: 1.684 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4947, allocations: 386.3 kB / 0.6802 GB, free: 1.336 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008539/0.4955, allocations: 401.5 kB / 0.6806 GB, free: 1.195 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009061/0.4964, allocations: 0.4941 MB / 0.6811 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009515/0.5059, allocations: 2.512 MB / 0.6836 GB, free: 200 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.5059, allocations: 0.5312 kB / 0.6836 GB, free: 200 kB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007684/0.5136, allocations: 2.202 MB / 0.6857 GB, free: 15.59 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.5136, allocations: 14.75 kB / 0.6857 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.5137, allocations: 2.312 kB / 0.6857 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00409/0.5178, allocations: 0.9929 MB / 0.6867 GB, free: 15.14 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000609/0.5184, allocations: 106 kB / 0.6868 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/0.5287, allocations: 4.287 MB / 0.691 GB, free: 12.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009808/0.5297, allocations: 101.5 kB / 0.6911 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-05/0.5298, allocations: 23.16 kB / 0.6911 GB, free: 12.14 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.0004642/0.5302, allocations: 213.1 kB / 0.6913 GB, free: 11.96 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.5304, allocations: 79.05 kB / 0.6914 GB, free: 11.92 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0051/0.5355, allocations: 1.681 MB / 0.693 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.5355, allocations: 6.781 kB / 0.693 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.5355, allocations: 1.062 kB / 0.693 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.5355, allocations: 5.109 kB / 0.693 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005034/0.5406, allocations: 2.052 MB / 0.695 GB, free: 9.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.5406, allocations: 3.984 kB / 0.695 GB, free: 9.746 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.541, allocations: 69.06 kB / 0.6951 GB, free: 9.73 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.004301/0.5453, allocations: 1.061 MB / 0.6961 GB, free: 9.238 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/0.5454, allocations: 19.05 kB / 0.6962 GB, free: 9.223 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005759/0.546, allocations: 102.7 kB / 0.6963 GB, free: 9.176 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.546, allocations: 0 / 0.6963 GB, free: 9.176 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005039/0.551, allocations: 1.994 MB / 0.6982 GB, free: 8.086 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003503/0.5514, allocations: 87.33 kB / 0.6983 GB, free: 8.02 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.5515, allocations: 11.88 kB / 0.6983 GB, free: 8.012 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006898/0.5522, allocations: 53.91 kB / 0.6984 GB, free: 7.988 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003193/0.5525, allocations: 129 kB / 0.6985 GB, free: 7.898 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-05/0.5526, allocations: 22.19 kB / 0.6985 GB, free: 7.891 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004913/0.553, allocations: 357.3 kB / 0.6988 GB, free: 7.68 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.553, allocations: 1.281 kB / 0.6988 GB, free: 7.68 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.000834/0.5539, allocations: 236.3 kB / 0.6991 GB, free: 7.641 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.0002387/0.5541, allocations: 115.9 kB / 0.6992 GB, free: 7.539 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004333/0.5584, allocations: 1.385 MB / 0.7005 GB, free: 6.801 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.5585, allocations: 1.031 kB / 0.7005 GB, free: 6.801 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:3566:9-3566: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:1569:5-1569:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:823:5-823: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.698313976172358] Failed to read output from testmodel.py, exit status != 0: 0.5685668475925922 0.583830662 0.118543908 Calling exit ...