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.001493/0.001493, allocations: 175.2 kB / 12.73 MB, free: 2.59 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.352/1.352, allocations: 205.2 MB / 218.5 MB, free: 9.211 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.0008723/0.0008725, allocations: 82.86 kB / 266.6 MB, free: 9.27 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.06626/0.06626, allocations: 12.58 MB / 327.2 MB, free: 12.49 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2831/0.2831, allocations: 78.03 MB / 456.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.962e-05/2.967e-05, allocations: 11.75 kB / 0.5218 GB, free: 23.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.101, allocations: 69.33 MB / 0.5895 GB, free: 2.496 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3514/0.4524, allocations: 94.79 MB / 0.6821 GB, free: 4.613 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001874/0.4526, allocations: 78.39 kB / 0.6821 GB, free: 4.57 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03406/0.4867, allocations: 13.57 MB / 0.6954 GB, free: 9.137 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4867, allocations: 0 / 0.6954 GB, free: 9.137 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.761e-05/0.4867, allocations: 12 kB / 0.6954 GB, free: 9.125 MB / 442.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.002819/0.4896, allocations: 1.126 MB / 0.6965 GB, free: 8.023 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.4896, allocations: 11.98 kB / 0.6965 GB, free: 8.012 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001695/0.4913, allocations: 312.6 kB / 0.6968 GB, free: 7.727 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008007/0.4921, allocations: 445.1 kB / 0.6972 GB, free: 7.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003148/0.4925, allocations: 207 kB / 0.6974 GB, free: 7.109 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.4926, allocations: 51.94 kB / 0.6975 GB, free: 7.074 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.4937, allocations: 0.5879 MB / 0.698 GB, free: 6.695 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.4937, allocations: 0 / 0.698 GB, free: 6.695 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.369e-05/0.4938, allocations: 21.06 kB / 0.6981 GB, free: 6.691 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.4938, allocations: 19.98 kB / 0.6981 GB, free: 6.672 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009213/0.4947, allocations: 0.5611 MB / 0.6986 GB, free: 6.316 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00374/0.4985, allocations: 2.188 MB / 0.7008 GB, free: 4.723 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00794/0.5064, allocations: 2.563 MB / 0.7033 GB, free: 2.352 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005816/0.507, allocations: 384 kB / 0.7036 GB, free: 2.141 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.149e-05/0.5071, allocations: 12.78 kB / 0.7037 GB, free: 2.125 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007188/0.5079, allocations: 438.9 kB / 0.7041 GB, free: 1.832 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 3.086e-06/0.5079, allocations: 0 / 0.7041 GB, free: 1.832 MB / 442.7 MB Notification: Performance of matching and sorting (n=73): time 0.004345/0.5122, allocations: 1.551 MB / 0.7056 GB, free: 0.6094 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.5123, allocations: 64.17 kB / 0.7056 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005329/0.5128, allocations: 447.3 kB / 0.7061 GB, free: 192 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.214e-05/0.5129, allocations: 40.27 kB / 0.7061 GB, free: 156 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002313/0.5132, allocations: 326.4 kB / 0.7064 GB, free: 15.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000239/0.5134, allocations: 249.2 kB / 0.7067 GB, free: 15.72 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.296e-05/0.5135, allocations: 10.56 kB / 0.7067 GB, free: 15.72 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.5136, allocations: 386.8 kB / 0.707 GB, free: 15.37 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004874/0.5141, allocations: 308.1 kB / 0.7073 GB, free: 15.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000543/0.5147, allocations: 403.9 kB / 0.7077 GB, free: 14.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005242/0.5152, allocations: 341.4 kB / 0.708 GB, free: 14.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5152, allocations: 0 / 0.708 GB, free: 14.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006676/0.5219, allocations: 2.249 MB / 0.7102 GB, free: 12.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.5219, allocations: 7.953 kB / 0.7102 GB, free: 12.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.5219, allocations: 4 kB / 0.7102 GB, free: 12.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003623/0.5256, allocations: 0.957 MB / 0.7112 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005068/0.5261, allocations: 107.2 kB / 0.7113 GB, free: 11.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006969/0.5331, allocations: 3.723 MB / 0.7149 GB, free: 9.035 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007853/0.5339, allocations: 117.9 kB / 0.715 GB, free: 8.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-05/0.534, allocations: 22.75 kB / 0.7151 GB, free: 8.914 MB / 458.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.0002062/0.5342, allocations: 149.8 kB / 0.7152 GB, free: 8.781 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.5343, allocations: 79.02 kB / 0.7153 GB, free: 8.703 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004861/0.5392, allocations: 1.805 MB / 0.717 GB, free: 7.293 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.5392, allocations: 8 kB / 0.717 GB, free: 7.285 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.5392, allocations: 0 / 0.717 GB, free: 7.285 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.5392, allocations: 3.984 kB / 0.717 GB, free: 7.281 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003607/0.5428, allocations: 2.222 MB / 0.7192 GB, free: 5.617 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.5429, allocations: 0 / 0.7192 GB, free: 5.617 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003985/0.5433, allocations: 75.64 kB / 0.7193 GB, free: 5.547 MB / 458.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.003872/0.5472, allocations: 1.022 MB / 0.7203 GB, free: 4.66 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.386e-05/0.5472, allocations: 17.94 kB / 0.7203 GB, free: 4.652 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006237/0.5479, allocations: 128.1 kB / 0.7204 GB, free: 4.527 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.5479, allocations: 3.953 kB / 0.7204 GB, free: 4.523 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003053/0.5509, allocations: 1.716 MB / 0.7221 GB, free: 3.379 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.5511, allocations: 159.3 kB / 0.7223 GB, free: 3.207 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.5513, allocations: 15.19 kB / 0.7223 GB, free: 3.203 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006701/0.5519, allocations: 86.55 kB / 0.7224 GB, free: 3.129 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002817/0.5522, allocations: 121.3 kB / 0.7225 GB, free: 3.027 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.352e-05/0.5523, allocations: 19.25 kB / 0.7225 GB, free: 3.012 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003788/0.5527, allocations: 339.7 kB / 0.7228 GB, free: 2.754 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5527, allocations: 0 / 0.7228 GB, free: 2.754 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00068/0.5534, allocations: 255 kB / 0.7231 GB, free: 2.531 MB / 458.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.0002201/0.5536, allocations: 122 kB / 0.7232 GB, free: 2.41 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003263/0.5569, allocations: 1.472 MB / 0.7246 GB, free: 1.215 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5569, allocations: 3.938 kB / 0.7246 GB, free: 1.211 MB / 458.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:3299:9-3299: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:1476:5-1476:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:744:5-744:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]