Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001326/0.001326, allocations: 169.3 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.3 MB / 213.4 MB, free: 1.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008583/0.0008582, allocations: 82.72 kB / 261.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06577/0.06577, allocations: 12.59 MB / 321.9 MB, free: 15.21 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.439/0.439, allocations: 78.06 MB / 450.8 MB, free: 8.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.266e-05/1.269e-05, allocations: 0 / 0.5147 GB, free: 41.74 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1106, allocations: 69.32 MB / 0.5824 GB, free: 360 kB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1213/0.2319, allocations: 94.14 MB / 0.6743 GB, free: 2.078 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.2321, allocations: 79.95 kB / 0.6744 GB, free: 2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03418/0.2663, allocations: 13.37 MB / 0.6875 GB, free: 4.504 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2664, allocations: 4 kB / 0.6875 GB, free: 4.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.273e-05/0.2664, allocations: 16 kB / 0.6875 GB, free: 4.484 MB / 474.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.002759/0.2692, allocations: 1.125 MB / 0.6886 GB, free: 3.316 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2692, allocations: 19.97 kB / 0.6886 GB, free: 3.297 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001579/0.2708, allocations: 302.6 kB / 0.6889 GB, free: 3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000604/0.2714, allocations: 439.1 kB / 0.6893 GB, free: 2.531 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/0.2717, allocations: 189.7 kB / 0.6895 GB, free: 2.312 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.623e-05/0.2718, allocations: 32 kB / 0.6895 GB, free: 2.281 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009554/0.2727, allocations: 0.5337 MB / 0.69 GB, free: 1.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000904/0.2736, allocations: 0.5116 MB / 0.6905 GB, free: 1.23 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.2737, allocations: 4 kB / 0.6905 GB, free: 1.227 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.2737, allocations: 0 / 0.6905 GB, free: 1.227 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.2738, allocations: 12 kB / 0.6906 GB, free: 1.215 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2581/0.5318, allocations: 2.078 MB / 0.6926 GB, free: 97.03 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007814/0.5397, allocations: 2.54 MB / 0.6951 GB, free: 96.43 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006765/0.5404, allocations: 366.5 kB / 0.6954 GB, free: 96.42 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.7e-05/0.5405, allocations: 12.31 kB / 0.6954 GB, free: 96.42 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007128/0.5412, allocations: 412.6 kB / 0.6958 GB, free: 96.36 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 2.956e-06/0.5412, allocations: 3.844 kB / 0.6958 GB, free: 96.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.004261/0.5455, allocations: 1.5 MB / 0.6973 GB, free: 96.25 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.5456, allocations: 62.11 kB / 0.6974 GB, free: 96.18 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005476/0.5461, allocations: 413.2 kB / 0.6977 GB, free: 96.08 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.637e-05/0.5462, allocations: 28.14 kB / 0.6978 GB, free: 96.05 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.5464, allocations: 328.3 kB / 0.6981 GB, free: 95.91 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/0.5466, allocations: 233.5 kB / 0.6983 GB, free: 95.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/0.5466, allocations: 0 / 0.6983 GB, free: 95.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.5468, allocations: 387.8 kB / 0.6987 GB, free: 95.48 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004556/0.5472, allocations: 291.1 kB / 0.699 GB, free: 95.48 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005297/0.5478, allocations: 386.2 kB / 0.6993 GB, free: 95.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005003/0.5483, allocations: 317.3 kB / 0.6996 GB, free: 95.38 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.5483, allocations: 1.188 kB / 0.6996 GB, free: 95.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006805/0.5551, allocations: 2.189 MB / 0.7018 GB, free: 95.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.5551, allocations: 5.5 kB / 0.7018 GB, free: 95.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.5552, allocations: 3.938 kB / 0.7018 GB, free: 95.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003572/0.5587, allocations: 0.9439 MB / 0.7027 GB, free: 95.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005895/0.5594, allocations: 111.8 kB / 0.7028 GB, free: 95.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006151/0.5655, allocations: 3.582 MB / 0.7063 GB, free: 93.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008849/0.5664, allocations: 110.1 kB / 0.7064 GB, free: 93.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.396e-05/0.5665, allocations: 22.97 kB / 0.7064 GB, free: 93.8 MB / 474.7 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 protected = true ) type: Real load.xp:VARIABLE(start = 0.0 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 () * 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.0002898/0.5668, allocations: 133.1 kB / 0.7066 GB, free: 93.69 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.5669, allocations: 74.39 kB / 0.7066 GB, free: 93.65 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004093/0.571, allocations: 1.727 MB / 0.7083 GB, free: 93.52 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.086e-06/0.5711, allocations: 12.88 kB / 0.7083 GB, free: 93.52 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.5711, allocations: 0 / 0.7083 GB, free: 93.52 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.5711, allocations: 3.516 kB / 0.7083 GB, free: 93.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002865/0.574, allocations: 2.093 MB / 0.7104 GB, free: 93.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.574, allocations: 192 / 0.7104 GB, free: 93.04 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.5744, allocations: 74.89 kB / 0.7104 GB, free: 93.04 MB / 474.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.003412/0.5778, allocations: 1.012 MB / 0.7114 GB, free: 92.84 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.5779, allocations: 0 / 0.7114 GB, free: 92.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005714/0.5785, allocations: 131.1 kB / 0.7116 GB, free: 92.81 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.5785, allocations: 3.953 kB / 0.7116 GB, free: 92.81 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003078/0.5816, allocations: 1.644 MB / 0.7132 GB, free: 92.01 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002549/0.5819, allocations: 157.8 kB / 0.7133 GB, free: 91.86 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.582, allocations: 0 / 0.7133 GB, free: 91.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000615/0.5826, allocations: 67.36 kB / 0.7134 GB, free: 91.86 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002888/0.5829, allocations: 124.7 kB / 0.7135 GB, free: 91.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.968e-05/0.583, allocations: 25.06 kB / 0.7135 GB, free: 91.83 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003808/0.5834, allocations: 312.8 kB / 0.7138 GB, free: 91.67 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5834, allocations: 0 / 0.7138 GB, free: 91.67 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.000851/0.5842, allocations: 218.1 kB / 0.714 GB, free: 91.66 MB / 474.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) * 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.0002467/0.5845, allocations: 121.5 kB / 0.7141 GB, free: 91.57 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.5874, allocations: 1.419 MB / 0.7155 GB, free: 90.86 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5874, allocations: 0.5 kB / 0.7155 GB, free: 90.86 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3197:9-3197:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {28:8}, {22:7}, {26:5}, {24:3}, {31:66}, {30:33}, {15:29}, {16:67}, {7:20}, {9:21}}, {10, 14, 5, 12, 6, 8, 19, 18, 11, 13, 25, 27, 29, 21, 20, 17:35, 11, 53, 10, 52, 46, 47, 30, 40, 41, 43, 42, 45, 13, 12, 44} Size: 16 [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1369:5-1369:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]