Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json 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.001375/0.001375, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 253.4 MB, free: 14.49 MB / 206.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.001521/0.001521, allocations: 209.1 kB / 310 MB, free: 3.145 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4746/0.4746, allocations: 79.74 MB / 446.2 MB, free: 38.88 MB / 350.1 MB " [Timeout remaining time 179] Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: OpenIPSL requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Modelica of version 4.0.0. Modelica 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.002459/0.002459, allocations: 81.67 kB / 0.5937 GB, free: 38.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1161, allocations: 73.3 MB / 0.6653 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005244/0.1214, allocations: 4.415 MB / 0.6696 GB, free: 13.16 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002798/0.1242, allocations: 1.291 MB / 0.6708 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004224/0.1246, allocations: 5.406 kB / 0.6708 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000424/0.125, allocations: 148.8 kB / 0.671 GB, free: 11.99 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006498/0.1257, allocations: 266 kB / 0.6712 GB, free: 11.76 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.127, allocations: 0.5295 MB / 0.6717 GB, free: 11.37 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.1282, allocations: 0.8092 MB / 0.6725 GB, free: 10.7 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003093/0.1285, allocations: 146.5 kB / 0.6727 GB, free: 10.54 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004185/0.1289, allocations: 346.6 kB / 0.673 GB, free: 10.2 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005617/0.1294, allocations: 414 kB / 0.6734 GB, free: 9.793 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.1295, allocations: 64 kB / 0.6735 GB, free: 9.73 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003864/0.1299, allocations: 135.9 kB / 0.6736 GB, free: 9.598 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.1301, allocations: 163.3 kB / 0.6737 GB, free: 9.438 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003783/0.1305, allocations: 389.7 kB / 0.6741 GB, free: 9.055 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.1316, allocations: 0.918 MB / 0.675 GB, free: 8.133 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.1316, allocations: 4 kB / 0.675 GB, free: 8.129 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1316, allocations: 0 / 0.675 GB, free: 8.129 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.1316, allocations: 0 / 0.675 GB, free: 8.129 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.004835/0.1364, allocations: 1.618 MB / 0.6766 GB, free: 6.469 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1365, allocations: 8.031 kB / 0.6766 GB, free: 6.461 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.896e-05/0.1365, allocations: 13.19 kB / 0.6766 GB, free: 6.449 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001287/0.1366, allocations: 102.7 kB / 0.6767 GB, free: 6.34 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002687/0.1393, allocations: 431.2 kB / 0.6771 GB, free: 5.918 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000734/0.14, allocations: 439.4 kB / 0.6775 GB, free: 5.465 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002935/0.1403, allocations: 278.9 kB / 0.6778 GB, free: 5.141 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.1405, allocations: 59.95 kB / 0.6779 GB, free: 5.082 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.142, allocations: 0.6897 MB / 0.6785 GB, free: 4.387 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.142, allocations: 3.984 kB / 0.6785 GB, free: 4.383 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.659e-05/0.1421, allocations: 23.94 kB / 0.6786 GB, free: 4.359 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.1421, allocations: 16 kB / 0.6786 GB, free: 4.344 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.1436, allocations: 0.6688 MB / 0.6792 GB, free: 3.676 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004088/0.1477, allocations: 2.098 MB / 0.6813 GB, free: 1.504 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008176/0.1559, allocations: 1.761 MB / 0.683 GB, free: 15.74 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.157, allocations: 432.2 kB / 0.6834 GB, free: 15.32 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.339e-05/0.1571, allocations: 20.56 kB / 0.6834 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/0.1583, allocations: 0.5158 MB / 0.6839 GB, free: 14.77 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 2.565e-06/0.1583, allocations: 3.938 kB / 0.6839 GB, free: 14.76 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.007639/0.166, allocations: 2.21 MB / 0.6861 GB, free: 12.54 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.166, allocations: 60.06 kB / 0.6862 GB, free: 12.46 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000677/0.1667, allocations: 0.5109 MB / 0.6867 GB, free: 11.94 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.1668, allocations: 41.7 kB / 0.6867 GB, free: 11.89 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.1671, allocations: 333 kB / 0.687 GB, free: 11.57 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/0.1674, allocations: 253.8 kB / 0.6873 GB, free: 11.32 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/0.1676, allocations: 122.6 kB / 0.6874 GB, free: 11.19 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.1678, allocations: 386.8 kB / 0.6877 GB, free: 10.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009633/0.1688, allocations: 409.7 kB / 0.6881 GB, free: 10.4 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.1698, allocations: 0.4907 MB / 0.6886 GB, free: 9.887 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009884/0.1797, allocations: 2.518 MB / 0.6911 GB, free: 7.336 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.1797, allocations: 0 / 0.6911 GB, free: 7.336 MB / 478.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007651/0.1873, allocations: 2.201 MB / 0.6932 GB, free: 5.117 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.1874, allocations: 4 kB / 0.6932 GB, free: 5.113 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.1874, allocations: 4 kB / 0.6932 GB, free: 5.109 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004215/0.1916, allocations: 0.999 MB / 0.6942 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005722/0.1922, allocations: 103.8 kB / 0.6943 GB, free: 4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.2025, allocations: 4.412 MB / 0.6986 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008686/0.2033, allocations: 103.5 kB / 0.6987 GB, free: 15.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.95e-05/0.2034, allocations: 27.94 kB / 0.6987 GB, free: 15.35 MB / 494.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.0003957/0.2038, allocations: 201.8 kB / 0.6989 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.204, allocations: 79.48 kB / 0.699 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005112/0.2091, allocations: 1.667 MB / 0.7006 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.2091, allocations: 19.94 kB / 0.7007 GB, free: 13.36 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.2091, allocations: 7.875 kB / 0.7007 GB, free: 13.35 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.2091, allocations: 3.984 kB / 0.7007 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005071/0.2142, allocations: 2.379 MB / 0.703 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.2142, allocations: 0 / 0.703 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004175/0.2146, allocations: 75.89 kB / 0.7031 GB, free: 10.81 MB / 494.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.004428/0.219, allocations: 1.069 MB / 0.7041 GB, free: 9.734 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.2191, allocations: 15.98 kB / 0.7041 GB, free: 9.719 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006069/0.2197, allocations: 100.7 kB / 0.7042 GB, free: 9.617 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2197, allocations: 4 kB / 0.7042 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0049/0.2246, allocations: 1.989 MB / 0.7062 GB, free: 7.598 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.2248, allocations: 83.23 kB / 0.7062 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.225, allocations: 15.98 kB / 0.7063 GB, free: 7.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006535/0.2256, allocations: 63.94 kB / 0.7063 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003098/0.2259, allocations: 124.4 kB / 0.7064 GB, free: 7.316 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-05/0.226, allocations: 16 kB / 0.7065 GB, free: 7.301 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004388/0.2264, allocations: 350.8 kB / 0.7068 GB, free: 6.961 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2264, allocations: 0 / 0.7068 GB, free: 6.961 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007594/0.2272, allocations: 243.8 kB / 0.707 GB, free: 6.723 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.00528/0.2325, allocations: 2.548 MB / 0.7095 GB, free: 4.137 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004383/0.2369, allocations: 1.398 MB / 0.7109 GB, free: 2.723 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.2369, allocations: 0 / 0.7109 GB, free: 2.723 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 660] [Calling sys.exit(0), Time elapsed: 3.2825088639510795] Failed to read output from testmodel.py, exit status != 0: 0.2457784810103476 0.27601980800000003 0.13890401000000002 Calling exit ...