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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) 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 3.2.3+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 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 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07693/0.07693, allocations: 12.59 MB / 28.22 MB, free: 1.07 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 111.4 kB / 31.83 MB, free: 4.012 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.296/1.296, allocations: 205.1 MB / 240.4 MB, free: 12.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 192.5 kB / 290.7 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4241/0.4241, allocations: 78.51 MB / 419.3 MB, free: 11.27 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002605/0.002605, allocations: 138 kB / 0.5558 GB, free: 28.57 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.109, allocations: 68.13 MB / 0.6224 GB, free: 15.45 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004791/0.1138, allocations: 4.409 MB / 0.6267 GB, free: 11.01 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.1158, allocations: 1.205 MB / 0.6278 GB, free: 9.801 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001987/0.116, allocations: 8 kB / 0.6279 GB, free: 9.793 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.1164, allocations: 146.8 kB / 0.628 GB, free: 9.648 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004999/0.1169, allocations: 262 kB / 0.6282 GB, free: 9.391 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.118, allocations: 0.5756 MB / 0.6288 GB, free: 8.816 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007018/0.1188, allocations: 0.8173 MB / 0.6296 GB, free: 7.992 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002969/0.1191, allocations: 205.7 kB / 0.6298 GB, free: 7.773 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.1193, allocations: 330.6 kB / 0.6301 GB, free: 7.449 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004355/0.1198, allocations: 414 kB / 0.6305 GB, free: 7.043 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.392e-05/0.1199, allocations: 64 kB / 0.6306 GB, free: 6.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002572/0.1201, allocations: 135.9 kB / 0.6307 GB, free: 6.848 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.1203, allocations: 163.3 kB / 0.6309 GB, free: 6.688 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003137/0.1206, allocations: 393.7 kB / 0.6312 GB, free: 6.301 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008101/0.1214, allocations: 0.9108 MB / 0.6321 GB, free: 5.387 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.1214, allocations: 0 / 0.6321 GB, free: 5.387 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1214, allocations: 0 / 0.6321 GB, free: 5.387 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.1215, allocations: 0 / 0.6321 GB, free: 5.387 MB / 446.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.004324/0.1258, allocations: 1.567 MB / 0.6337 GB, free: 3.766 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.1258, allocations: 11.98 kB / 0.6337 GB, free: 3.754 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0027/0.1285, allocations: 431.1 kB / 0.6341 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005954/0.1291, allocations: 0.4942 MB / 0.6346 GB, free: 2.797 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/0.1294, allocations: 197.8 kB / 0.6347 GB, free: 2.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.1295, allocations: 52 kB / 0.6348 GB, free: 2.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.131, allocations: 0.6935 MB / 0.6355 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.131, allocations: 0 / 0.6355 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.995e-05/0.1311, allocations: 24 kB / 0.6355 GB, free: 1.797 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.1311, allocations: 19.94 kB / 0.6355 GB, free: 1.777 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.1326, allocations: 0.6727 MB / 0.6362 GB, free: 1.105 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003665/0.1363, allocations: 2.136 MB / 0.6383 GB, free: 14.89 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008131/0.1444, allocations: 2.261 MB / 0.6405 GB, free: 12.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009597/0.1454, allocations: 480.5 kB / 0.6409 GB, free: 12.05 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.708e-05/0.1455, allocations: 12.66 kB / 0.6409 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.1466, allocations: 0.5235 MB / 0.6414 GB, free: 11.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 2.785e-06/0.1467, allocations: 0 / 0.6414 GB, free: 11.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007411/0.1541, allocations: 2.455 MB / 0.6438 GB, free: 8.973 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.1541, allocations: 67.98 kB / 0.6439 GB, free: 8.891 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005589/0.1547, allocations: 0.5031 MB / 0.6444 GB, free: 8.375 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.585e-05/0.1548, allocations: 41.7 kB / 0.6444 GB, free: 8.328 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.155, allocations: 328.6 kB / 0.6448 GB, free: 8.004 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.1552, allocations: 252.4 kB / 0.645 GB, free: 7.754 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.1555, allocations: 114.7 kB / 0.6451 GB, free: 7.637 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1556, allocations: 382.8 kB / 0.6455 GB, free: 7.254 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009105/0.1565, allocations: 401.8 kB / 0.6459 GB, free: 6.863 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009711/0.1575, allocations: 0.4984 MB / 0.6463 GB, free: 6.332 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009276/0.1668, allocations: 2.521 MB / 0.6488 GB, free: 3.789 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1668, allocations: 0 / 0.6488 GB, free: 3.789 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007471/0.1743, allocations: 2.208 MB / 0.651 GB, free: 1.559 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.1743, allocations: 15.94 kB / 0.651 GB, free: 1.543 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1743, allocations: 0 / 0.651 GB, free: 1.543 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004191/0.1785, allocations: 0.9976 MB / 0.6519 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005246/0.1791, allocations: 107.8 kB / 0.6521 GB, free: 440 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00983/0.1889, allocations: 4.503 MB / 0.6564 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007721/0.1897, allocations: 99.31 kB / 0.6565 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.979e-05/0.1898, allocations: 28 kB / 0.6566 GB, free: 11.66 MB / 478.1 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.0003578/0.1902, allocations: 207.4 kB / 0.6568 GB, free: 11.45 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.1903, allocations: 79 kB / 0.6568 GB, free: 11.38 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005014/0.1953, allocations: 1.69 MB / 0.6585 GB, free: 9.664 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.1954, allocations: 8 kB / 0.6585 GB, free: 9.656 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1954, allocations: 0 / 0.6585 GB, free: 9.656 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.1954, allocations: 11.91 kB / 0.6585 GB, free: 9.645 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004703/0.2001, allocations: 2.439 MB / 0.6609 GB, free: 7.113 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.2001, allocations: 4 kB / 0.6609 GB, free: 7.109 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004031/0.2005, allocations: 67.91 kB / 0.661 GB, free: 7.043 MB / 478.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.004439/0.205, allocations: 1.056 MB / 0.662 GB, free: 5.977 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.411e-05/0.2051, allocations: 23.98 kB / 0.662 GB, free: 5.953 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006004/0.2057, allocations: 100.8 kB / 0.6621 GB, free: 5.852 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2057, allocations: 4 kB / 0.6621 GB, free: 5.848 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004723/0.2104, allocations: 2.008 MB / 0.6641 GB, free: 3.812 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.2106, allocations: 160 kB / 0.6642 GB, free: 3.637 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.2107, allocations: 19.94 kB / 0.6642 GB, free: 3.617 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006556/0.2114, allocations: 51.94 kB / 0.6643 GB, free: 3.566 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003063/0.2117, allocations: 120.5 kB / 0.6644 GB, free: 3.449 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.418e-05/0.2118, allocations: 19.98 kB / 0.6644 GB, free: 3.43 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003889/0.2122, allocations: 358.8 kB / 0.6648 GB, free: 3.082 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2122, allocations: 4 kB / 0.6648 GB, free: 3.078 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007358/0.2129, allocations: 235.7 kB / 0.665 GB, free: 2.848 MB / 478.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 (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.0001991/0.2131, allocations: 119.1 kB / 0.6651 GB, free: 2.723 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004243/0.2174, allocations: 1.583 MB / 0.6667 GB, free: 1.082 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2174, allocations: 0 / 0.6667 GB, free: 1.082 MB / 478.1 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:3522:9-3522: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/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1549:5-1549:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]