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.0008193/0.0008193, allocations: 99.12 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 223.3 MB / 239.7 MB, free: 5.621 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.001391/0.001391, allocations: 180.5 kB / 290.9 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5967/0.5967, allocations: 78.56 MB / 420.6 MB, free: 4.336 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003789/0.0003789, allocations: 11.94 kB / 0.4887 GB, free: 6.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1573, allocations: 69.36 MB / 0.5564 GB, free: 1.008 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.3141/0.4715, allocations: 3.985 MB / 0.5603 GB, free: 37.65 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.4745, allocations: 1.198 MB / 0.5615 GB, free: 37.48 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003994/0.4749, allocations: 10.62 kB / 0.5615 GB, free: 37.48 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004379/0.4754, allocations: 107.2 kB / 0.5616 GB, free: 37.45 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006238/0.476, allocations: 205.7 kB / 0.5618 GB, free: 37.36 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001249/0.4773, allocations: 481.3 kB / 0.5622 GB, free: 37.31 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008304/0.4781, allocations: 0.7295 MB / 0.563 GB, free: 37.12 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003472/0.4785, allocations: 162.7 kB / 0.5631 GB, free: 37.08 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002896/0.4788, allocations: 284.4 kB / 0.5634 GB, free: 37.01 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004968/0.4793, allocations: 365.5 kB / 0.5637 GB, free: 36.92 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.281e-05/0.4794, allocations: 32.75 kB / 0.5638 GB, free: 36.92 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002908/0.4797, allocations: 95.48 kB / 0.5639 GB, free: 36.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.4798, allocations: 133.7 kB / 0.564 GB, free: 36.88 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.48, allocations: 149.2 kB / 0.5641 GB, free: 36.82 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007109/0.4807, allocations: 0.6758 MB / 0.5648 GB, free: 36.74 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.962e-06/0.4807, allocations: 0 / 0.5648 GB, free: 36.74 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4807, allocations: 0.9375 kB / 0.5648 GB, free: 36.74 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.4807, allocations: 0.5625 kB / 0.5648 GB, free: 36.74 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.003703/0.4844, allocations: 1.453 MB / 0.5662 GB, free: 36.12 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.4845, allocations: 8.969 kB / 0.5662 GB, free: 36.12 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002386/0.4869, allocations: 434.7 kB / 0.5666 GB, free: 36.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006955/0.4876, allocations: 481.5 kB / 0.5671 GB, free: 35.81 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002063/0.4878, allocations: 202.7 kB / 0.5673 GB, free: 35.65 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.121e-05/0.4879, allocations: 54.78 kB / 0.5673 GB, free: 35.65 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.4893, allocations: 0.7281 MB / 0.568 GB, free: 35.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.4893, allocations: 0.875 kB / 0.568 GB, free: 35.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.898e-05/0.4894, allocations: 28.81 kB / 0.5681 GB, free: 35.6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.4894, allocations: 19.98 kB / 0.5681 GB, free: 35.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.4907, allocations: 0.7129 MB / 0.5688 GB, free: 35.59 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003421/0.4942, allocations: 2.176 MB / 0.5709 GB, free: 35.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00729/0.5015, allocations: 2.745 MB / 0.5736 GB, free: 34.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.5026, allocations: 0.5129 MB / 0.5741 GB, free: 34.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.066e-05/0.5027, allocations: 11.94 kB / 0.5741 GB, free: 34.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001127/0.5038, allocations: 0.5609 MB / 0.5747 GB, free: 34.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 4.188e-06/0.5038, allocations: 0 / 0.5747 GB, free: 34.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.007113/0.5109, allocations: 2.834 MB / 0.5774 GB, free: 33.84 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/0.5111, allocations: 63.67 kB / 0.5775 GB, free: 33.78 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008468/0.5119, allocations: 0.5039 MB / 0.578 GB, free: 33.63 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.258e-05/0.512, allocations: 43.58 kB / 0.578 GB, free: 33.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002511/0.5123, allocations: 331.4 kB / 0.5783 GB, free: 33.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000243/0.5125, allocations: 245.7 kB / 0.5786 GB, free: 33.13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.773e-05/0.5126, allocations: 14.75 kB / 0.5786 GB, free: 33.12 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5127, allocations: 379.8 kB / 0.5789 GB, free: 32.78 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008276/0.5135, allocations: 442.1 kB / 0.5794 GB, free: 32.64 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008523/0.5144, allocations: 0.5281 MB / 0.5799 GB, free: 32.4 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008642/0.5153, allocations: 479.9 kB / 0.5803 GB, free: 32.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.5153, allocations: 2.344 kB / 0.5803 GB, free: 32.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007554/0.5229, allocations: 2.636 MB / 0.5829 GB, free: 31.55 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/0.5229, allocations: 6.219 kB / 0.5829 GB, free: 31.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.523, allocations: 2.438 kB / 0.5829 GB, free: 31.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004062/0.527, allocations: 1.182 MB / 0.5841 GB, free: 31.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006847/0.5277, allocations: 110.8 kB / 0.5842 GB, free: 31.31 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.5378, allocations: 4.468 MB / 0.5885 GB, free: 28.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.5389, allocations: 122.1 kB / 0.5887 GB, free: 28.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.131e-05/0.539, allocations: 29.48 kB / 0.5887 GB, free: 28.84 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.0004995/0.5395, allocations: 209 kB / 0.5889 GB, free: 28.66 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.5396, allocations: 75.38 kB / 0.589 GB, free: 28.62 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005073/0.5447, allocations: 1.951 MB / 0.5909 GB, free: 28.04 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.5448, allocations: 6.562 kB / 0.5909 GB, free: 28.04 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.5448, allocations: 1.062 kB / 0.5909 GB, free: 28.04 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.5448, allocations: 4.391 kB / 0.5909 GB, free: 28.04 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004827/0.5496, allocations: 2.602 MB / 0.5934 GB, free: 26.83 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/0.5497, allocations: 3.375 kB / 0.5934 GB, free: 26.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.5501, allocations: 72.41 kB / 0.5935 GB, free: 26.82 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.004136/0.5542, allocations: 1.254 MB / 0.5947 GB, free: 26.58 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.046e-05/0.5543, allocations: 15.62 kB / 0.5947 GB, free: 26.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005791/0.5549, allocations: 137.4 kB / 0.5949 GB, free: 26.54 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.5549, allocations: 4.953 kB / 0.5949 GB, free: 26.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005279/0.5602, allocations: 2.199 MB / 0.597 GB, free: 25.67 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003608/0.5606, allocations: 167.2 kB / 0.5972 GB, free: 25.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.5607, allocations: 15.69 kB / 0.5972 GB, free: 25.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005826/0.5613, allocations: 74.8 kB / 0.5973 GB, free: 25.49 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003843/0.5617, allocations: 121.7 kB / 0.5974 GB, free: 25.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.494e-05/0.5618, allocations: 27.77 kB / 0.5974 GB, free: 25.46 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005342/0.5623, allocations: 349.3 kB / 0.5977 GB, free: 25.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5623, allocations: 0 / 0.5977 GB, free: 25.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001161/0.5635, allocations: 238.1 kB / 0.598 GB, free: 25.27 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.0002718/0.5638, allocations: 120.6 kB / 0.5981 GB, free: 25.16 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005001/0.5688, allocations: 1.747 MB / 0.5998 GB, free: 24.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.5688, allocations: 1.094 kB / 0.5998 GB, free: 24.41 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: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1487:5-1487:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/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]