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.001311/0.001311, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.417/1.417, allocations: 230.6 MB / 253.5 MB, free: 14.28 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.00149/0.00149, allocations: 212.9 kB / 310 MB, free: 3.086 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.4722/0.4722, allocations: 79.75 MB / 446.2 MB, free: 40.34 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.002396/0.002396, allocations: 90.25 kB / 0.5936 GB, free: 38.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1095, allocations: 73.29 MB / 0.6652 GB, free: 372 kB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004984/0.1145, allocations: 3.93 MB / 0.669 GB, free: 13.35 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00242/0.1169, allocations: 1.216 MB / 0.6702 GB, free: 12.38 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002348/0.1172, allocations: 7.156 kB / 0.6702 GB, free: 12.38 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003885/0.1176, allocations: 152 kB / 0.6704 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005331/0.1181, allocations: 266.1 kB / 0.6706 GB, free: 12.02 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.1193, allocations: 0.514 MB / 0.6711 GB, free: 11.65 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008598/0.1201, allocations: 0.7988 MB / 0.6719 GB, free: 10.91 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002883/0.1204, allocations: 154.4 kB / 0.672 GB, free: 10.74 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00037/0.1208, allocations: 338.5 kB / 0.6724 GB, free: 10.41 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005189/0.1213, allocations: 414 kB / 0.6728 GB, free: 10 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.1214, allocations: 64 kB / 0.6728 GB, free: 9.941 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003162/0.1217, allocations: 139.9 kB / 0.6729 GB, free: 9.805 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.1219, allocations: 167.3 kB / 0.6731 GB, free: 9.641 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003232/0.1222, allocations: 322.2 kB / 0.6734 GB, free: 9.324 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009993/0.1232, allocations: 0.9141 MB / 0.6743 GB, free: 8.406 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1232, allocations: 4 kB / 0.6743 GB, free: 8.402 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1232, allocations: 0 / 0.6743 GB, free: 8.402 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.1232, allocations: 0 / 0.6743 GB, free: 8.402 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.00468/0.1279, allocations: 1.618 MB / 0.6759 GB, free: 6.742 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.128, allocations: 8.031 kB / 0.6759 GB, free: 6.734 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.097e-05/0.128, allocations: 13.19 kB / 0.6759 GB, free: 6.723 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001285/0.1281, allocations: 102.7 kB / 0.676 GB, free: 6.613 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002639/0.1308, allocations: 427.2 kB / 0.6764 GB, free: 6.195 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000734/0.1315, allocations: 451.4 kB / 0.6768 GB, free: 5.73 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000294/0.1318, allocations: 274.9 kB / 0.6771 GB, free: 5.41 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.1319, allocations: 59.94 kB / 0.6772 GB, free: 5.352 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.1334, allocations: 0.6897 MB / 0.6778 GB, free: 4.656 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.1334, allocations: 0 / 0.6778 GB, free: 4.656 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.272e-05/0.1335, allocations: 23.94 kB / 0.6779 GB, free: 4.633 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.1335, allocations: 12 kB / 0.6779 GB, free: 4.621 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.135, allocations: 0.6805 MB / 0.6785 GB, free: 3.941 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003726/0.1387, allocations: 1.78 MB / 0.6803 GB, free: 2.113 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007515/0.1462, allocations: 1.751 MB / 0.682 GB, free: 364 kB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009445/0.1472, allocations: 424.3 kB / 0.6824 GB, free: 15.94 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.522e-05/0.1472, allocations: 16.59 kB / 0.6824 GB, free: 15.92 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001187/0.1484, allocations: 0.5158 MB / 0.6829 GB, free: 15.39 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 3.446e-06/0.1484, allocations: 0 / 0.6829 GB, free: 15.39 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.007116/0.1555, allocations: 2.218 MB / 0.6851 GB, free: 13.16 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.1556, allocations: 60.06 kB / 0.6851 GB, free: 13.09 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000604/0.1562, allocations: 0.5031 MB / 0.6856 GB, free: 12.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.288e-05/0.1563, allocations: 45.69 kB / 0.6857 GB, free: 12.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002582/0.1565, allocations: 333.1 kB / 0.686 GB, free: 12.19 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002454/0.1568, allocations: 261.7 kB / 0.6862 GB, free: 11.94 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002614/0.157, allocations: 126.6 kB / 0.6864 GB, free: 11.81 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.1572, allocations: 374.8 kB / 0.6867 GB, free: 11.43 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009076/0.1581, allocations: 405.8 kB / 0.6871 GB, free: 11.04 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000978/0.1591, allocations: 0.4984 MB / 0.6876 GB, free: 10.51 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00918/0.1683, allocations: 2.514 MB / 0.69 GB, free: 7.965 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.1683, allocations: 3.938 kB / 0.69 GB, free: 7.961 MB / 478.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007179/0.1755, allocations: 2.201 MB / 0.6922 GB, free: 5.742 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.1755, allocations: 4 kB / 0.6922 GB, free: 5.738 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.1755, allocations: 4 kB / 0.6922 GB, free: 5.734 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003909/0.1794, allocations: 1.001 MB / 0.6932 GB, free: 4.723 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/0.1799, allocations: 107.8 kB / 0.6933 GB, free: 4.617 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00949/0.1894, allocations: 4.307 MB / 0.6975 GB, free: 216 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008151/0.1902, allocations: 103.5 kB / 0.6976 GB, free: 112 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.2e-05/0.1903, allocations: 31.98 kB / 0.6976 GB, free: 80 kB / 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.0004022/0.1907, allocations: 193.7 kB / 0.6978 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.1909, allocations: 75.53 kB / 0.6979 GB, free: 15.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004737/0.1956, allocations: 1.678 MB / 0.6995 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.1956, allocations: 8 kB / 0.6995 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.1956, allocations: 7.922 kB / 0.6995 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1956, allocations: 0 / 0.6995 GB, free: 14.09 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004463/0.2001, allocations: 2.119 MB / 0.7016 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.2001, allocations: 4 kB / 0.7016 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003945/0.2005, allocations: 71.89 kB / 0.7017 GB, free: 11.84 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.004103/0.2046, allocations: 1.065 MB / 0.7027 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.028e-05/0.2047, allocations: 12 kB / 0.7027 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005647/0.2052, allocations: 112.6 kB / 0.7028 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2052, allocations: 0 / 0.7028 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004484/0.2097, allocations: 1.985 MB / 0.7048 GB, free: 8.625 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.2099, allocations: 91.2 kB / 0.7049 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.21, allocations: 20 kB / 0.7049 GB, free: 8.516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006189/0.2106, allocations: 55.92 kB / 0.7049 GB, free: 8.461 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003044/0.2109, allocations: 120.4 kB / 0.705 GB, free: 8.344 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.238e-05/0.2109, allocations: 23.98 kB / 0.7051 GB, free: 8.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000412/0.2114, allocations: 354.8 kB / 0.7054 GB, free: 7.977 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2114, allocations: 0 / 0.7054 GB, free: 7.977 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007271/0.2121, allocations: 235.8 kB / 0.7056 GB, free: 7.746 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.004885/0.217, allocations: 2.556 MB / 0.7081 GB, free: 5.152 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003961/0.2209, allocations: 1.382 MB / 0.7095 GB, free: 3.754 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2209, allocations: 0 / 0.7095 GB, free: 3.754 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.220285249990411] Failed to read output from testmodel.py, exit status != 0: 0.22865314199589193 0.24368684200000001 0.11756058000000001 Calling exit ...