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.001369/0.001369, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.43/1.43, allocations: 230.6 MB / 252.6 MB, free: 8.301 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.001636/0.001636, allocations: 219.8 kB / 309.2 MB, free: 3.133 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.448/0.448, allocations: 79.73 MB / 445.4 MB, free: 14.84 MB / 318.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",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.002645/0.002645, allocations: 87.88 kB / 0.5929 GB, free: 13.97 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1562, allocations: 73.29 MB / 0.6645 GB, free: 4.578 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005753/0.162, allocations: 4.422 MB / 0.6688 GB, free: 140 kB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.1646, allocations: 1.282 MB / 0.6701 GB, free: 14.85 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002566/0.1649, allocations: 8 kB / 0.6701 GB, free: 14.84 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004017/0.1653, allocations: 146.8 kB / 0.6702 GB, free: 14.7 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005624/0.1659, allocations: 273.9 kB / 0.6705 GB, free: 14.43 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.1671, allocations: 0.5314 MB / 0.671 GB, free: 13.9 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009422/0.1681, allocations: 0.8017 MB / 0.6718 GB, free: 13.1 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002995/0.1684, allocations: 146.5 kB / 0.6719 GB, free: 12.94 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003902/0.1688, allocations: 342.5 kB / 0.6722 GB, free: 12.61 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005621/0.1693, allocations: 418.1 kB / 0.6726 GB, free: 12.2 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.583e-05/0.1694, allocations: 67.94 kB / 0.6727 GB, free: 12.13 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003328/0.1698, allocations: 135.9 kB / 0.6728 GB, free: 12 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.1699, allocations: 171.3 kB / 0.673 GB, free: 11.83 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003899/0.1703, allocations: 381.8 kB / 0.6734 GB, free: 11.45 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.1714, allocations: 0.9218 MB / 0.6743 GB, free: 10.53 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1714, allocations: 0 / 0.6743 GB, free: 10.53 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1714, allocations: 0 / 0.6743 GB, free: 10.53 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.1714, allocations: 0 / 0.6743 GB, free: 10.53 MB / 478.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.00473/0.1762, allocations: 1.626 MB / 0.6758 GB, free: 8.859 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.1762, allocations: 11.98 kB / 0.6759 GB, free: 8.848 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001531/0.1764, allocations: 98.7 kB / 0.676 GB, free: 8.742 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002516/0.1789, allocations: 431.4 kB / 0.6764 GB, free: 8.32 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007343/0.1796, allocations: 439.4 kB / 0.6768 GB, free: 7.867 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002919/0.1799, allocations: 274.9 kB / 0.677 GB, free: 7.547 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.18, allocations: 52 kB / 0.6771 GB, free: 7.496 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/0.1815, allocations: 0.6975 MB / 0.6778 GB, free: 6.793 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.1815, allocations: 0 / 0.6778 GB, free: 6.793 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.546e-05/0.1815, allocations: 23.94 kB / 0.6778 GB, free: 6.77 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.1816, allocations: 15.94 kB / 0.6778 GB, free: 6.754 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.183, allocations: 0.6727 MB / 0.6785 GB, free: 6.082 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003897/0.1869, allocations: 2.102 MB / 0.6805 GB, free: 3.906 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007414/0.1943, allocations: 1.751 MB / 0.6822 GB, free: 2.148 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.1954, allocations: 431.1 kB / 0.6826 GB, free: 1.727 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.52e-05/0.1954, allocations: 12.64 kB / 0.6827 GB, free: 1.711 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001206/0.1966, allocations: 0.5274 MB / 0.6832 GB, free: 1.172 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 3.486e-06/0.1967, allocations: 0 / 0.6832 GB, free: 1.172 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.007251/0.2039, allocations: 2.21 MB / 0.6853 GB, free: 14.95 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.204, allocations: 60.06 kB / 0.6854 GB, free: 14.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007547/0.2047, allocations: 0.507 MB / 0.6859 GB, free: 14.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.774e-05/0.2048, allocations: 45.7 kB / 0.6859 GB, free: 14.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003008/0.2051, allocations: 333 kB / 0.6862 GB, free: 13.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002796/0.2054, allocations: 261.8 kB / 0.6865 GB, free: 13.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002514/0.2056, allocations: 122.6 kB / 0.6866 GB, free: 13.59 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001973/0.2058, allocations: 382.8 kB / 0.687 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009144/0.2067, allocations: 401.8 kB / 0.6874 GB, free: 12.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000995/0.2077, allocations: 0.4907 MB / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009368/0.2171, allocations: 2.518 MB / 0.6903 GB, free: 9.754 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/0.2171, allocations: 3.938 kB / 0.6903 GB, free: 9.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00735/0.2245, allocations: 2.201 MB / 0.6924 GB, free: 7.527 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.2245, allocations: 10.5 kB / 0.6925 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.2245, allocations: 0 / 0.6925 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003987/0.2285, allocations: 0.9937 MB / 0.6934 GB, free: 6.516 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005361/0.229, allocations: 111.8 kB / 0.6935 GB, free: 6.406 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.2392, allocations: 4.393 MB / 0.6978 GB, free: 1.906 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008489/0.24, allocations: 107.4 kB / 0.6979 GB, free: 1.801 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.2402, allocations: 31.98 kB / 0.698 GB, free: 1.77 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.0004973/0.2406, allocations: 200.5 kB / 0.6982 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/0.2409, allocations: 75.53 kB / 0.6982 GB, free: 1.492 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2744/0.5153, allocations: 1.673 MB / 0.6999 GB, free: 35.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.5153, allocations: 5.688 kB / 0.6999 GB, free: 35.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.5153, allocations: 8.344 kB / 0.6999 GB, free: 35.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.812e-05/0.5153, allocations: 3.797 kB / 0.6999 GB, free: 35.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004647/0.52, allocations: 2.386 MB / 0.7022 GB, free: 35.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.52, allocations: 0 / 0.7022 GB, free: 35.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.5204, allocations: 71.73 kB / 0.7023 GB, free: 35.41 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.004038/0.5244, allocations: 1.074 MB / 0.7033 GB, free: 35.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.148e-05/0.5245, allocations: 12.97 kB / 0.7033 GB, free: 35.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005451/0.525, allocations: 101.7 kB / 0.7034 GB, free: 35.38 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.525, allocations: 1.578 kB / 0.7034 GB, free: 35.38 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004263/0.5293, allocations: 1.993 MB / 0.7054 GB, free: 35.21 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.5295, allocations: 77.84 kB / 0.7055 GB, free: 35.21 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.751e-05/0.5296, allocations: 15.12 kB / 0.7055 GB, free: 35.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005919/0.5301, allocations: 60.09 kB / 0.7055 GB, free: 35.21 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/0.5305, allocations: 129.1 kB / 0.7056 GB, free: 35.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.397e-05/0.5305, allocations: 18.88 kB / 0.7057 GB, free: 35.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004226/0.5309, allocations: 354.2 kB / 0.706 GB, free: 35.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.5309, allocations: 0 / 0.706 GB, free: 35.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007429/0.5317, allocations: 238.6 kB / 0.7062 GB, free: 35.11 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.004649/0.5363, allocations: 2.564 MB / 0.7087 GB, free: 34.24 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003895/0.5402, allocations: 1.382 MB / 0.7101 GB, free: 33.75 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5402, allocations: 1.344 kB / 0.7101 GB, free: 33.75 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 659] [Calling sys.exit(0), Time elapsed: 3.528722842922434] Failed to read output from testmodel.py, exit status != 0: 0.5493135449942201 0.562379262 0.38804527400000005 Calling exit ...