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.124/0.124, allocations: 12.36 MB / 32 MB, free: 6.426 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.001724/0.001724, allocations: 105.1 kB / 38.03 MB, free: 1.102 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.473/1.473, allocations: 207.7 MB / 251.7 MB, free: 7.293 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.001586/0.001586, allocations: 204.5 kB / 306.9 MB, free: 328 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.3267/0.3267, allocations: 79.74 MB / 441.7 MB, free: 12.27 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: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="cs",version="2.0",platforms={"static"}) [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.003965/0.003965, allocations: 133.1 kB / 0.5882 GB, free: 9.383 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1464, allocations: 71.96 MB / 0.6585 GB, free: 1.348 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2832/0.4295, allocations: 3.962 MB / 0.6624 GB, free: 9.043 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002343/0.4319, allocations: 1.152 MB / 0.6635 GB, free: 8.566 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002123/0.4321, allocations: 5.906 kB / 0.6635 GB, free: 8.566 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003907/0.4325, allocations: 142 kB / 0.6636 GB, free: 8.5 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005056/0.433, allocations: 268 kB / 0.6639 GB, free: 8.352 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.4342, allocations: 0.5127 MB / 0.6644 GB, free: 8.23 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008441/0.435, allocations: 0.8073 MB / 0.6652 GB, free: 8.023 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.4353, allocations: 134.9 kB / 0.6653 GB, free: 7.984 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003047/0.4356, allocations: 350.6 kB / 0.6657 GB, free: 7.883 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004397/0.436, allocations: 415 kB / 0.666 GB, free: 7.668 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.4361, allocations: 64.09 kB / 0.6661 GB, free: 7.668 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003085/0.4364, allocations: 130.3 kB / 0.6662 GB, free: 7.645 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.4366, allocations: 164.1 kB / 0.6664 GB, free: 7.535 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002664/0.4368, allocations: 320.1 kB / 0.6667 GB, free: 7.352 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007938/0.4376, allocations: 0.9302 MB / 0.6676 GB, free: 6.926 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.4376, allocations: 2.312 kB / 0.6676 GB, free: 6.926 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4376, allocations: 2.062 kB / 0.6676 GB, free: 6.926 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.4376, allocations: 1.438 kB / 0.6676 GB, free: 6.926 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.004183/0.4418, allocations: 1.608 MB / 0.6692 GB, free: 6.125 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.4419, allocations: 13.75 kB / 0.6692 GB, free: 6.121 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.989e-05/0.4419, allocations: 14.41 kB / 0.6692 GB, free: 6.121 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.442, allocations: 106.5 kB / 0.6693 GB, free: 6.039 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002548/0.4445, allocations: 430.2 kB / 0.6697 GB, free: 5.945 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006465/0.4452, allocations: 449.7 kB / 0.6701 GB, free: 5.613 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.4454, allocations: 275.5 kB / 0.6704 GB, free: 5.34 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.4455, allocations: 51.3 kB / 0.6705 GB, free: 5.324 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.4469, allocations: 0.6901 MB / 0.6711 GB, free: 5.062 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.4469, allocations: 0 / 0.6711 GB, free: 5.062 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.724e-05/0.447, allocations: 30.72 kB / 0.6712 GB, free: 5.039 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.447, allocations: 12.62 kB / 0.6712 GB, free: 5.039 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.4483, allocations: 0.6768 MB / 0.6718 GB, free: 4.816 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003323/0.4517, allocations: 1.756 MB / 0.6736 GB, free: 3.855 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007321/0.459, allocations: 1.746 MB / 0.6753 GB, free: 3.504 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009153/0.4599, allocations: 435.5 kB / 0.6757 GB, free: 3.344 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.971e-05/0.46, allocations: 14.52 kB / 0.6757 GB, free: 3.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.461, allocations: 0.5243 MB / 0.6762 GB, free: 3.129 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 2.916e-06/0.461, allocations: 3.938 kB / 0.6762 GB, free: 3.125 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.006811/0.4678, allocations: 2.216 MB / 0.6784 GB, free: 2.48 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.4679, allocations: 65.39 kB / 0.6784 GB, free: 2.414 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005583/0.4684, allocations: 0.5092 MB / 0.6789 GB, free: 2.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.105e-05/0.4685, allocations: 39.47 kB / 0.679 GB, free: 2.141 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/0.4687, allocations: 322.7 kB / 0.6793 GB, free: 1.883 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.4689, allocations: 269.4 kB / 0.6795 GB, free: 1.668 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002237/0.4691, allocations: 119.6 kB / 0.6796 GB, free: 1.602 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.912e-05/0.4692, allocations: 381.9 kB / 0.68 GB, free: 1.258 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000812/0.47, allocations: 403.6 kB / 0.6804 GB, free: 1.121 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008413/0.4708, allocations: 0.492 MB / 0.6809 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009414/0.4802, allocations: 2.517 MB / 0.6833 GB, free: 120 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.4803, allocations: 1.375 kB / 0.6833 GB, free: 120 kB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007263/0.4875, allocations: 2.206 MB / 0.6855 GB, free: 15.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.4875, allocations: 5.5 kB / 0.6855 GB, free: 15.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.4876, allocations: 2.75 kB / 0.6855 GB, free: 15.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003913/0.4915, allocations: 0.9967 MB / 0.6865 GB, free: 15.07 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005467/0.492, allocations: 110.5 kB / 0.6866 GB, free: 15.04 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009403/0.5014, allocations: 4.305 MB / 0.6908 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008671/0.5023, allocations: 102.5 kB / 0.6909 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.499e-05/0.5024, allocations: 21.81 kB / 0.6909 GB, free: 12.04 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.0003852/0.5027, allocations: 205.6 kB / 0.6911 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.5029, allocations: 79.17 kB / 0.6912 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004636/0.5075, allocations: 1.681 MB / 0.6928 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.5075, allocations: 8.312 kB / 0.6928 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5075, allocations: 5.344 kB / 0.6928 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.5075, allocations: 3.984 kB / 0.6928 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004458/0.512, allocations: 2.117 MB / 0.6949 GB, free: 9.594 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.512, allocations: 7.938 kB / 0.6949 GB, free: 9.586 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.5124, allocations: 77.27 kB / 0.695 GB, free: 9.566 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.00407/0.5165, allocations: 1.057 MB / 0.696 GB, free: 9.078 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.29e-05/0.5165, allocations: 14.44 kB / 0.696 GB, free: 9.066 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000557/0.5171, allocations: 102.9 kB / 0.6961 GB, free: 9.02 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.5171, allocations: 0 / 0.6961 GB, free: 9.02 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004508/0.5216, allocations: 2.005 MB / 0.6981 GB, free: 7.918 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.5218, allocations: 83.56 kB / 0.6982 GB, free: 7.855 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.5219, allocations: 15.95 kB / 0.6982 GB, free: 7.844 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005995/0.5225, allocations: 58.44 kB / 0.6982 GB, free: 7.816 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003274/0.5229, allocations: 126.8 kB / 0.6983 GB, free: 7.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.086e-05/0.5229, allocations: 21.81 kB / 0.6984 GB, free: 7.723 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004694/0.5234, allocations: 350.3 kB / 0.6987 GB, free: 7.52 MB / 478.1 MB Notification: Performance of sort global known variables: time 6e-08/0.5234, allocations: 0 / 0.6987 GB, free: 7.52 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008677/0.5243, allocations: 232.5 kB / 0.6989 GB, free: 7.484 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.004795/0.529, allocations: 2.558 MB / 0.7014 GB, free: 5.848 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00394/0.533, allocations: 1.393 MB / 0.7028 GB, free: 5.109 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.533, allocations: 0.5 kB / 0.7028 GB, free: 5.109 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:3565:9-3565: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:1568:5-1568:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:822:5-822: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.5800339920679107] Failed to read output from testmodel.py, exit status != 0: 0.5421485190745443 0.557111064 0.11653579900000001 Calling exit ...