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.1054/0.1054, allocations: 12.36 MB / 28.71 MB, free: 0.6328 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.001247/0.001247, allocations: 111.2 kB / 34.42 MB, free: 1.711 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.4/1.4, allocations: 207.6 MB / 247.6 MB, free: 11.41 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.001561/0.001561, allocations: 208 kB / 302.5 MB, free: 6.188 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.448/0.448, allocations: 79.71 MB / 436.9 MB, free: 4.969 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",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.003929/0.003929, allocations: 147.7 kB / 0.5819 GB, free: 8.188 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1427, allocations: 71.92 MB / 0.6521 GB, free: 172 kB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005679/0.1484, allocations: 4.435 MB / 0.6564 GB, free: 11.71 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.1508, allocations: 1.224 MB / 0.6576 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002718/0.1511, allocations: 8 kB / 0.6576 GB, free: 10.47 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003955/0.1515, allocations: 146.8 kB / 0.6578 GB, free: 10.32 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005551/0.152, allocations: 258 kB / 0.658 GB, free: 10.07 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00123/0.1532, allocations: 0.529 MB / 0.6586 GB, free: 9.543 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008885/0.1541, allocations: 0.8056 MB / 0.6593 GB, free: 8.73 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.1544, allocations: 145.7 kB / 0.6595 GB, free: 8.574 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003534/0.1547, allocations: 342.5 kB / 0.6598 GB, free: 8.238 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005328/0.1553, allocations: 418 kB / 0.6602 GB, free: 7.828 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.67e-05/0.1554, allocations: 64 kB / 0.6603 GB, free: 7.766 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002885/0.1557, allocations: 132 kB / 0.6604 GB, free: 7.637 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.1558, allocations: 171.2 kB / 0.6606 GB, free: 7.469 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003637/0.1562, allocations: 385.7 kB / 0.6609 GB, free: 7.09 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.1572, allocations: 0.9218 MB / 0.6618 GB, free: 6.164 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1572, allocations: 0 / 0.6618 GB, free: 6.164 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1572, allocations: 0 / 0.6618 GB, free: 6.164 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.1572, allocations: 0 / 0.6618 GB, free: 6.164 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.004688/0.1619, allocations: 1.59 MB / 0.6634 GB, free: 4.52 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.162, allocations: 15.98 kB / 0.6634 GB, free: 4.504 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001347/0.1621, allocations: 94.7 kB / 0.6635 GB, free: 4.402 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002718/0.1648, allocations: 435.4 kB / 0.6639 GB, free: 3.977 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007458/0.1656, allocations: 0.5025 MB / 0.6644 GB, free: 3.434 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002522/0.1658, allocations: 197.8 kB / 0.6646 GB, free: 3.207 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.1659, allocations: 52 kB / 0.6646 GB, free: 3.156 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.1674, allocations: 0.6858 MB / 0.6653 GB, free: 2.465 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.1675, allocations: 0 / 0.6653 GB, free: 2.465 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.33e-05/0.1675, allocations: 27.94 kB / 0.6653 GB, free: 2.438 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.1675, allocations: 27.92 kB / 0.6653 GB, free: 2.41 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.1691, allocations: 0.6688 MB / 0.666 GB, free: 1.742 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003879/0.1729, allocations: 2.137 MB / 0.6681 GB, free: 15.52 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008294/0.1812, allocations: 2.189 MB / 0.6702 GB, free: 13.22 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001052/0.1823, allocations: 431.1 kB / 0.6706 GB, free: 12.8 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.089e-05/0.1824, allocations: 12.64 kB / 0.6706 GB, free: 12.79 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.1836, allocations: 0.5196 MB / 0.6712 GB, free: 12.25 MB / 478.1 MB Notification: Performance of pre-optimization done (n=73): time 2.715e-06/0.1836, allocations: 4 kB / 0.6712 GB, free: 12.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=73): time 0.007735/0.1914, allocations: 2.447 MB / 0.6735 GB, free: 9.73 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.1914, allocations: 64.06 kB / 0.6736 GB, free: 9.652 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006752/0.1921, allocations: 0.5032 MB / 0.6741 GB, free: 9.137 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.255e-05/0.1922, allocations: 41.7 kB / 0.6741 GB, free: 9.09 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.1924, allocations: 329.1 kB / 0.6745 GB, free: 8.766 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002881/0.1927, allocations: 257.8 kB / 0.6747 GB, free: 8.512 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002626/0.193, allocations: 122.6 kB / 0.6748 GB, free: 8.387 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.1932, allocations: 382.8 kB / 0.6752 GB, free: 8.004 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009599/0.1942, allocations: 405.8 kB / 0.6756 GB, free: 7.609 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001066/0.1952, allocations: 0.4946 MB / 0.6761 GB, free: 7.082 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009579/0.2048, allocations: 2.518 MB / 0.6785 GB, free: 4.539 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.2048, allocations: 3.938 kB / 0.6785 GB, free: 4.535 MB / 478.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007793/0.2126, allocations: 2.204 MB / 0.6807 GB, free: 2.312 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.2126, allocations: 4 kB / 0.6807 GB, free: 2.309 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.2126, allocations: 4 kB / 0.6807 GB, free: 2.305 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004171/0.2168, allocations: 0.9936 MB / 0.6816 GB, free: 1.301 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005662/0.2174, allocations: 115.8 kB / 0.6818 GB, free: 1.188 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0101/0.2275, allocations: 4.507 MB / 0.6862 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008058/0.2283, allocations: 95.59 kB / 0.6862 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.549e-05/0.2284, allocations: 31.92 kB / 0.6863 GB, free: 12.41 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.0003631/0.2287, allocations: 201.8 kB / 0.6865 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.2288, allocations: 79.48 kB / 0.6865 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005024/0.2339, allocations: 1.674 MB / 0.6882 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/0.2339, allocations: 4 kB / 0.6882 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.2339, allocations: 7.938 kB / 0.6882 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.2339, allocations: 3.984 kB / 0.6882 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004949/0.2388, allocations: 2.419 MB / 0.6906 GB, free: 7.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.2389, allocations: 0 / 0.6906 GB, free: 7.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.2393, allocations: 79.89 kB / 0.6906 GB, free: 7.832 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.004402/0.2437, allocations: 1.06 MB / 0.6917 GB, free: 6.762 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-05/0.2437, allocations: 16 kB / 0.6917 GB, free: 6.746 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005858/0.2443, allocations: 104.6 kB / 0.6918 GB, free: 6.641 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2443, allocations: 0 / 0.6918 GB, free: 6.641 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004731/0.2491, allocations: 1.997 MB / 0.6937 GB, free: 4.617 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.2493, allocations: 156.5 kB / 0.6939 GB, free: 4.445 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.2494, allocations: 23.92 kB / 0.6939 GB, free: 4.422 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006183/0.25, allocations: 51.94 kB / 0.694 GB, free: 4.371 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003346/0.2503, allocations: 120.6 kB / 0.6941 GB, free: 4.254 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.151e-05/0.2504, allocations: 16.19 kB / 0.6941 GB, free: 4.238 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000446/0.2508, allocations: 362.8 kB / 0.6944 GB, free: 3.887 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2508, allocations: 3.938 kB / 0.6944 GB, free: 3.883 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007715/0.2516, allocations: 231.8 kB / 0.6947 GB, free: 3.656 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.005218/0.2568, allocations: 2.56 MB / 0.6972 GB, free: 1.059 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2507/0.5075, allocations: 1.531 MB / 0.6987 GB, free: 45.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.5075, allocations: 0 / 0.6987 GB, free: 45.34 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.5461586080054985] Failed to read output from testmodel.py, exit status != 0: 0.5148669369955314 0.528338034 0.368448945 Calling exit ...