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.0009681/0.0009681, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.23/1.23, allocations: 223.2 MB / 239 MB, free: 5.477 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.001114/0.001114, allocations: 181 kB / 290.2 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4204/0.4204, allocations: 78.53 MB / 419.8 MB, free: 4.297 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003361/0.0003362, allocations: 8 kB / 499.7 MB, free: 6.359 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1058, allocations: 69.36 MB / 0.5557 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.1845/0.2903, allocations: 3.786 MB / 0.5594 GB, free: 37.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.2923, allocations: 1.235 MB / 0.5606 GB, free: 37.25 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003777/0.2927, allocations: 5.625 kB / 0.5606 GB, free: 37.25 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000294/0.293, allocations: 103.2 kB / 0.5607 GB, free: 37.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005035/0.2935, allocations: 242.6 kB / 0.5609 GB, free: 37.19 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009781/0.2945, allocations: 484.9 kB / 0.5614 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005873/0.2951, allocations: 0.5282 MB / 0.5619 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.2954, allocations: 163.1 kB / 0.562 GB, free: 37.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002471/0.2956, allocations: 288.9 kB / 0.5623 GB, free: 37.01 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003625/0.296, allocations: 356.8 kB / 0.5627 GB, free: 36.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.861e-05/0.2961, allocations: 33.5 kB / 0.5627 GB, free: 36.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.2963, allocations: 86.95 kB / 0.5628 GB, free: 36.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.53e-05/0.2964, allocations: 134.5 kB / 0.5629 GB, free: 36.9 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.2965, allocations: 148.6 kB / 0.563 GB, free: 36.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005151/0.2971, allocations: 0.6433 MB / 0.5637 GB, free: 36.79 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.2971, allocations: 0 / 0.5637 GB, free: 36.79 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2971, allocations: 0.6562 kB / 0.5637 GB, free: 36.79 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.2971, allocations: 7.656 kB / 0.5637 GB, free: 36.78 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.003659/0.3008, allocations: 1.456 MB / 0.5651 GB, free: 36.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.819e-05/0.3008, allocations: 10.5 kB / 0.5651 GB, free: 36.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002409/0.3032, allocations: 424.6 kB / 0.5655 GB, free: 36.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005499/0.3038, allocations: 483.1 kB / 0.566 GB, free: 35.84 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/0.304, allocations: 207 kB / 0.5662 GB, free: 35.69 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.599e-05/0.304, allocations: 55.69 kB / 0.5662 GB, free: 35.69 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.3053, allocations: 0.7213 MB / 0.5669 GB, free: 35.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3053, allocations: 0 / 0.5669 GB, free: 35.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.042e-05/0.3054, allocations: 23.03 kB / 0.567 GB, free: 35.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.3054, allocations: 17.11 kB / 0.567 GB, free: 35.63 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.3067, allocations: 0.7158 MB / 0.5677 GB, free: 35.63 MB / 430.1 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.003224/0.31, allocations: 2.387 MB / 0.57 GB, free: 34.88 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007584/0.3176, allocations: 2.737 MB / 0.5727 GB, free: 34.2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.891e-05/0.3177, allocations: 9.016 kB / 0.5727 GB, free: 34.2 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001031/0.3187, allocations: 0.5571 MB / 0.5732 GB, free: 34.13 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 3.207e-06/0.3187, allocations: 0 / 0.5732 GB, free: 34.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006788/0.3255, allocations: 2.84 MB / 0.576 GB, free: 33.65 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.3256, allocations: 62.44 kB / 0.5761 GB, free: 33.59 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005398/0.3261, allocations: 0.5054 MB / 0.5766 GB, free: 33.47 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.959e-05/0.3262, allocations: 46.77 kB / 0.5766 GB, free: 33.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.3264, allocations: 327.8 kB / 0.5769 GB, free: 33.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.3266, allocations: 239.7 kB / 0.5771 GB, free: 33.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-05/0.3267, allocations: 15 kB / 0.5772 GB, free: 33.01 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.884e-05/0.3268, allocations: 383 kB / 0.5775 GB, free: 32.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007943/0.3276, allocations: 444.4 kB / 0.5779 GB, free: 32.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008122/0.3284, allocations: 0.5269 MB / 0.5785 GB, free: 32.28 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008161/0.3292, allocations: 473.8 kB / 0.5789 GB, free: 32.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3292, allocations: 0 / 0.5789 GB, free: 32.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007067/0.3363, allocations: 2.635 MB / 0.5815 GB, free: 31.44 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.3363, allocations: 5.094 kB / 0.5815 GB, free: 31.44 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3364, allocations: 3.062 kB / 0.5815 GB, free: 31.44 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00404/0.3404, allocations: 1.189 MB / 0.5827 GB, free: 31.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005272/0.3409, allocations: 106.3 kB / 0.5828 GB, free: 31.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008848/0.3498, allocations: 4.673 MB / 0.5873 GB, free: 28.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008121/0.3506, allocations: 121.5 kB / 0.5874 GB, free: 28.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.755e-05/0.3507, allocations: 30.09 kB / 0.5875 GB, free: 28.66 MB / 430.1 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.0003433/0.3511, allocations: 199.5 kB / 0.5877 GB, free: 28.49 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.3512, allocations: 74.97 kB / 0.5877 GB, free: 28.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004771/0.356, allocations: 1.959 MB / 0.5896 GB, free: 27.86 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.356, allocations: 7.625 kB / 0.5896 GB, free: 27.86 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3561, allocations: 5.406 kB / 0.5897 GB, free: 27.85 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.3561, allocations: 3.422 kB / 0.5897 GB, free: 27.85 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004328/0.3604, allocations: 2.601 MB / 0.5922 GB, free: 26.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.3604, allocations: 0 / 0.5922 GB, free: 26.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.3608, allocations: 81.86 kB / 0.5923 GB, free: 26.63 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.004151/0.365, allocations: 1.245 MB / 0.5935 GB, free: 26.4 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.478e-05/0.3651, allocations: 11.62 kB / 0.5935 GB, free: 26.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005648/0.3657, allocations: 134.3 kB / 0.5936 GB, free: 26.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3657, allocations: 5.938 kB / 0.5936 GB, free: 26.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004311/0.37, allocations: 2.207 MB / 0.5958 GB, free: 25.49 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.3702, allocations: 157.3 kB / 0.5959 GB, free: 25.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.3703, allocations: 20.81 kB / 0.596 GB, free: 25.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006236/0.371, allocations: 76.66 kB / 0.596 GB, free: 25.31 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002751/0.3713, allocations: 129.2 kB / 0.5962 GB, free: 25.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-05/0.3713, allocations: 16.34 kB / 0.5962 GB, free: 25.29 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003475/0.3717, allocations: 350.6 kB / 0.5965 GB, free: 25.13 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3717, allocations: 0 / 0.5965 GB, free: 25.13 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007118/0.3724, allocations: 237.4 kB / 0.5967 GB, free: 25.09 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 (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.0001765/0.3726, allocations: 122 kB / 0.5968 GB, free: 24.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003888/0.3765, allocations: 1.747 MB / 0.5986 GB, free: 24.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.3765, allocations: 0 / 0.5986 GB, free: 24.23 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/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]