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.005431/0.005431, allocations: 170.6 kB / 15.12 MB, free: 5.555 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.404/1.404, allocations: 223.2 MB / 239 MB, free: 1.789 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008278/0.0008277, allocations: 95.28 kB / 290.2 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.433/0.433, allocations: 78.59 MB / 419.9 MB, free: 44.2 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000339/0.0003391, allocations: 12 kB / 499.8 MB, free: 2.961 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3073, allocations: 69.35 MB / 0.5558 GB, free: 38.77 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003062/0.3104, allocations: 3.784 MB / 0.5595 GB, free: 38.49 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.312, allocations: 1.235 MB / 0.5607 GB, free: 38.24 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001841/0.3122, allocations: 7.656 kB / 0.5607 GB, free: 38.24 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000256/0.3125, allocations: 106.8 kB / 0.5608 GB, free: 38.2 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003885/0.3129, allocations: 242.7 kB / 0.561 GB, free: 38.05 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008544/0.3138, allocations: 0.4904 MB / 0.5615 GB, free: 37.75 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.000464/0.3142, allocations: 0.5292 MB / 0.562 GB, free: 37.46 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.3145, allocations: 163.8 kB / 0.5622 GB, free: 37.38 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.3147, allocations: 293 kB / 0.5624 GB, free: 37.24 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003788/0.3151, allocations: 357.4 kB / 0.5628 GB, free: 37.07 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 6.851e-05/0.3152, allocations: 37.31 kB / 0.5628 GB, free: 37.07 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002204/0.3154, allocations: 81.09 kB / 0.5629 GB, free: 37.06 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.3155, allocations: 131.8 kB / 0.563 GB, free: 36.98 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.3156, allocations: 151.9 kB / 0.5632 GB, free: 36.88 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006321/0.3163, allocations: 0.6371 MB / 0.5638 GB, free: 36.69 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.3163, allocations: 0 / 0.5638 GB, free: 36.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3163, allocations: 7.938 kB / 0.5638 GB, free: 36.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.3163, allocations: 0 / 0.5638 GB, free: 36.68 MB / 426.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.003745/0.32, allocations: 1.464 MB / 0.5652 GB, free: 35.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.87e-05/0.3201, allocations: 8.906 kB / 0.5652 GB, free: 35.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002316/0.3224, allocations: 428 kB / 0.5656 GB, free: 35.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000517/0.3229, allocations: 480 kB / 0.5661 GB, free: 35.49 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/0.3231, allocations: 201.3 kB / 0.5663 GB, free: 35.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.199e-05/0.3232, allocations: 51.62 kB / 0.5663 GB, free: 35.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.3245, allocations: 0.7316 MB / 0.5671 GB, free: 35.02 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.3245, allocations: 0 / 0.5671 GB, free: 35.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.059e-05/0.3246, allocations: 24.11 kB / 0.5671 GB, free: 35 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.3246, allocations: 17.88 kB / 0.5671 GB, free: 35 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.3258, allocations: 0.7117 MB / 0.5678 GB, free: 34.78 MB / 426.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.002993/0.3288, allocations: 2.384 MB / 0.5701 GB, free: 33.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007513/0.3363, allocations: 2.745 MB / 0.5728 GB, free: 32.31 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.333e-05/0.3364, allocations: 6.719 kB / 0.5728 GB, free: 32.31 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009526/0.3374, allocations: 0.5559 MB / 0.5734 GB, free: 32.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=73): time 1.933e-06/0.3374, allocations: 0 / 0.5734 GB, free: 32.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=73): time 0.006646/0.344, allocations: 2.837 MB / 0.5761 GB, free: 31.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.678e-05/0.3441, allocations: 64.25 kB / 0.5762 GB, free: 31.06 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00041/0.3445, allocations: 0.5035 MB / 0.5767 GB, free: 30.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.3446, allocations: 36.52 kB / 0.5767 GB, free: 30.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.3447, allocations: 329.3 kB / 0.577 GB, free: 30.53 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.3449, allocations: 244.5 kB / 0.5773 GB, free: 30.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.334e-05/0.3449, allocations: 18.62 kB / 0.5773 GB, free: 30.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.247e-05/0.345, allocations: 377 kB / 0.5776 GB, free: 29.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007939/0.3458, allocations: 447.1 kB / 0.5781 GB, free: 29.83 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008175/0.3466, allocations: 0.5275 MB / 0.5786 GB, free: 29.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008098/0.3474, allocations: 472.5 kB / 0.579 GB, free: 29.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3474, allocations: 3.938 kB / 0.579 GB, free: 29.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006671/0.3541, allocations: 2.631 MB / 0.5816 GB, free: 28.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.3541, allocations: 5.5 kB / 0.5816 GB, free: 28.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3542, allocations: 2.719 kB / 0.5816 GB, free: 28.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00383/0.358, allocations: 1.191 MB / 0.5828 GB, free: 28.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004667/0.3585, allocations: 113.2 kB / 0.5829 GB, free: 28.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008238/0.3667, allocations: 4.658 MB / 0.5874 GB, free: 26.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000806/0.3675, allocations: 123.7 kB / 0.5875 GB, free: 25.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.352e-05/0.3676, allocations: 22.12 kB / 0.5876 GB, free: 25.96 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xp: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 ($whenCondition1,$whenCondition2,$PRE.ultc.m,ultc.m,ultc.zeroCrossing.y,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.disable,$PRE.ultc.zeroCrossing.u_pos,ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.enable,ultc.zeroCrossing.enable) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003265/0.3679, allocations: 212.1 kB / 0.5878 GB, free: 25.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.636e-05/0.368, allocations: 79.09 kB / 0.5878 GB, free: 25.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004711/0.3728, allocations: 1.95 MB / 0.5897 GB, free: 25.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3728, allocations: 7.594 kB / 0.5898 GB, free: 25.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3728, allocations: 1.031 kB / 0.5898 GB, free: 25.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.3728, allocations: 5.953 kB / 0.5898 GB, free: 25.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004275/0.3771, allocations: 2.603 MB / 0.5923 GB, free: 23.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3771, allocations: 1.5 kB / 0.5923 GB, free: 23.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.3775, allocations: 68.64 kB / 0.5924 GB, free: 23.91 MB / 426.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.004201/0.3817, allocations: 1.261 MB / 0.5936 GB, free: 23.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.307e-05/0.3818, allocations: 12.03 kB / 0.5936 GB, free: 23.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005734/0.3824, allocations: 128.2 kB / 0.5937 GB, free: 23.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3824, allocations: 7.953 kB / 0.5937 GB, free: 23.63 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004385/0.3868, allocations: 2.209 MB / 0.5959 GB, free: 22.75 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.387, allocations: 167.3 kB / 0.5961 GB, free: 22.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3871, allocations: 11.66 kB / 0.5961 GB, free: 22.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006128/0.3877, allocations: 76.89 kB / 0.5961 GB, free: 22.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/0.388, allocations: 124.5 kB / 0.5963 GB, free: 22.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.871e-05/0.388, allocations: 16.81 kB / 0.5963 GB, free: 22.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000362/0.3884, allocations: 352.1 kB / 0.5966 GB, free: 22.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3884, allocations: 4 kB / 0.5966 GB, free: 22.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007185/0.3891, allocations: 232.3 kB / 0.5968 GB, free: 22.36 MB / 426.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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {16 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001627/0.3893, allocations: 124.7 kB / 0.597 GB, free: 22.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003842/0.3932, allocations: 1.747 MB / 0.5987 GB, free: 21.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3932, allocations: 1.219 kB / 0.5987 GB, free: 21.48 MB / 426.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:3336:9-3336: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:1480:5-1480:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]