Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009269/0.0009271, allocations: 176.5 kB / 15.42 MB, free: 6.148 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 222.9 MB / 239 MB, free: 15.84 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007436/0.0007435, allocations: 100.7 kB / 289.8 MB, free: 4.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3236/0.3236, allocations: 78.43 MB / 419 MB, free: 8 kB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003316, allocations: 8 kB / 498.4 MB, free: 35.46 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3208, allocations: 68.75 MB / 0.5539 GB, free: 10.4 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004597/0.3254, allocations: 4.632 MB / 0.5584 GB, free: 7.504 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.3272, allocations: 1.278 MB / 0.5597 GB, free: 6.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002388/0.3275, allocations: 6.719 kB / 0.5597 GB, free: 6.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003115/0.3278, allocations: 113.4 kB / 0.5598 GB, free: 6.543 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004069/0.3283, allocations: 191.4 kB / 0.5599 GB, free: 6.406 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.3294, allocations: 0.5546 MB / 0.5605 GB, free: 6.066 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006793/0.33, allocations: 0.7654 MB / 0.5612 GB, free: 5.676 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.3303, allocations: 171.4 kB / 0.5614 GB, free: 5.586 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002527/0.3306, allocations: 297.7 kB / 0.5617 GB, free: 5.445 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003903/0.331, allocations: 380.6 kB / 0.562 GB, free: 5.262 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.675e-05/0.3311, allocations: 34.31 kB / 0.5621 GB, free: 5.262 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002668/0.3313, allocations: 98.89 kB / 0.5622 GB, free: 5.238 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.3314, allocations: 135.1 kB / 0.5623 GB, free: 5.156 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002529/0.3317, allocations: 356.6 kB / 0.5626 GB, free: 4.934 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008509/0.3326, allocations: 0.862 MB / 0.5635 GB, free: 4.598 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3326, allocations: 0 / 0.5635 GB, free: 4.598 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3326, allocations: 1.188 kB / 0.5635 GB, free: 4.598 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.3326, allocations: 4 kB / 0.5635 GB, free: 4.594 MB / 378.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.003902/0.3365, allocations: 1.41 MB / 0.5649 GB, free: 3.863 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.3366, allocations: 9.969 kB / 0.5649 GB, free: 3.863 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00253/0.3391, allocations: 434.7 kB / 0.5653 GB, free: 3.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005788/0.3397, allocations: 0.4952 MB / 0.5658 GB, free: 3.383 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.3399, allocations: 198.2 kB / 0.566 GB, free: 3.207 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-05/0.34, allocations: 58.89 kB / 0.566 GB, free: 3.184 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.3413, allocations: 0.6882 MB / 0.5667 GB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3414, allocations: 1.375 kB / 0.5667 GB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.163e-05/0.3414, allocations: 28.92 kB / 0.5667 GB, free: 2.895 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.3414, allocations: 18.48 kB / 0.5667 GB, free: 2.891 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.3428, allocations: 0.6678 MB / 0.5674 GB, free: 2.676 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003776/0.3466, allocations: 2.149 MB / 0.5695 GB, free: 1.465 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007574/0.3542, allocations: 2.274 MB / 0.5717 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009124/0.3551, allocations: 485.1 kB / 0.5722 GB, free: 344 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.523e-05/0.3552, allocations: 12.83 kB / 0.5722 GB, free: 336 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.3563, allocations: 0.5217 MB / 0.5727 GB, free: 124 kB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 2.504e-06/0.3563, allocations: 0 / 0.5727 GB, free: 124 kB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.007181/0.3635, allocations: 2.461 MB / 0.5751 GB, free: 15.09 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.3635, allocations: 59.62 kB / 0.5752 GB, free: 15.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006419/0.3642, allocations: 0.5013 MB / 0.5756 GB, free: 14.73 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.338e-05/0.3643, allocations: 45 kB / 0.5757 GB, free: 14.68 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/0.3645, allocations: 328.2 kB / 0.576 GB, free: 14.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002344/0.3648, allocations: 254.3 kB / 0.5762 GB, free: 14.17 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.52e-05/0.3649, allocations: 63.94 kB / 0.5763 GB, free: 14.12 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.365, allocations: 382.7 kB / 0.5767 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008757/0.3659, allocations: 403.1 kB / 0.5771 GB, free: 13.56 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008887/0.3668, allocations: 0.4934 MB / 0.5775 GB, free: 13.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008638/0.3755, allocations: 2.525 MB / 0.58 GB, free: 11.99 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3755, allocations: 1.344 kB / 0.58 GB, free: 11.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006659/0.3821, allocations: 2.212 MB / 0.5822 GB, free: 10.88 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3822, allocations: 5.312 kB / 0.5822 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3822, allocations: 6.469 kB / 0.5822 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003684/0.3859, allocations: 0.9906 MB / 0.5831 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004833/0.3864, allocations: 109.2 kB / 0.5832 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008251/0.3946, allocations: 4.12 MB / 0.5873 GB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008824/0.3955, allocations: 101.8 kB / 0.5874 GB, free: 7.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.099e-05/0.3956, allocations: 25.88 kB / 0.5874 GB, free: 7.402 MB / 394.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.0003711/0.396, allocations: 202 kB / 0.5876 GB, free: 7.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.3961, allocations: 74.81 kB / 0.5877 GB, free: 7.191 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/0.4006, allocations: 1.702 MB / 0.5893 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.4006, allocations: 6.625 kB / 0.5893 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.4006, allocations: 1.062 kB / 0.5893 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.4006, allocations: 3.984 kB / 0.5893 GB, free: 6.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004271/0.4049, allocations: 2.439 MB / 0.5917 GB, free: 3.957 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.4049, allocations: 3.938 kB / 0.5917 GB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003564/0.4053, allocations: 71.91 kB / 0.5918 GB, free: 3.883 MB / 394.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.003805/0.4091, allocations: 1.064 MB / 0.5928 GB, free: 2.809 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.077e-05/0.4091, allocations: 20 kB / 0.5928 GB, free: 2.789 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000535/0.4097, allocations: 104.6 kB / 0.5929 GB, free: 2.684 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4097, allocations: 3.938 kB / 0.5929 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003972/0.4137, allocations: 2.007 MB / 0.5949 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.4138, allocations: 148.2 kB / 0.595 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.02e-05/0.4139, allocations: 16 kB / 0.5951 GB, free: 480 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.4145, allocations: 55.94 kB / 0.5951 GB, free: 424 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002747/0.4148, allocations: 120.4 kB / 0.5952 GB, free: 304 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.775e-05/0.4149, allocations: 16 kB / 0.5952 GB, free: 288 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003648/0.4152, allocations: 354.8 kB / 0.5956 GB, free: 15.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4152, allocations: 0 / 0.5956 GB, free: 15.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006635/0.4159, allocations: 251.6 kB / 0.5958 GB, free: 15.69 MB / 410.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.0001772/0.4161, allocations: 123.2 kB / 0.5959 GB, free: 15.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003476/0.4196, allocations: 1.569 MB / 0.5975 GB, free: 13.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4196, allocations: 4.062 kB / 0.5975 GB, free: 13.93 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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:3397:9-3397: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:1495:5-1495:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]