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.08128/0.08128, allocations: 12.36 MB / 31.21 MB, free: 6.441 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.001314/0.001314, allocations: 113 kB / 37.25 MB, free: 1.121 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.433/1.433, allocations: 207.7 MB / 250.9 MB, free: 7.273 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.001719/0.001719, allocations: 216.4 kB / 306.1 MB, free: 288 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.3346/0.3346, allocations: 79.72 MB / 440.9 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",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.004251/0.004251, allocations: 149.1 kB / 0.5875 GB, free: 7.492 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3643, allocations: 71.95 MB / 0.6577 GB, free: 2.512 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004603/0.3689, allocations: 3.974 MB / 0.6616 GB, free: 15.81 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002666/0.3715, allocations: 1.154 MB / 0.6627 GB, free: 15.01 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003331/0.3719, allocations: 8.844 kB / 0.6628 GB, free: 15 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004034/0.3723, allocations: 137.5 kB / 0.6629 GB, free: 14.93 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006326/0.3729, allocations: 269.6 kB / 0.6631 GB, free: 14.73 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.3742, allocations: 0.5135 MB / 0.6636 GB, free: 14.45 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009306/0.3752, allocations: 0.7995 MB / 0.6644 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.3755, allocations: 137.2 kB / 0.6646 GB, free: 13.95 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003731/0.3758, allocations: 343.9 kB / 0.6649 GB, free: 13.79 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005475/0.3764, allocations: 373.9 kB / 0.6652 GB, free: 13.61 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.699e-05/0.3765, allocations: 63.03 kB / 0.6653 GB, free: 13.61 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003145/0.3768, allocations: 129.9 kB / 0.6654 GB, free: 13.59 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.3769, allocations: 165.2 kB / 0.6656 GB, free: 13.48 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003364/0.3773, allocations: 320.3 kB / 0.6659 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001082/0.3784, allocations: 0.9249 MB / 0.6668 GB, free: 12.87 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3784, allocations: 0 / 0.6668 GB, free: 12.87 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3784, allocations: 1.281 kB / 0.6668 GB, free: 12.87 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.3784, allocations: 0 / 0.6668 GB, free: 12.87 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.004694/0.3831, allocations: 1.618 MB / 0.6684 GB, free: 12.06 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3831, allocations: 10.66 kB / 0.6684 GB, free: 12.06 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001405/0.3833, allocations: 97.45 kB / 0.6685 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002649/0.3859, allocations: 432.1 kB / 0.6689 GB, free: 11.89 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008487/0.3868, allocations: 453.7 kB / 0.6693 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003012/0.3871, allocations: 276.1 kB / 0.6696 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.3872, allocations: 51.28 kB / 0.6696 GB, free: 11.26 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.3888, allocations: 0.6929 MB / 0.6703 GB, free: 11 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.3888, allocations: 0 / 0.6703 GB, free: 11 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.286e-05/0.3888, allocations: 21.83 kB / 0.6703 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.3889, allocations: 17.23 kB / 0.6703 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.3904, allocations: 0.6688 MB / 0.671 GB, free: 10.72 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003979/0.3944, allocations: 1.77 MB / 0.6727 GB, free: 9.457 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007775/0.4022, allocations: 1.74 MB / 0.6744 GB, free: 8.668 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001056/0.4032, allocations: 441.2 kB / 0.6749 GB, free: 8.453 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.273e-05/0.4033, allocations: 8.719 kB / 0.6749 GB, free: 8.453 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.4045, allocations: 0.5283 MB / 0.6754 GB, free: 8.125 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.516e-06/0.4045, allocations: 4 kB / 0.6754 GB, free: 8.121 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007341/0.4118, allocations: 2.212 MB / 0.6775 GB, free: 7.043 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.4119, allocations: 60.31 kB / 0.6776 GB, free: 6.98 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.4126, allocations: 0.5164 MB / 0.6781 GB, free: 6.664 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.589e-05/0.4127, allocations: 46.61 kB / 0.6781 GB, free: 6.617 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002876/0.413, allocations: 328.4 kB / 0.6785 GB, free: 6.328 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002741/0.4132, allocations: 260.5 kB / 0.6787 GB, free: 6.102 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002388/0.4135, allocations: 123.6 kB / 0.6788 GB, free: 6.023 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.4137, allocations: 387.5 kB / 0.6792 GB, free: 5.652 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009326/0.4146, allocations: 405.8 kB / 0.6796 GB, free: 5.453 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.4156, allocations: 499.5 kB / 0.6801 GB, free: 5.164 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009497/0.4251, allocations: 2.517 MB / 0.6825 GB, free: 3.895 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/0.4251, allocations: 3.938 kB / 0.6825 GB, free: 3.891 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007465/0.4326, allocations: 2.202 MB / 0.6847 GB, free: 2.793 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.4326, allocations: 5.688 kB / 0.6847 GB, free: 2.793 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.4326, allocations: 6.219 kB / 0.6847 GB, free: 2.789 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004203/0.4368, allocations: 0.9892 MB / 0.6856 GB, free: 2.328 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006143/0.4374, allocations: 109.8 kB / 0.6858 GB, free: 2.301 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.4475, allocations: 4.304 MB / 0.69 GB, free: 15.35 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009407/0.4484, allocations: 102.5 kB / 0.6901 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.435e-05/0.4485, allocations: 25.97 kB / 0.6901 GB, free: 15.28 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.000442/0.4489, allocations: 215 kB / 0.6903 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.4491, allocations: 79.31 kB / 0.6904 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004905/0.454, allocations: 1.677 MB / 0.692 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.454, allocations: 7.188 kB / 0.692 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.454, allocations: 5.219 kB / 0.692 GB, free: 14.14 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.454, allocations: 3.984 kB / 0.692 GB, free: 14.13 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004931/0.4589, allocations: 2.119 MB / 0.6941 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.459, allocations: 3.984 kB / 0.6941 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004082/0.4594, allocations: 63.91 kB / 0.6941 GB, free: 12.61 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.004434/0.4638, allocations: 1.072 MB / 0.6952 GB, free: 11.53 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.9e-05/0.4639, allocations: 11.98 kB / 0.6952 GB, free: 11.52 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006022/0.4645, allocations: 104.7 kB / 0.6953 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4645, allocations: 0 / 0.6953 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004891/0.4694, allocations: 1.989 MB / 0.6972 GB, free: 9.398 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002759/0.4697, allocations: 83.39 kB / 0.6973 GB, free: 9.316 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001615/0.4698, allocations: 15.94 kB / 0.6973 GB, free: 9.301 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007007/0.4705, allocations: 55.94 kB / 0.6974 GB, free: 9.246 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003146/0.4708, allocations: 128.4 kB / 0.6975 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.075e-05/0.4709, allocations: 16.09 kB / 0.6975 GB, free: 9.105 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004869/0.4714, allocations: 358.8 kB / 0.6979 GB, free: 8.758 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4714, allocations: 0 / 0.6979 GB, free: 8.758 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008168/0.4722, allocations: 243.7 kB / 0.6981 GB, free: 8.52 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.005353/0.4776, allocations: 2.556 MB / 0.7006 GB, free: 5.926 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004409/0.482, allocations: 1.382 MB / 0.702 GB, free: 4.523 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.482, allocations: 4 kB / 0.702 GB, free: 4.52 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 660] [Calling sys.exit(0), Time elapsed: 3.316297975834459] Failed to read output from testmodel.py, exit status != 0: 0.49136102478951216 0.507358799 0.12574680600000002 Calling exit ...