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.001118/0.001118, allocations: 114.5 kB / 16.37 MB, free: 6.012 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.372/1.372, allocations: 222.9 MB / 240 MB, free: 4.512 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.001412/0.001412, allocations: 184.5 kB / 290.3 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4587/0.4587, allocations: 78.53 MB / 419 MB, free: 3.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 75.88 kB / 498.9 MB, free: 5.668 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1358, allocations: 68.18 MB / 0.5538 GB, free: 1.441 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2446/0.3804, allocations: 4.355 MB / 0.558 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002469/0.3829, allocations: 1.236 MB / 0.5592 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003284/0.3832, allocations: 5.188 kB / 0.5593 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004075/0.3837, allocations: 143.9 kB / 0.5594 GB, free: 36.76 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005287/0.3842, allocations: 237.2 kB / 0.5596 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001182/0.3854, allocations: 0.5696 MB / 0.5602 GB, free: 36.6 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007239/0.3861, allocations: 0.8094 MB / 0.561 GB, free: 36.56 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003072/0.3865, allocations: 196.2 kB / 0.5612 GB, free: 36.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.3868, allocations: 332.6 kB / 0.5615 GB, free: 36.44 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004062/0.3872, allocations: 421.7 kB / 0.5619 GB, free: 36.33 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.501e-05/0.3873, allocations: 61.09 kB / 0.5619 GB, free: 36.33 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003273/0.3876, allocations: 126.7 kB / 0.562 GB, free: 36.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.3877, allocations: 177.2 kB / 0.5622 GB, free: 36.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000283/0.388, allocations: 381 kB / 0.5626 GB, free: 36.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000747/0.3888, allocations: 0.9206 MB / 0.5635 GB, free: 35.95 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3888, allocations: 0 / 0.5635 GB, free: 35.95 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3888, allocations: 0 / 0.5635 GB, free: 35.95 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.3888, allocations: 0 / 0.5635 GB, free: 35.95 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.003905/0.3927, allocations: 1.563 MB / 0.565 GB, free: 35.29 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.3928, allocations: 8.281 kB / 0.565 GB, free: 35.29 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002461/0.3952, allocations: 429.9 kB / 0.5654 GB, free: 35.23 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006272/0.3959, allocations: 0.4952 MB / 0.5659 GB, free: 34.94 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.3961, allocations: 201 kB / 0.5661 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.28e-05/0.3962, allocations: 53.56 kB / 0.5662 GB, free: 34.78 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.3974, allocations: 0.6913 MB / 0.5668 GB, free: 34.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.3974, allocations: 0.75 kB / 0.5668 GB, free: 34.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.193e-05/0.3975, allocations: 24.5 kB / 0.5669 GB, free: 34.73 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.3975, allocations: 20.41 kB / 0.5669 GB, free: 34.72 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.3987, allocations: 0.6689 MB / 0.5675 GB, free: 34.72 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003087/0.4018, allocations: 2.136 MB / 0.5696 GB, free: 34.21 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006727/0.4085, allocations: 2.267 MB / 0.5718 GB, free: 33.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008365/0.4094, allocations: 482.7 kB / 0.5723 GB, free: 33.61 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.591e-05/0.4095, allocations: 17.05 kB / 0.5723 GB, free: 33.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009749/0.4104, allocations: 0.5229 MB / 0.5728 GB, free: 33.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 3.727e-06/0.4105, allocations: 0 / 0.5728 GB, free: 33.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006165/0.4166, allocations: 2.457 MB / 0.5752 GB, free: 33.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.4167, allocations: 64.06 kB / 0.5753 GB, free: 33.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004944/0.4172, allocations: 0.5081 MB / 0.5758 GB, free: 32.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.979e-05/0.4173, allocations: 44.27 kB / 0.5758 GB, free: 32.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.4174, allocations: 324.2 kB / 0.5761 GB, free: 32.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.4176, allocations: 245.5 kB / 0.5764 GB, free: 32.58 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/0.4178, allocations: 123.1 kB / 0.5765 GB, free: 32.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.4179, allocations: 386.9 kB / 0.5768 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007159/0.4186, allocations: 402.3 kB / 0.5772 GB, free: 32.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007726/0.4194, allocations: 0.4947 MB / 0.5777 GB, free: 32.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007994/0.4274, allocations: 2.511 MB / 0.5802 GB, free: 31.35 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.4275, allocations: 5.5 kB / 0.5802 GB, free: 31.35 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006613/0.4341, allocations: 2.211 MB / 0.5823 GB, free: 30.77 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.4341, allocations: 8.906 kB / 0.5823 GB, free: 30.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.4342, allocations: 6.75 kB / 0.5823 GB, free: 30.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003574/0.4377, allocations: 0.9919 MB / 0.5833 GB, free: 30.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005666/0.4383, allocations: 114.3 kB / 0.5834 GB, free: 30.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008332/0.4467, allocations: 4.491 MB / 0.5878 GB, free: 27.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008172/0.4475, allocations: 102.6 kB / 0.5879 GB, free: 27.92 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.357e-05/0.4476, allocations: 22.41 kB / 0.5879 GB, free: 27.91 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.0003395/0.4479, allocations: 209.7 kB / 0.5881 GB, free: 27.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.4481, allocations: 71.03 kB / 0.5882 GB, free: 27.71 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004224/0.4523, allocations: 1.694 MB / 0.5898 GB, free: 27.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.4523, allocations: 7.062 kB / 0.5898 GB, free: 27.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4523, allocations: 1.188 kB / 0.5899 GB, free: 27.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.4523, allocations: 12.52 kB / 0.5899 GB, free: 27.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00423/0.4566, allocations: 2.436 MB / 0.5922 GB, free: 25.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4566, allocations: 0.75 kB / 0.5922 GB, free: 25.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003966/0.457, allocations: 69.55 kB / 0.5923 GB, free: 25.96 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.004023/0.461, allocations: 1.068 MB / 0.5934 GB, free: 25.74 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.328e-05/0.4611, allocations: 13.25 kB / 0.5934 GB, free: 25.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005367/0.4617, allocations: 100.9 kB / 0.5935 GB, free: 25.71 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4617, allocations: 0 / 0.5935 GB, free: 25.71 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004677/0.4664, allocations: 2.012 MB / 0.5954 GB, free: 24.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002734/0.4667, allocations: 148.2 kB / 0.5956 GB, free: 24.72 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.4668, allocations: 20.98 kB / 0.5956 GB, free: 24.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006073/0.4674, allocations: 55.05 kB / 0.5956 GB, free: 24.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000341/0.4678, allocations: 119.8 kB / 0.5958 GB, free: 24.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.899e-05/0.4678, allocations: 30.33 kB / 0.5958 GB, free: 24.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004225/0.4682, allocations: 351.4 kB / 0.5961 GB, free: 24.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4683, allocations: 0 / 0.5961 GB, free: 24.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008515/0.4691, allocations: 237.8 kB / 0.5963 GB, free: 24.46 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.0002074/0.4693, allocations: 124.4 kB / 0.5965 GB, free: 24.36 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003848/0.4732, allocations: 1.59 MB / 0.598 GB, free: 23.64 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4732, allocations: 0.75 kB / 0.598 GB, free: 23.64 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]