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.05006/0.05006, allocations: 9.511 MB / 29.37 MB, free: 152 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.0008649/0.0008649, allocations: 99.33 kB / 35.55 MB, free: 0.5625 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 1.107/1.107, allocations: 158.6 MB / 197.4 MB, free: 6.91 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.001698/0.001698, allocations: 172 kB / 249.9 MB, free: 5.434 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.2375/0.2375, allocations: 59.7 MB / 312.9 MB, free: 6.324 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 3.096e-06/3.096e-06, allocations: 0 / 351 MB, free: 160 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.362e-05/4.672e-05, allocations: 6.25 kB / 351 MB, free: 152 kB / 330.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.1903/0.1903, allocations: 4.239 MB / 355.2 MB, free: 21.52 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.1927, allocations: 1.231 MB / 356.5 MB, free: 20.68 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003485/0.1931, allocations: 5.781 kB / 356.5 MB, free: 20.68 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003397/0.1934, allocations: 144.1 kB / 356.6 MB, free: 20.61 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000552/0.1939, allocations: 286.3 kB / 356.9 MB, free: 20.39 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.195, allocations: 0.5178 MB / 357.4 MB, free: 20.11 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000857/0.1958, allocations: 0.8353 MB / 358.2 MB, free: 19.66 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.1961, allocations: 146.1 kB / 358.4 MB, free: 19.57 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000627/0.1967, allocations: 487 kB / 358.9 MB, free: 19.36 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005353/0.1972, allocations: 314.7 kB / 359.2 MB, free: 19.25 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.1974, allocations: 66.75 kB / 359.2 MB, free: 19.25 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003791/0.1978, allocations: 133.8 kB / 359.4 MB, free: 19.23 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.1979, allocations: 169.2 kB / 359.5 MB, free: 19.11 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002218/0.1981, allocations: 258.2 kB / 359.8 MB, free: 18.99 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006741/0.1988, allocations: 0.6816 MB / 360.5 MB, free: 18.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1988, allocations: 0 / 360.5 MB, free: 18.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1988, allocations: 0.5312 kB / 360.5 MB, free: 18.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.237e-05/0.1988, allocations: 0.5625 kB / 360.5 MB, free: 18.6 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.002358/0.2011, allocations: 1.515 MB / 362 MB, free: 17.64 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.2012, allocations: 10.5 kB / 362 MB, free: 17.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001635/0.2028, allocations: 0.537 MB / 362.5 MB, free: 17.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.2032, allocations: 343.4 kB / 362.9 MB, free: 17.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.2034, allocations: 274.4 kB / 363.1 MB, free: 16.9 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.912e-05/0.2034, allocations: 53.64 kB / 363.2 MB, free: 16.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000507/0.204, allocations: 424.6 kB / 363.6 MB, free: 16.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.204, allocations: 0.8125 kB / 363.6 MB, free: 16.65 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.73e-05/0.204, allocations: 26 kB / 363.6 MB, free: 16.63 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.204, allocations: 12.81 kB / 363.6 MB, free: 16.63 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.2044, allocations: 212 kB / 363.8 MB, free: 16.57 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.001772/0.2061, allocations: 1.071 MB / 364.9 MB, free: 16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/0.2087, allocations: 1.182 MB / 366.1 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.2089, allocations: 147.2 kB / 366.2 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.621e-05/0.2089, allocations: 21.2 kB / 366.3 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.2092, allocations: 265.1 kB / 366.5 MB, free: 14.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=73): time 3.487e-06/0.2092, allocations: 0.5312 kB / 366.5 MB, free: 14.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.001989/0.2112, allocations: 1.068 MB / 367.6 MB, free: 13.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.2112, allocations: 61.94 kB / 367.6 MB, free: 13.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.2114, allocations: 475.1 kB / 368.1 MB, free: 13.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.2115, allocations: 41.7 kB / 368.2 MB, free: 13.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/0.2115, allocations: 258.3 kB / 368.4 MB, free: 12.76 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.2116, allocations: 261.7 kB / 368.7 MB, free: 12.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.2118, allocations: 128.3 kB / 368.8 MB, free: 12.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.577e-05/0.2118, allocations: 394.6 kB / 369.2 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.212, allocations: 105.9 kB / 369.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.2121, allocations: 198.6 kB / 369.5 MB, free: 11.65 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004642/0.2126, allocations: 0.5151 MB / 370 MB, free: 11.12 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.2126, allocations: 4 kB / 370 MB, free: 11.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002114/0.2147, allocations: 1.221 MB / 371.2 MB, free: 9.898 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.2147, allocations: 8 kB / 371.2 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.036e-06/0.2147, allocations: 0 / 371.2 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001998/0.2167, allocations: 0.8325 MB / 372 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.217, allocations: 119.8 kB / 372.2 MB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002665/0.2197, allocations: 2.326 MB / 374.5 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.22, allocations: 91.47 kB / 374.6 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.22, allocations: 20 kB / 374.6 MB, free: 6.422 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.0001815/0.2202, allocations: 162.2 kB / 374.8 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.551e-05/0.2203, allocations: 81 kB / 374.8 MB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001336/0.2216, allocations: 0.8272 MB / 375.7 MB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2216, allocations: 4 kB / 375.7 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2216, allocations: 5.375 kB / 375.7 MB, free: 5.328 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.2216, allocations: 3.984 kB / 375.7 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/0.2229, allocations: 1.004 MB / 376.7 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.2229, allocations: 0 / 376.7 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001987/0.2231, allocations: 79.89 kB / 376.8 MB, free: 4.203 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.001301/0.2244, allocations: 0.6582 MB / 377.4 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.826e-05/0.2244, allocations: 15.94 kB / 377.4 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002083/0.2247, allocations: 92.75 kB / 377.5 MB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2247, allocations: 0 / 377.5 MB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009398/0.2256, allocations: 0.8024 MB / 378.3 MB, free: 2.598 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.2257, allocations: 76.45 kB / 378.4 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.2257, allocations: 12.94 kB / 378.4 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.226, allocations: 47.95 kB / 378.5 MB, free: 2.465 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.2261, allocations: 120.4 kB / 378.6 MB, free: 2.348 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.2261, allocations: 16 kB / 378.6 MB, free: 2.332 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000118/0.2263, allocations: 220.3 kB / 378.8 MB, free: 2.117 MB / 330.7 MB Notification: Performance of sort global known variables: time 3e-08/0.2263, allocations: 0 / 378.8 MB, free: 2.117 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004346/0.2267, allocations: 231.8 kB / 379 MB, free: 1.891 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.0001295/0.2268, allocations: 101.5 kB / 379.1 MB, free: 1.781 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.228, allocations: 0.7984 MB / 379.9 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/0.228, allocations: 8 kB / 379.9 MB, free: 0.957 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:3416:9-3416: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:1464:5-1464:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:791:5-791: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.2898821691051126]