Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 107.6 kB / 16.36 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 240 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001513/0.001512, allocations: 196.4 kB / 290.3 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4521/0.4521, allocations: 78.53 MB / 419 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 71.89 kB / 498.9 MB, free: 5.664 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1273, allocations: 68.18 MB / 0.5538 GB, free: 1.445 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2057/0.333, allocations: 4.362 MB / 0.558 GB, free: 37.54 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.3347, allocations: 1.24 MB / 0.5592 GB, free: 37.15 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001842/0.3349, allocations: 2.844 kB / 0.5592 GB, free: 37.15 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003142/0.3352, allocations: 141.4 kB / 0.5594 GB, free: 37.15 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004081/0.3357, allocations: 234.7 kB / 0.5596 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009732/0.3366, allocations: 0.5681 MB / 0.5602 GB, free: 37 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005479/0.3372, allocations: 0.8111 MB / 0.561 GB, free: 36.95 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002678/0.3375, allocations: 198.8 kB / 0.5611 GB, free: 36.91 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/0.3377, allocations: 329.6 kB / 0.5615 GB, free: 36.84 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003572/0.3381, allocations: 416.8 kB / 0.5619 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.953e-05/0.3381, allocations: 62.62 kB / 0.5619 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.3384, allocations: 133.4 kB / 0.562 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.873e-05/0.3385, allocations: 164.5 kB / 0.5622 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002384/0.3387, allocations: 395.3 kB / 0.5626 GB, free: 36.55 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006084/0.3394, allocations: 0.916 MB / 0.5635 GB, free: 36.34 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.3394, allocations: 0 / 0.5635 GB, free: 36.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3394, allocations: 0.7812 kB / 0.5635 GB, free: 36.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.3394, allocations: 0 / 0.5635 GB, free: 36.34 MB / 430.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.00364/0.343, allocations: 1.568 MB / 0.565 GB, free: 35.67 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.3431, allocations: 8.25 kB / 0.565 GB, free: 35.67 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002427/0.3455, allocations: 426.8 kB / 0.5654 GB, free: 35.62 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005078/0.346, allocations: 0.4913 MB / 0.5659 GB, free: 35.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.3462, allocations: 196.4 kB / 0.5661 GB, free: 35.17 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-05/0.3463, allocations: 54.58 kB / 0.5661 GB, free: 35.17 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.3474, allocations: 0.6959 MB / 0.5668 GB, free: 35.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.3475, allocations: 0 / 0.5668 GB, free: 35.12 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.787e-05/0.3475, allocations: 19.94 kB / 0.5668 GB, free: 35.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.3476, allocations: 18.84 kB / 0.5669 GB, free: 35.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.3487, allocations: 0.6758 MB / 0.5675 GB, free: 35.11 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002914/0.3516, allocations: 2.134 MB / 0.5696 GB, free: 34.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006867/0.3585, allocations: 2.274 MB / 0.5718 GB, free: 34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007918/0.3593, allocations: 480.8 kB / 0.5723 GB, free: 34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.874e-05/0.3594, allocations: 5.938 kB / 0.5723 GB, free: 33.99 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000945/0.3604, allocations: 0.5267 MB / 0.5728 GB, free: 33.94 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 2.234e-06/0.3604, allocations: 0.5 kB / 0.5728 GB, free: 33.94 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006075/0.3665, allocations: 2.462 MB / 0.5752 GB, free: 33.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.811e-05/0.3665, allocations: 60.38 kB / 0.5753 GB, free: 33.44 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004342/0.3669, allocations: 0.5083 MB / 0.5758 GB, free: 33.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.389e-05/0.367, allocations: 39.33 kB / 0.5758 GB, free: 33.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.3672, allocations: 327.6 kB / 0.5761 GB, free: 33.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.3673, allocations: 250 kB / 0.5763 GB, free: 32.97 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.3675, allocations: 119.6 kB / 0.5765 GB, free: 32.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.754e-05/0.3676, allocations: 385.2 kB / 0.5768 GB, free: 32.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007295/0.3684, allocations: 413.8 kB / 0.5772 GB, free: 32.47 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007511/0.3691, allocations: 498.2 kB / 0.5777 GB, free: 32.24 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007803/0.3769, allocations: 2.515 MB / 0.5802 GB, free: 31.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.377, allocations: 0.8438 kB / 0.5802 GB, free: 31.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006387/0.3834, allocations: 2.219 MB / 0.5823 GB, free: 30.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3834, allocations: 7.562 kB / 0.5823 GB, free: 30.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.3834, allocations: 3.812 kB / 0.5823 GB, free: 30.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00355/0.387, allocations: 0.9913 MB / 0.5833 GB, free: 30.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000492/0.3875, allocations: 113.1 kB / 0.5834 GB, free: 30.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008208/0.3957, allocations: 4.49 MB / 0.5878 GB, free: 28.1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007656/0.3965, allocations: 102.6 kB / 0.5879 GB, free: 28.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.203e-05/0.3966, allocations: 26.81 kB / 0.5879 GB, free: 28.05 MB / 430.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.000311/0.3969, allocations: 201.4 kB / 0.5881 GB, free: 27.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.397, allocations: 74.69 kB / 0.5882 GB, free: 27.85 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004171/0.4012, allocations: 1.694 MB / 0.5898 GB, free: 27.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.4012, allocations: 6.938 kB / 0.5898 GB, free: 27.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4012, allocations: 6.422 kB / 0.5898 GB, free: 27.29 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/0.4012, allocations: 8.344 kB / 0.5899 GB, free: 27.29 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003976/0.4052, allocations: 2.434 MB / 0.5922 GB, free: 26.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/0.4052, allocations: 0.9688 kB / 0.5922 GB, free: 26.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003782/0.4056, allocations: 71.11 kB / 0.5923 GB, free: 26.09 MB / 430.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.003904/0.4095, allocations: 1.065 MB / 0.5933 GB, free: 25.88 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.041e-05/0.4096, allocations: 19.11 kB / 0.5934 GB, free: 25.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005107/0.4101, allocations: 104.6 kB / 0.5935 GB, free: 25.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4101, allocations: 1.797 kB / 0.5935 GB, free: 25.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004011/0.4141, allocations: 2.012 MB / 0.5954 GB, free: 24.99 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.4143, allocations: 146.9 kB / 0.5956 GB, free: 24.85 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.4144, allocations: 22.27 kB / 0.5956 GB, free: 24.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000593/0.415, allocations: 52.53 kB / 0.5956 GB, free: 24.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003238/0.4154, allocations: 120.9 kB / 0.5958 GB, free: 24.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6e-05/0.4154, allocations: 23.34 kB / 0.5958 GB, free: 24.79 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004501/0.4159, allocations: 354.3 kB / 0.5961 GB, free: 24.63 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4159, allocations: 1.312 kB / 0.5961 GB, free: 24.63 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007764/0.4167, allocations: 236.6 kB / 0.5963 GB, free: 24.59 MB / 430.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.0001897/0.4169, allocations: 114.3 kB / 0.5964 GB, free: 24.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003691/0.4206, allocations: 1.599 MB / 0.598 GB, free: 23.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4206, allocations: 2.062 kB / 0.598 GB, free: 23.77 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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:3522:9-3522: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:1549:5-1549:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]