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.001914/0.001914, allocations: 182.2 kB / 15.98 MB, free: 5.77 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.554/1.554, allocations: 205.1 MB / 221.8 MB, free: 8.484 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.001137/0.001137, allocations: 88.19 kB / 269.2 MB, free: 8.457 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.07521/0.07521, allocations: 12.59 MB / 329.1 MB, free: 12.41 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2972/0.2972, allocations: 78.52 MB / 457.8 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 115.1 kB / 0.5254 GB, free: 19.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.159, allocations: 68.14 MB / 0.592 GB, free: 15.66 MB / 394.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.006152/0.1652, allocations: 4.682 MB / 0.5966 GB, free: 10.94 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.00302/0.1683, allocations: 1.24 MB / 0.5978 GB, free: 9.695 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008083/0.1691, allocations: 8 kB / 0.5978 GB, free: 9.688 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005073/0.1697, allocations: 115.3 kB / 0.5979 GB, free: 9.574 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006982/0.1704, allocations: 186.6 kB / 0.5981 GB, free: 9.391 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001452/0.1719, allocations: 0.5568 MB / 0.5986 GB, free: 8.836 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009211/0.1728, allocations: 0.7628 MB / 0.5994 GB, free: 8.07 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003293/0.1732, allocations: 182.4 kB / 0.5995 GB, free: 7.879 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003026/0.1735, allocations: 310.5 kB / 0.5998 GB, free: 7.574 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004865/0.174, allocations: 394 kB / 0.6002 GB, free: 7.188 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 7.897e-05/0.174, allocations: 44 kB / 0.6002 GB, free: 7.145 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003252/0.1744, allocations: 107.9 kB / 0.6003 GB, free: 7.039 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1745, allocations: 143.3 kB / 0.6005 GB, free: 6.898 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003449/0.1749, allocations: 369.7 kB / 0.6008 GB, free: 6.535 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008936/0.1758, allocations: 0.8835 MB / 0.6017 GB, free: 5.648 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1758, allocations: 4 kB / 0.6017 GB, free: 5.645 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1758, allocations: 0 / 0.6017 GB, free: 5.645 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1758, allocations: 0 / 0.6017 GB, free: 5.645 MB / 394.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.004765/0.1806, allocations: 1.567 MB / 0.6032 GB, free: 4.027 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.671e-05/0.1807, allocations: 11.98 kB / 0.6032 GB, free: 4.016 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002541/0.1832, allocations: 427.1 kB / 0.6036 GB, free: 3.598 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007337/0.184, allocations: 0.4942 MB / 0.6041 GB, free: 3.059 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002365/0.1842, allocations: 201.8 kB / 0.6043 GB, free: 2.828 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.457e-05/0.1843, allocations: 52 kB / 0.6044 GB, free: 2.777 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.1858, allocations: 0.6974 MB / 0.6051 GB, free: 2.078 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.1858, allocations: 0 / 0.6051 GB, free: 2.078 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/0.1859, allocations: 24 kB / 0.6051 GB, free: 2.055 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.1859, allocations: 15.94 kB / 0.6051 GB, free: 2.039 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/0.1873, allocations: 0.6727 MB / 0.6057 GB, free: 1.363 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003672/0.191, allocations: 2.148 MB / 0.6078 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00794/0.1989, allocations: 2.265 MB / 0.6101 GB, free: 12.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/0.2, allocations: 479.1 kB / 0.6105 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.126e-05/0.2001, allocations: 12.64 kB / 0.6105 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001194/0.2013, allocations: 0.5274 MB / 0.611 GB, free: 11.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=73): time 5.61e-06/0.2013, allocations: 7.938 kB / 0.611 GB, free: 11.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=73): time 0.007279/0.2086, allocations: 2.455 MB / 0.6134 GB, free: 9.195 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.2087, allocations: 60.06 kB / 0.6135 GB, free: 9.125 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006345/0.2093, allocations: 0.507 MB / 0.614 GB, free: 8.609 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.149e-05/0.2094, allocations: 45.69 kB / 0.614 GB, free: 8.559 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002286/0.2096, allocations: 324.6 kB / 0.6144 GB, free: 8.234 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002457/0.2099, allocations: 248.4 kB / 0.6146 GB, free: 7.988 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002362/0.2101, allocations: 118.7 kB / 0.6147 GB, free: 7.863 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2103, allocations: 382.8 kB / 0.6151 GB, free: 7.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008594/0.2112, allocations: 401.8 kB / 0.6155 GB, free: 7.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009198/0.2121, allocations: 0.5023 MB / 0.6159 GB, free: 6.562 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008761/0.2209, allocations: 2.51 MB / 0.6184 GB, free: 4.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.2209, allocations: 0 / 0.6184 GB, free: 4.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00717/0.2281, allocations: 2.216 MB / 0.6206 GB, free: 1.789 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.2281, allocations: 8 kB / 0.6206 GB, free: 1.781 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.2281, allocations: 0 / 0.6206 GB, free: 1.781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003946/0.2321, allocations: 0.9976 MB / 0.6215 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005466/0.2327, allocations: 107.8 kB / 0.6216 GB, free: 0.668 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008922/0.2416, allocations: 4.138 MB / 0.6257 GB, free: 12.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008892/0.2425, allocations: 103.2 kB / 0.6258 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-05/0.2426, allocations: 24 kB / 0.6258 GB, free: 12.28 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: load.xp:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xq: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 ($PRE.ultc.zeroCrossing.enable,$PRE.ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.enable,ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.zeroCrossing.y,ultc.m,$PRE.ultc.m,$whenCondition2,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003592/0.243, allocations: 193.7 kB / 0.626 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.2431, allocations: 83 kB / 0.6261 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004691/0.2478, allocations: 1.694 MB / 0.6277 GB, free: 10.28 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.2478, allocations: 8 kB / 0.6277 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.2478, allocations: 0 / 0.6277 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.2478, allocations: 4.172 kB / 0.6277 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004442/0.2523, allocations: 2.437 MB / 0.6301 GB, free: 7.742 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.2523, allocations: 11.88 kB / 0.6301 GB, free: 7.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.2527, allocations: 67.89 kB / 0.6302 GB, free: 7.664 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.00416/0.2569, allocations: 1.069 MB / 0.6312 GB, free: 6.586 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.289e-05/0.257, allocations: 19.98 kB / 0.6313 GB, free: 6.566 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005665/0.2575, allocations: 100.7 kB / 0.6313 GB, free: 6.465 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2575, allocations: 4 kB / 0.6314 GB, free: 6.461 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2949/0.5525, allocations: 14.04 MB / 0.6451 GB, free: 49.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.5527, allocations: 149.5 kB / 0.6452 GB, free: 49.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.618e-05/0.5528, allocations: 18.44 kB / 0.6452 GB, free: 49.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006696/0.5535, allocations: 53.36 kB / 0.6453 GB, free: 49.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004298/0.5539, allocations: 119.1 kB / 0.6454 GB, free: 49.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-05/0.554, allocations: 22.69 kB / 0.6454 GB, free: 49.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004318/0.5544, allocations: 350.6 kB / 0.6457 GB, free: 49.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5544, allocations: 1.125 kB / 0.6457 GB, free: 49.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00108/0.5555, allocations: 347.4 kB / 0.6461 GB, free: 49.11 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002011/0.5557, allocations: 120.2 kB / 0.6462 GB, free: 49.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004156/0.5599, allocations: 1.564 MB / 0.6477 GB, free: 48.33 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5599, allocations: 0 / 0.6477 GB, free: 48.33 MB / 426.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@2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3446:9-3446: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@2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1519:5-1519:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:774:5-774:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]