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.001581/0.001581, 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.439/1.439, allocations: 230.6 MB / 252.6 MB, free: 8.289 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.001697/0.001697, allocations: 214.6 kB / 309.2 MB, free: 3.141 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.4548/0.4548, 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.002446/0.002446, allocations: 79.88 kB / 0.5929 GB, free: 13.98 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1634, allocations: 73.3 MB / 0.6645 GB, free: 4.586 MB / 462.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.006516/0.17, allocations: 4.41 MB / 0.6688 GB, free: 160 kB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003199/0.1732, allocations: 1.294 MB / 0.6701 GB, free: 14.86 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003232/0.1735, allocations: 8 kB / 0.6701 GB, free: 14.85 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004613/0.1739, allocations: 142.8 kB / 0.6702 GB, free: 14.71 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006257/0.1746, allocations: 270 kB / 0.6705 GB, free: 14.45 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00136/0.1759, allocations: 0.5392 MB / 0.671 GB, free: 13.91 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009889/0.1769, allocations: 0.8056 MB / 0.6718 GB, free: 13.1 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003008/0.1772, allocations: 142.5 kB / 0.6719 GB, free: 12.95 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004468/0.1777, allocations: 346.5 kB / 0.6722 GB, free: 12.61 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000622/0.1783, allocations: 418.1 kB / 0.6726 GB, free: 12.2 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.091e-05/0.1784, allocations: 60 kB / 0.6727 GB, free: 12.14 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003582/0.1787, allocations: 143.8 kB / 0.6728 GB, free: 12 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.1789, allocations: 163.4 kB / 0.673 GB, free: 11.84 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004516/0.1793, allocations: 385.7 kB / 0.6734 GB, free: 11.46 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.1805, allocations: 0.9179 MB / 0.6743 GB, free: 10.54 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1805, allocations: 0 / 0.6743 GB, free: 10.54 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1805, allocations: 4 kB / 0.6743 GB, free: 10.54 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.581e-05/0.1805, allocations: 0 / 0.6743 GB, free: 10.54 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.004653/0.1852, allocations: 1.618 MB / 0.6758 GB, free: 8.875 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.1852, allocations: 11.98 kB / 0.6759 GB, free: 8.863 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001464/0.1853, allocations: 98.7 kB / 0.6759 GB, free: 8.758 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002596/0.1879, allocations: 427.4 kB / 0.6764 GB, free: 8.34 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008178/0.1888, allocations: 439.5 kB / 0.6768 GB, free: 7.887 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003162/0.1891, allocations: 278.9 kB / 0.677 GB, free: 7.562 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.1892, allocations: 52 kB / 0.6771 GB, free: 7.512 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.1907, allocations: 0.6974 MB / 0.6778 GB, free: 6.809 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1907, allocations: 0 / 0.6778 GB, free: 6.809 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.649e-05/0.1908, allocations: 27.92 kB / 0.6778 GB, free: 6.781 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.1908, allocations: 19.88 kB / 0.6778 GB, free: 6.762 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.1922, allocations: 0.6766 MB / 0.6785 GB, free: 6.086 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004119/0.1963, allocations: 2.094 MB / 0.6805 GB, free: 3.918 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00757/0.2039, allocations: 1.763 MB / 0.6822 GB, free: 2.148 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.205, allocations: 431.1 kB / 0.6827 GB, free: 1.727 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.096e-05/0.2051, allocations: 12.64 kB / 0.6827 GB, free: 1.711 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.2063, allocations: 0.5235 MB / 0.6832 GB, free: 1.176 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 3.076e-06/0.2063, allocations: 0 / 0.6832 GB, free: 1.176 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.007254/0.2136, allocations: 2.21 MB / 0.6853 GB, free: 14.95 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.2136, allocations: 60.06 kB / 0.6854 GB, free: 14.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006978/0.2143, allocations: 0.507 MB / 0.6859 GB, free: 14.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.43e-05/0.2144, allocations: 41.7 kB / 0.6859 GB, free: 14.31 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002826/0.2147, allocations: 333 kB / 0.6862 GB, free: 13.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002754/0.215, allocations: 257.8 kB / 0.6865 GB, free: 13.73 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/0.2152, allocations: 122.6 kB / 0.6866 GB, free: 13.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.2154, allocations: 386.8 kB / 0.687 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009072/0.2163, allocations: 401.8 kB / 0.6874 GB, free: 12.83 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009996/0.2173, allocations: 0.4946 MB / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009299/0.2266, allocations: 2.514 MB / 0.6903 GB, free: 9.762 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.2266, allocations: 3.938 kB / 0.6903 GB, free: 9.758 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007331/0.234, allocations: 2.201 MB / 0.6924 GB, free: 7.535 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.234, allocations: 4 kB / 0.6925 GB, free: 7.531 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.234, allocations: 4 kB / 0.6925 GB, free: 7.527 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004033/0.2381, allocations: 0.9976 MB / 0.6934 GB, free: 6.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005876/0.2386, allocations: 107.8 kB / 0.6935 GB, free: 6.414 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009891/0.2485, allocations: 4.41 MB / 0.6978 GB, free: 1.898 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008492/0.2494, allocations: 103.5 kB / 0.6979 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/0.2494, allocations: 24 kB / 0.698 GB, free: 1.773 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.0003793/0.2498, allocations: 200.5 kB / 0.6982 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.25, allocations: 75.53 kB / 0.6982 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3076/0.5576, allocations: 1.671 MB / 0.6999 GB, free: 36.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.5576, allocations: 8 kB / 0.6999 GB, free: 36.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.5576, allocations: 8.656 kB / 0.6999 GB, free: 36.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/0.5576, allocations: 3.469 kB / 0.6999 GB, free: 36.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00457/0.5622, allocations: 2.384 MB / 0.7022 GB, free: 35.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.5622, allocations: 2.688 kB / 0.7022 GB, free: 35.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003981/0.5626, allocations: 73.73 kB / 0.7023 GB, free: 35.61 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.004251/0.5668, allocations: 1.068 MB / 0.7033 GB, free: 35.58 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.132e-05/0.5669, allocations: 12.73 kB / 0.7033 GB, free: 35.58 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000559/0.5675, allocations: 105.8 kB / 0.7034 GB, free: 35.57 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5675, allocations: 0 / 0.7034 GB, free: 35.57 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004448/0.5719, allocations: 1.993 MB / 0.7054 GB, free: 35.41 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/0.5721, allocations: 75.83 kB / 0.7055 GB, free: 35.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.5722, allocations: 18.89 kB / 0.7055 GB, free: 35.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006486/0.5729, allocations: 54.94 kB / 0.7055 GB, free: 35.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003639/0.5733, allocations: 128.1 kB / 0.7056 GB, free: 35.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-05/0.5733, allocations: 23.59 kB / 0.7057 GB, free: 35.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004762/0.5738, allocations: 353.8 kB / 0.706 GB, free: 35.31 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5738, allocations: 0 / 0.706 GB, free: 35.31 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007676/0.5746, allocations: 238.1 kB / 0.7062 GB, free: 35.3 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.004854/0.5794, allocations: 2.559 MB / 0.7087 GB, free: 34.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00404/0.5835, allocations: 1.385 MB / 0.7101 GB, free: 33.93 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.5835, allocations: 0.625 kB / 0.7101 GB, free: 33.93 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.659114795002097] Failed to read output from testmodel.py, exit status != 0: 0.59269919000144 0.607530024 0.424047441 Calling exit ...