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.007113/0.007113, allocations: 170.8 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.4 MB / 221.3 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009493/0.0009492, allocations: 86.89 kB / 269.6 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07027/0.07027, allocations: 12.6 MB / 330.4 MB, free: 10.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4246/0.4246, allocations: 78.52 MB / 460 MB, free: 3.445 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005008/0.0005009, allocations: 23.09 kB / 0.5285 GB, free: 35.12 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1384, allocations: 69.33 MB / 0.5962 GB, free: 3.793 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.2726, allocations: 94.9 MB / 0.6888 GB, free: 4.766 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.2729, allocations: 83.95 kB / 0.6889 GB, free: 4.684 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3081/0.581, allocations: 13.59 MB / 0.7022 GB, free: 97.12 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.5811, allocations: 3.938 kB / 0.7022 GB, free: 97.12 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.591e-05/0.5811, allocations: 14.81 kB / 0.7022 GB, free: 97.12 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.002698/0.5838, allocations: 1.225 MB / 0.7034 GB, free: 96.48 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.5838, allocations: 11.89 kB / 0.7034 GB, free: 96.48 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001596/0.5855, allocations: 316.7 kB / 0.7037 GB, free: 96.42 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005298/0.586, allocations: 437 kB / 0.7041 GB, free: 96.15 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.5862, allocations: 213.5 kB / 0.7044 GB, free: 95.99 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.23e-05/0.5863, allocations: 49.06 kB / 0.7044 GB, free: 95.99 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.5877, allocations: 0.7235 MB / 0.7051 GB, free: 95.93 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.5877, allocations: 0 / 0.7051 GB, free: 95.93 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.915e-05/0.5878, allocations: 22.06 kB / 0.7051 GB, free: 95.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.5878, allocations: 14.03 kB / 0.7051 GB, free: 95.93 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/0.5893, allocations: 0.7231 MB / 0.7058 GB, free: 95.91 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003613/0.593, allocations: 2.165 MB / 0.708 GB, free: 95.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008541/0.6015, allocations: 2.755 MB / 0.7106 GB, free: 94.39 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001223/0.6017, allocations: 23.69 kB / 0.7107 GB, free: 94.38 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001302/0.603, allocations: 0.5527 MB / 0.7112 GB, free: 94.06 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 3.377e-06/0.603, allocations: 0 / 0.7112 GB, free: 94.06 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.009878/0.6129, allocations: 3.187 MB / 0.7143 GB, free: 92.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.613, allocations: 62.89 kB / 0.7144 GB, free: 92.43 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007395/0.6137, allocations: 448.9 kB / 0.7148 GB, free: 92.18 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.304e-05/0.6138, allocations: 41.88 kB / 0.7149 GB, free: 92.13 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002025/0.614, allocations: 320.1 kB / 0.7152 GB, free: 91.85 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.6143, allocations: 250.6 kB / 0.7154 GB, free: 91.64 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.465e-05/0.6143, allocations: 20.06 kB / 0.7154 GB, free: 91.62 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.6144, allocations: 377.9 kB / 0.7158 GB, free: 91.26 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008579/0.6153, allocations: 445 kB / 0.7162 GB, free: 91.06 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009117/0.6162, allocations: 0.5295 MB / 0.7167 GB, free: 90.75 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008874/0.6171, allocations: 474.8 kB / 0.7172 GB, free: 90.54 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.391e-06/0.6171, allocations: 1.625 kB / 0.7172 GB, free: 90.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006629/0.6238, allocations: 2.641 MB / 0.7198 GB, free: 89.37 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.6238, allocations: 7.469 kB / 0.7198 GB, free: 89.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.6238, allocations: 0 / 0.7198 GB, free: 89.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003753/0.6276, allocations: 1.176 MB / 0.7209 GB, free: 88.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005835/0.6282, allocations: 118.3 kB / 0.721 GB, free: 88.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007876/0.6361, allocations: 4.669 MB / 0.7256 GB, free: 84.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008738/0.637, allocations: 119.3 kB / 0.7257 GB, free: 84.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.626e-05/0.637, allocations: 24 kB / 0.7257 GB, free: 84.03 MB / 474.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.0004215/0.6374, allocations: 205.8 kB / 0.7259 GB, free: 83.82 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.761e-05/0.6376, allocations: 75.06 kB / 0.726 GB, free: 83.74 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004999/0.6426, allocations: 2.174 MB / 0.7281 GB, free: 81.55 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.6426, allocations: 8 kB / 0.7281 GB, free: 81.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.6426, allocations: 7.938 kB / 0.7281 GB, free: 81.54 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.6426, allocations: 0 / 0.7281 GB, free: 81.54 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003965/0.6466, allocations: 2.601 MB / 0.7307 GB, free: 78.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.6466, allocations: 0 / 0.7307 GB, free: 78.86 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003687/0.647, allocations: 71.84 kB / 0.7307 GB, free: 78.79 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.003808/0.6508, allocations: 1.254 MB / 0.732 GB, free: 77.52 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.14e-05/0.6509, allocations: 19.98 kB / 0.732 GB, free: 77.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005276/0.6514, allocations: 124.7 kB / 0.7321 GB, free: 77.38 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.6514, allocations: 4 kB / 0.7321 GB, free: 77.38 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003768/0.6552, allocations: 2.214 MB / 0.7343 GB, free: 75.14 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.6554, allocations: 148.2 kB / 0.7344 GB, free: 74.97 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.181e-05/0.6555, allocations: 16 kB / 0.7344 GB, free: 74.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006996/0.6562, allocations: 75.94 kB / 0.7345 GB, free: 74.88 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002763/0.6565, allocations: 128.4 kB / 0.7346 GB, free: 74.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.146e-05/0.6565, allocations: 20 kB / 0.7346 GB, free: 74.74 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003904/0.6569, allocations: 342.8 kB / 0.735 GB, free: 74.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6569, allocations: 0 / 0.735 GB, free: 74.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007905/0.6577, allocations: 255.6 kB / 0.7352 GB, free: 74.16 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) * 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.0002178/0.6579, allocations: 131.2 kB / 0.7353 GB, free: 74.02 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003565/0.6615, allocations: 1.74 MB / 0.737 GB, free: 72.22 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.6615, allocations: 3.938 kB / 0.737 GB, free: 72.21 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/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3332:9-3332: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/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1480:5-1480:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]