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.05393/0.05393, allocations: 9.511 MB / 29.37 MB, free: 164 kB / 18.57 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/WorkInProgress.mo:11:9-20:24:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/WorkInProgress.mo:130:9-144:24:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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.001337/0.001337, allocations: 99.33 kB / 35.55 MB, free: 0.5742 MB / 24.77 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 0.9434/0.9434, allocations: 158.6 MB / 197.4 MB, free: 6.883 MB / 186.7 MB " [Timeout remaining time 179] 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.001605/0.001605, allocations: 175.4 kB / 249.9 MB, free: 5.422 MB / 234.7 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.2256/0.2256, allocations: 59.71 MB / 312.9 MB, free: 6.316 MB / 298.7 MB " [Timeout remaining time 180] 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: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=35000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 350.9 MB, free: 216 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.164e-05, allocations: 2.312 kB / 350.9 MB, free: 212 kB / 330.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.1489/0.1489, allocations: 4.205 MB / 355.1 MB, free: 21.77 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002107/0.151, allocations: 1.222 MB / 356.4 MB, free: 20.94 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000265/0.1513, allocations: 7.75 kB / 356.4 MB, free: 20.94 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002988/0.1516, allocations: 150.1 kB / 356.5 MB, free: 20.86 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000502/0.1521, allocations: 286.1 kB / 356.8 MB, free: 20.64 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009085/0.153, allocations: 0.5265 MB / 357.3 MB, free: 20.36 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000724/0.1537, allocations: 0.8325 MB / 358.2 MB, free: 19.92 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.154, allocations: 146.9 kB / 358.3 MB, free: 19.82 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005184/0.1545, allocations: 491 kB / 358.8 MB, free: 19.61 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004196/0.1549, allocations: 313.1 kB / 359.1 MB, free: 19.5 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.503e-05/0.155, allocations: 62.78 kB / 359.1 MB, free: 19.5 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002739/0.1553, allocations: 130.9 kB / 359.3 MB, free: 19.48 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.438e-05/0.1554, allocations: 173.5 kB / 359.4 MB, free: 19.36 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001925/0.1555, allocations: 258.7 kB / 359.7 MB, free: 19.24 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004993/0.156, allocations: 0.6789 MB / 360.4 MB, free: 18.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.156, allocations: 1.594 kB / 360.4 MB, free: 18.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1561, allocations: 0 / 360.4 MB, free: 18.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1561, allocations: 0 / 360.4 MB, free: 18.82 MB / 330.7 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.001926/0.158, allocations: 1.511 MB / 361.9 MB, free: 17.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.964e-05/0.158, allocations: 11.28 kB / 361.9 MB, free: 17.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001282/0.1593, allocations: 0.5364 MB / 362.4 MB, free: 17.67 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00033/0.1596, allocations: 345.9 kB / 362.8 MB, free: 17.41 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.1597, allocations: 276.9 kB / 363 MB, free: 17.13 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.699e-05/0.1598, allocations: 56 kB / 363.1 MB, free: 17.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/0.1602, allocations: 422.5 kB / 363.5 MB, free: 16.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1602, allocations: 1.469 kB / 363.5 MB, free: 16.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.1603, allocations: 24.25 kB / 363.5 MB, free: 16.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.1603, allocations: 12.75 kB / 363.5 MB, free: 16.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002871/0.1606, allocations: 211.7 kB / 363.8 MB, free: 16.8 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.1621, allocations: 1.072 MB / 364.8 MB, free: 16.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002299/0.1644, allocations: 1.185 MB / 366 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.1646, allocations: 151.2 kB / 366.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.606e-05/0.1647, allocations: 16.66 kB / 366.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.1649, allocations: 264.2 kB / 366.4 MB, free: 14.87 MB / 330.7 MB Notification: Performance of pre-optimization done (n=73): time 2.004e-06/0.1649, allocations: 1.219 kB / 366.4 MB, free: 14.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.001799/0.1667, allocations: 1.065 MB / 367.5 MB, free: 13.81 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.565e-05/0.1667, allocations: 64 kB / 367.6 MB, free: 13.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002033/0.1669, allocations: 475.1 kB / 368 MB, free: 13.26 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.686e-05/0.1669, allocations: 41.7 kB / 368.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.745e-05/0.167, allocations: 254.3 kB / 368.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.1671, allocations: 266.6 kB / 368.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.1672, allocations: 122.6 kB / 368.7 MB, free: 12.57 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.47e-05/0.1673, allocations: 391.1 kB / 369.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.1674, allocations: 111.5 kB / 369.2 MB, free: 12.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.1676, allocations: 194.6 kB / 369.4 MB, free: 11.85 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004467/0.168, allocations: 0.5186 MB / 369.9 MB, free: 11.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.168, allocations: 0.8125 kB / 369.9 MB, free: 11.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001921/0.1699, allocations: 1.224 MB / 371.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.17, allocations: 9.312 kB / 371.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.17, allocations: 4 kB / 371.1 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001895/0.1719, allocations: 0.8303 MB / 372 MB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.1721, allocations: 103.9 kB / 372.1 MB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002341/0.1744, allocations: 2.331 MB / 374.4 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.1746, allocations: 83.55 kB / 374.5 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.1747, allocations: 27.92 kB / 374.5 MB, free: 6.645 MB / 330.7 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.0001359/0.1748, allocations: 162.9 kB / 374.7 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.102e-05/0.1749, allocations: 71.88 kB / 374.7 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0011/0.176, allocations: 0.8311 MB / 375.6 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.176, allocations: 8 kB / 375.6 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.176, allocations: 0 / 375.6 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.176, allocations: 5.156 kB / 375.6 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.177, allocations: 0.9998 MB / 376.6 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.177, allocations: 0 / 376.6 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.1772, allocations: 72.39 kB / 376.6 MB, free: 4.441 MB / 330.7 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.00118/0.1784, allocations: 0.6621 MB / 377.3 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.1784, allocations: 19.92 kB / 377.3 MB, free: 3.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001913/0.1786, allocations: 80.78 kB / 377.4 MB, free: 3.668 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1786, allocations: 9.312 kB / 377.4 MB, free: 3.66 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008477/0.1794, allocations: 0.8024 MB / 378.2 MB, free: 2.832 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.1795, allocations: 77.12 kB / 378.3 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.92e-05/0.1796, allocations: 12 kB / 378.3 MB, free: 2.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/0.1798, allocations: 47.95 kB / 378.4 MB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.1799, allocations: 120.4 kB / 378.5 MB, free: 2.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.108e-05/0.1799, allocations: 12 kB / 378.5 MB, free: 2.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001003/0.18, allocations: 216.3 kB / 378.7 MB, free: 2.359 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.18, allocations: 7.938 kB / 378.7 MB, free: 2.352 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003775/0.1804, allocations: 231.8 kB / 378.9 MB, free: 2.125 MB / 330.7 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.0001234/0.1805, allocations: 100.3 kB / 379 MB, free: 2.016 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1815, allocations: 0.8026 MB / 379.8 MB, free: 1.195 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/0.1815, allocations: 8 kB / 379.8 MB, free: 1.188 MB / 330.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3415:9-3415: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1463:5-1463:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:790:5-790: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: 2.0073093022219837]