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.08167/0.08167, allocations: 12.38 MB / 29.42 MB, free: 0.6367 MB / 19.63 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.001246/0.001246, allocations: 115.1 kB / 35.12 MB, free: 1.785 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.405/1.405, allocations: 207.6 MB / 248.3 MB, free: 11.42 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.001535/0.001535, allocations: 216.4 kB / 303.2 MB, free: 6.184 MB / 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.4511/0.4511, allocations: 79.73 MB / 437.6 MB, free: 4.574 MB / 302.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="cs",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.003905/0.003905, allocations: 139.8 kB / 0.5826 GB, free: 8.16 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1431, allocations: 71.93 MB / 0.6528 GB, free: 140 kB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.008185/0.1513, allocations: 4.438 MB / 0.6571 GB, free: 11.68 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003443/0.1548, allocations: 1.217 MB / 0.6583 GB, free: 10.45 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004223/0.1552, allocations: 12 kB / 0.6583 GB, free: 10.44 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004588/0.1556, allocations: 142.8 kB / 0.6585 GB, free: 10.3 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006365/0.1563, allocations: 262 kB / 0.6587 GB, free: 10.04 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.1576, allocations: 0.5368 MB / 0.6592 GB, free: 9.508 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009506/0.1585, allocations: 0.8094 MB / 0.66 GB, free: 8.691 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002896/0.1588, allocations: 145.7 kB / 0.6602 GB, free: 8.535 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004079/0.1592, allocations: 346.5 kB / 0.6605 GB, free: 8.195 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005633/0.1598, allocations: 410 kB / 0.6609 GB, free: 7.793 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.1599, allocations: 64 kB / 0.661 GB, free: 7.73 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000362/0.1603, allocations: 135.9 kB / 0.6611 GB, free: 7.598 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.1604, allocations: 167.3 kB / 0.6612 GB, free: 7.434 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003784/0.1608, allocations: 389.7 kB / 0.6616 GB, free: 7.051 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001165/0.162, allocations: 0.9179 MB / 0.6625 GB, free: 6.129 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.162, allocations: 0 / 0.6625 GB, free: 6.129 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.162, allocations: 0 / 0.6625 GB, free: 6.129 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.162, allocations: 0 / 0.6625 GB, free: 6.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.004902/0.1669, allocations: 1.586 MB / 0.6641 GB, free: 4.488 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.1669, allocations: 11.98 kB / 0.6641 GB, free: 4.477 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.517e-05/0.167, allocations: 13.19 kB / 0.6641 GB, free: 4.465 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001273/0.1671, allocations: 102.7 kB / 0.6642 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002743/0.1698, allocations: 431.2 kB / 0.6646 GB, free: 3.934 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007598/0.1706, allocations: 0.5025 MB / 0.6651 GB, free: 3.391 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002583/0.1709, allocations: 201.8 kB / 0.6653 GB, free: 3.16 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.171, allocations: 52 kB / 0.6653 GB, free: 3.109 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.1725, allocations: 0.6896 MB / 0.666 GB, free: 2.414 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.1725, allocations: 4 kB / 0.666 GB, free: 2.41 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-05/0.1726, allocations: 27.94 kB / 0.666 GB, free: 2.383 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.1726, allocations: 16 kB / 0.666 GB, free: 2.367 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.1741, allocations: 0.6766 MB / 0.6667 GB, free: 1.691 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004039/0.1782, allocations: 2.129 MB / 0.6688 GB, free: 15.48 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008338/0.1865, allocations: 2.205 MB / 0.6709 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.1876, allocations: 431.1 kB / 0.6714 GB, free: 12.74 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-05/0.1877, allocations: 8.594 kB / 0.6714 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001231/0.1889, allocations: 0.5236 MB / 0.6719 GB, free: 12.19 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 3.026e-06/0.1889, allocations: 0 / 0.6719 GB, free: 12.19 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.007778/0.1967, allocations: 2.444 MB / 0.6743 GB, free: 9.68 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.1968, allocations: 60.06 kB / 0.6743 GB, free: 9.605 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007058/0.1975, allocations: 0.4993 MB / 0.6748 GB, free: 9.094 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.965e-05/0.1976, allocations: 45.69 kB / 0.6748 GB, free: 9.043 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003058/0.1979, allocations: 329.1 kB / 0.6752 GB, free: 8.719 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002903/0.1982, allocations: 261.7 kB / 0.6754 GB, free: 8.461 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002591/0.1984, allocations: 122.6 kB / 0.6755 GB, free: 8.336 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002113/0.1986, allocations: 386.8 kB / 0.6759 GB, free: 7.949 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009756/0.1996, allocations: 397.8 kB / 0.6763 GB, free: 7.559 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.2007, allocations: 0.4984 MB / 0.6768 GB, free: 7.031 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009723/0.2104, allocations: 2.522 MB / 0.6792 GB, free: 4.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.2104, allocations: 0 / 0.6792 GB, free: 4.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007646/0.218, allocations: 2.204 MB / 0.6814 GB, free: 2.262 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.2181, allocations: 4 kB / 0.6814 GB, free: 2.258 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.2181, allocations: 4 kB / 0.6814 GB, free: 2.254 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004251/0.2223, allocations: 0.9937 MB / 0.6824 GB, free: 1.25 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005942/0.2229, allocations: 107.8 kB / 0.6825 GB, free: 1.145 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/0.2333, allocations: 4.515 MB / 0.6869 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008877/0.2342, allocations: 103.5 kB / 0.687 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.355e-05/0.2343, allocations: 24 kB / 0.687 GB, free: 12.37 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.0004149/0.2347, allocations: 201.7 kB / 0.6872 GB, free: 12.16 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.2349, allocations: 83.47 kB / 0.6873 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005112/0.24, allocations: 1.667 MB / 0.6889 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.24, allocations: 8 kB / 0.6889 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.24, allocations: 7.938 kB / 0.6889 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.24, allocations: 7.984 kB / 0.6889 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005/0.245, allocations: 2.415 MB / 0.6913 GB, free: 7.855 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.245, allocations: 3.984 kB / 0.6913 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000403/0.2454, allocations: 67.91 kB / 0.6913 GB, free: 7.785 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.004499/0.2499, allocations: 1.064 MB / 0.6924 GB, free: 6.711 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.25, allocations: 19.98 kB / 0.6924 GB, free: 6.691 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005845/0.2506, allocations: 104.6 kB / 0.6925 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2506, allocations: 3.938 kB / 0.6925 GB, free: 6.582 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004814/0.2554, allocations: 1.993 MB / 0.6944 GB, free: 4.562 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.2556, allocations: 160.4 kB / 0.6946 GB, free: 4.387 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.2557, allocations: 16 kB / 0.6946 GB, free: 4.371 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006282/0.2564, allocations: 59.94 kB / 0.6947 GB, free: 4.312 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000336/0.2567, allocations: 128.4 kB / 0.6948 GB, free: 4.188 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.373e-05/0.2567, allocations: 16 kB / 0.6948 GB, free: 4.172 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004354/0.2572, allocations: 354.8 kB / 0.6951 GB, free: 3.828 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2572, allocations: 0 / 0.6951 GB, free: 3.828 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007446/0.2579, allocations: 231.8 kB / 0.6954 GB, free: 3.602 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.005238/0.2632, allocations: 2.556 MB / 0.6979 GB, free: 1.008 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2538/0.517, allocations: 1.526 MB / 0.6994 GB, free: 45.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.517, allocations: 0 / 0.6994 GB, free: 45.2 MB / 494.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:3537:9-3537: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:1564:5-1564:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:818:5-818: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.5077105530072004] Failed to read output from testmodel.py, exit status != 0: 0.5246684879530221 0.538086011 0.37332446700000005 Calling exit ...