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.007989/0.007989, allocations: 168.7 kB / 15.13 MB, free: 6.02 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.427/1.427, allocations: 223.3 MB / 239.1 MB, free: 1.703 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.0007665/0.0007666, allocations: 101.2 kB / 290.3 MB, free: 13.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4379/0.4379, allocations: 78.61 MB / 420 MB, free: 44.16 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003323/0.0003322, allocations: 12 kB / 499.9 MB, free: 2.926 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3068/0.3071, allocations: 69.34 MB / 0.5559 GB, free: 38.93 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003683/0.3108, allocations: 3.989 MB / 0.5598 GB, free: 38.62 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.002984/0.3139, allocations: 1.197 MB / 0.561 GB, free: 38.24 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006464/0.3145, allocations: 12.19 kB / 0.561 GB, free: 38.23 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004339/0.315, allocations: 105.6 kB / 0.5611 GB, free: 38.19 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006257/0.3156, allocations: 208.9 kB / 0.5613 GB, free: 38.07 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.3168, allocations: 491.1 kB / 0.5617 GB, free: 37.78 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006818/0.3175, allocations: 0.7311 MB / 0.5625 GB, free: 37.4 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002818/0.3178, allocations: 171.2 kB / 0.5626 GB, free: 37.31 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002583/0.3181, allocations: 285.1 kB / 0.5629 GB, free: 37.18 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004108/0.3185, allocations: 363.1 kB / 0.5632 GB, free: 37.02 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 7.33e-05/0.3186, allocations: 34.09 kB / 0.5633 GB, free: 37.02 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002852/0.3188, allocations: 90.33 kB / 0.5634 GB, free: 37 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.319, allocations: 136.2 kB / 0.5635 GB, free: 36.92 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.3191, allocations: 156.2 kB / 0.5636 GB, free: 36.81 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007005/0.3198, allocations: 0.6689 MB / 0.5643 GB, free: 36.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3198, allocations: 0 / 0.5643 GB, free: 36.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3198, allocations: 0 / 0.5643 GB, free: 36.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.3198, allocations: 1.375 kB / 0.5643 GB, free: 36.6 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.003862/0.3237, allocations: 1.456 MB / 0.5657 GB, free: 35.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3237, allocations: 8.312 kB / 0.5657 GB, free: 35.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002365/0.3261, allocations: 426.8 kB / 0.5661 GB, free: 35.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000538/0.3267, allocations: 485.1 kB / 0.5666 GB, free: 35.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.3269, allocations: 205 kB / 0.5668 GB, free: 35.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.523e-05/0.327, allocations: 62.48 kB / 0.5668 GB, free: 35.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.3283, allocations: 0.7246 MB / 0.5675 GB, free: 34.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.3283, allocations: 1 kB / 0.5675 GB, free: 34.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-05/0.3284, allocations: 24.27 kB / 0.5676 GB, free: 34.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.3284, allocations: 13.25 kB / 0.5676 GB, free: 34.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.3297, allocations: 0.7129 MB / 0.5683 GB, free: 34.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003/0.3327, allocations: 2.178 MB / 0.5704 GB, free: 33.49 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007719/0.3404, allocations: 2.753 MB / 0.5731 GB, free: 32.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.3415, allocations: 0.5206 MB / 0.5736 GB, free: 32.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.886e-05/0.3416, allocations: 9.906 kB / 0.5736 GB, free: 32.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001081/0.3427, allocations: 0.5629 MB / 0.5742 GB, free: 32.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=73): time 3.096e-06/0.3427, allocations: 0 / 0.5742 GB, free: 32.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=73): time 0.006966/0.3496, allocations: 2.834 MB / 0.5769 GB, free: 31.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.3497, allocations: 59.59 kB / 0.577 GB, free: 31.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005655/0.3503, allocations: 0.5001 MB / 0.5775 GB, free: 30.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.429e-05/0.3504, allocations: 43.58 kB / 0.5775 GB, free: 30.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.3505, allocations: 336.7 kB / 0.5778 GB, free: 30.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.3507, allocations: 238.5 kB / 0.5781 GB, free: 30.31 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.414e-05/0.3508, allocations: 17.59 kB / 0.5781 GB, free: 30.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.195e-05/0.3509, allocations: 379.6 kB / 0.5784 GB, free: 29.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008167/0.3517, allocations: 450.2 kB / 0.5789 GB, free: 29.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008242/0.3525, allocations: 0.5264 MB / 0.5794 GB, free: 29.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008163/0.3533, allocations: 473.8 kB / 0.5798 GB, free: 29.38 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3534, allocations: 3.938 kB / 0.5798 GB, free: 29.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007055/0.3604, allocations: 2.632 MB / 0.5824 GB, free: 28.72 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.3605, allocations: 8.812 kB / 0.5824 GB, free: 28.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.3605, allocations: 0 / 0.5824 GB, free: 28.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004037/0.3645, allocations: 1.189 MB / 0.5836 GB, free: 28.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005482/0.3651, allocations: 108.5 kB / 0.5837 GB, free: 28.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008316/0.3734, allocations: 4.466 MB / 0.588 GB, free: 26.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009187/0.3744, allocations: 125.3 kB / 0.5882 GB, free: 26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.3745, allocations: 26.27 kB / 0.5882 GB, free: 26 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.0004281/0.3749, allocations: 206.6 kB / 0.5884 GB, free: 25.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.3751, allocations: 74.25 kB / 0.5885 GB, free: 25.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004935/0.38, allocations: 1.954 MB / 0.5904 GB, free: 25.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.38, allocations: 7.5 kB / 0.5904 GB, free: 25.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3801, allocations: 1.312 kB / 0.5904 GB, free: 25.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.3801, allocations: 3.328 kB / 0.5904 GB, free: 25.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004421/0.3845, allocations: 2.607 MB / 0.5929 GB, free: 23.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3845, allocations: 0 / 0.5929 GB, free: 23.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003858/0.3849, allocations: 75.56 kB / 0.593 GB, free: 23.96 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.004274/0.3892, allocations: 1.25 MB / 0.5942 GB, free: 23.72 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-05/0.3893, allocations: 11.72 kB / 0.5942 GB, free: 23.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005899/0.3899, allocations: 140.1 kB / 0.5944 GB, free: 23.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3899, allocations: 0 / 0.5944 GB, free: 23.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004374/0.3943, allocations: 2.205 MB / 0.5965 GB, free: 22.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/0.3945, allocations: 161.5 kB / 0.5967 GB, free: 22.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.3947, allocations: 12.31 kB / 0.5967 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007755/0.3955, allocations: 80.77 kB / 0.5968 GB, free: 22.63 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/0.3958, allocations: 122.6 kB / 0.5969 GB, free: 22.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.375e-05/0.3959, allocations: 16.91 kB / 0.5969 GB, free: 22.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005527/0.3964, allocations: 352.6 kB / 0.5972 GB, free: 22.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3964, allocations: 1.156 kB / 0.5972 GB, free: 22.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009337/0.3974, allocations: 236.4 kB / 0.5975 GB, free: 22.41 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.0001928/0.3976, allocations: 119.5 kB / 0.5976 GB, free: 22.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004284/0.4019, allocations: 1.748 MB / 0.5993 GB, free: 21.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4019, allocations: 0 / 0.5993 GB, free: 21.55 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:3387:9-3387: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:1487:5-1487:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]