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.0008751/0.0008752, allocations: 175.6 kB / 16.07 MB, free: 5.73 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.288/1.288, allocations: 222.9 MB / 239.7 MB, free: 11.88 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.0007438/0.0007436, allocations: 102.6 kB / 290.5 MB, free: 11.22 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4304/0.4304, allocations: 78.41 MB / 419.6 MB, free: 9.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006107/0.0006107, allocations: 16 kB / 499.1 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2761, allocations: 68.74 MB / 0.5545 GB, free: 20.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003746/0.2799, allocations: 4.638 MB / 0.559 GB, free: 15.55 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.2815, allocations: 1.274 MB / 0.5603 GB, free: 14.27 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002087/0.2817, allocations: 8 kB / 0.5603 GB, free: 14.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002723/0.282, allocations: 115.3 kB / 0.5604 GB, free: 14.15 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003614/0.2824, allocations: 182.6 kB / 0.5606 GB, free: 13.97 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009314/0.2833, allocations: 0.5532 MB / 0.5611 GB, free: 13.42 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004787/0.2838, allocations: 0.7587 MB / 0.5619 GB, free: 12.66 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002059/0.284, allocations: 174.2 kB / 0.562 GB, free: 12.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.2842, allocations: 298.5 kB / 0.5623 GB, free: 12.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002977/0.2845, allocations: 378 kB / 0.5627 GB, free: 11.81 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.267e-05/0.2846, allocations: 40 kB / 0.5627 GB, free: 11.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.2848, allocations: 103.9 kB / 0.5628 GB, free: 11.67 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.319e-05/0.2849, allocations: 135.3 kB / 0.5629 GB, free: 11.54 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001979/0.2851, allocations: 353.7 kB / 0.5633 GB, free: 11.19 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004071/0.2855, allocations: 0.6681 MB / 0.5639 GB, free: 10.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.2855, allocations: 0 / 0.5639 GB, free: 10.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2856, allocations: 0 / 0.5639 GB, free: 10.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.2856, allocations: 0 / 0.5639 GB, free: 10.52 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.003328/0.2889, allocations: 1.42 MB / 0.5653 GB, free: 9.055 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.2889, allocations: 12.03 kB / 0.5653 GB, free: 9.043 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002352/0.2913, allocations: 427.1 kB / 0.5657 GB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.2918, allocations: 0.4943 MB / 0.5662 GB, free: 8.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.2919, allocations: 197.8 kB / 0.5664 GB, free: 7.867 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.036e-05/0.292, allocations: 48 kB / 0.5664 GB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.2931, allocations: 0.6936 MB / 0.5671 GB, free: 7.117 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.2932, allocations: 0 / 0.5671 GB, free: 7.117 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.758e-05/0.2932, allocations: 27.94 kB / 0.5671 GB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.946e-06/0.2932, allocations: 15.94 kB / 0.5672 GB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.2943, allocations: 0.6766 MB / 0.5678 GB, free: 6.398 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002831/0.2972, allocations: 2.152 MB / 0.5699 GB, free: 4.164 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0066/0.3038, allocations: 2.261 MB / 0.5721 GB, free: 1.789 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007893/0.3046, allocations: 487.1 kB / 0.5726 GB, free: 1.312 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.908e-05/0.3047, allocations: 12.64 kB / 0.5726 GB, free: 1.297 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009209/0.3056, allocations: 0.5196 MB / 0.5731 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 2.475e-06/0.3056, allocations: 0 / 0.5731 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.00655/0.3122, allocations: 2.455 MB / 0.5755 GB, free: 14.24 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.3123, allocations: 60 kB / 0.5756 GB, free: 14.17 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005445/0.3128, allocations: 0.5109 MB / 0.5761 GB, free: 13.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.009e-05/0.3129, allocations: 41.7 kB / 0.5761 GB, free: 13.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002281/0.3131, allocations: 332.5 kB / 0.5764 GB, free: 13.28 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/0.3133, allocations: 240.4 kB / 0.5767 GB, free: 13.04 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.4e-05/0.3134, allocations: 69.69 kB / 0.5767 GB, free: 12.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.3136, allocations: 382.8 kB / 0.5771 GB, free: 12.58 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008197/0.3144, allocations: 401.8 kB / 0.5775 GB, free: 12.19 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008738/0.3153, allocations: 0.4946 MB / 0.578 GB, free: 11.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008416/0.3237, allocations: 2.514 MB / 0.5804 GB, free: 9.125 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.3238, allocations: 0 / 0.5804 GB, free: 9.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00669/0.3305, allocations: 2.212 MB / 0.5826 GB, free: 6.891 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3305, allocations: 8 kB / 0.5826 GB, free: 6.883 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3305, allocations: 0 / 0.5826 GB, free: 6.883 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003718/0.3342, allocations: 1.011 MB / 0.5836 GB, free: 5.863 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.3347, allocations: 107.8 kB / 0.5837 GB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008277/0.343, allocations: 4.128 MB / 0.5877 GB, free: 1.504 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007424/0.3438, allocations: 99.31 kB / 0.5878 GB, free: 1.406 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.448e-05/0.3439, allocations: 24 kB / 0.5878 GB, free: 1.383 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.0003339/0.3442, allocations: 210.7 kB / 0.588 GB, free: 1.168 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.3443, allocations: 75.06 kB / 0.5881 GB, free: 1.094 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004358/0.3487, allocations: 1.698 MB / 0.5897 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.473e-06/0.3487, allocations: 4 kB / 0.5898 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.3487, allocations: 4 kB / 0.5898 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3487, allocations: 3.984 kB / 0.5898 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004225/0.353, allocations: 2.441 MB / 0.5921 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.353, allocations: 3.938 kB / 0.5921 GB, free: 12.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003631/0.3533, allocations: 71.89 kB / 0.5922 GB, free: 12.76 MB / 410.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.004125/0.3575, allocations: 1.069 MB / 0.5933 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.621e-05/0.3576, allocations: 12 kB / 0.5933 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006568/0.3582, allocations: 104.6 kB / 0.5934 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3583, allocations: 192 / 0.5934 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005005/0.3633, allocations: 2.007 MB / 0.5953 GB, free: 9.535 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/0.3635, allocations: 156 kB / 0.5955 GB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.3636, allocations: 19.98 kB / 0.5955 GB, free: 9.344 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007753/0.3644, allocations: 55.94 kB / 0.5956 GB, free: 9.289 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/0.3647, allocations: 116.5 kB / 0.5957 GB, free: 9.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.871e-05/0.3647, allocations: 23.98 kB / 0.5957 GB, free: 9.152 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003626/0.3651, allocations: 350.8 kB / 0.596 GB, free: 8.812 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3651, allocations: 0 / 0.596 GB, free: 8.812 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006872/0.3658, allocations: 239.6 kB / 0.5962 GB, free: 8.578 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.0001735/0.366, allocations: 123.2 kB / 0.5964 GB, free: 8.445 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003663/0.3697, allocations: 1.572 MB / 0.5979 GB, free: 6.816 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3697, allocations: 0 / 0.5979 GB, free: 6.816 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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1495:5-1495:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/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]