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.08074/0.08074, allocations: 12.59 MB / 28.9 MB, free: 400 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 123.4 kB / 32.51 MB, free: 3.387 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.384/1.384, allocations: 205.1 MB / 241.1 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.001568/0.001568, allocations: 183.4 kB / 291.4 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.4292/0.4292, allocations: 78.52 MB / 420 MB, free: 11.22 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.003884/0.003884, allocations: 139.3 kB / 0.5565 GB, free: 28.51 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1255, allocations: 68.13 MB / 0.623 GB, free: 15.44 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005642/0.1311, allocations: 4.413 MB / 0.6273 GB, free: 11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002449/0.1336, allocations: 1.213 MB / 0.6285 GB, free: 9.781 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002729/0.1339, allocations: 8 kB / 0.6285 GB, free: 9.773 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003889/0.1343, allocations: 146.8 kB / 0.6287 GB, free: 9.629 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005525/0.1349, allocations: 258 kB / 0.6289 GB, free: 9.375 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001293/0.1362, allocations: 0.5801 MB / 0.6295 GB, free: 8.797 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008915/0.1371, allocations: 0.8095 MB / 0.6303 GB, free: 7.98 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003351/0.1375, allocations: 201.7 kB / 0.6305 GB, free: 7.766 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003248/0.1378, allocations: 330.5 kB / 0.6308 GB, free: 7.441 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005037/0.1383, allocations: 414.1 kB / 0.6312 GB, free: 7.035 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.232e-05/0.1384, allocations: 64 kB / 0.6312 GB, free: 6.973 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002961/0.1387, allocations: 131.9 kB / 0.6314 GB, free: 6.844 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.1389, allocations: 163.3 kB / 0.6315 GB, free: 6.684 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003462/0.1392, allocations: 393.7 kB / 0.6319 GB, free: 6.297 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.1402, allocations: 0.914 MB / 0.6328 GB, free: 5.379 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1402, allocations: 0 / 0.6328 GB, free: 5.379 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.078e-06/0.1403, allocations: 4 kB / 0.6328 GB, free: 5.375 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.1403, allocations: 3.938 kB / 0.6328 GB, free: 5.371 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.004348/0.1446, allocations: 1.582 MB / 0.6343 GB, free: 3.734 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.1447, allocations: 11.98 kB / 0.6344 GB, free: 3.723 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00259/0.1473, allocations: 435.6 kB / 0.6348 GB, free: 3.297 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007703/0.1481, allocations: 0.5025 MB / 0.6353 GB, free: 2.754 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002621/0.1483, allocations: 209.7 kB / 0.6355 GB, free: 2.516 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.956e-05/0.1484, allocations: 52 kB / 0.6355 GB, free: 2.465 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.1499, allocations: 0.6819 MB / 0.6362 GB, free: 1.777 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.1499, allocations: 4 kB / 0.6362 GB, free: 1.773 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.727e-05/0.15, allocations: 24 kB / 0.6362 GB, free: 1.75 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.15, allocations: 19.94 kB / 0.6362 GB, free: 1.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.1515, allocations: 0.6727 MB / 0.6369 GB, free: 1.059 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003841/0.1553, allocations: 2.137 MB / 0.639 GB, free: 14.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007744/0.1631, allocations: 2.258 MB / 0.6412 GB, free: 12.47 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.1642, allocations: 484.5 kB / 0.6416 GB, free: 12 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.796e-05/0.1643, allocations: 16.64 kB / 0.6417 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/0.1655, allocations: 0.5275 MB / 0.6422 GB, free: 11.44 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 2.895e-06/0.1655, allocations: 0 / 0.6422 GB, free: 11.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007213/0.1727, allocations: 2.459 MB / 0.6446 GB, free: 8.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.1728, allocations: 60.06 kB / 0.6446 GB, free: 8.836 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006393/0.1734, allocations: 0.507 MB / 0.6451 GB, free: 8.316 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.591e-05/0.1735, allocations: 45.7 kB / 0.6452 GB, free: 8.266 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.1738, allocations: 321.1 kB / 0.6455 GB, free: 7.949 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002548/0.1741, allocations: 265.7 kB / 0.6457 GB, free: 7.688 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002456/0.1743, allocations: 122.6 kB / 0.6458 GB, free: 7.562 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.1745, allocations: 382.8 kB / 0.6462 GB, free: 7.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009048/0.1754, allocations: 401.8 kB / 0.6466 GB, free: 6.789 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009884/0.1764, allocations: 0.4946 MB / 0.6471 GB, free: 6.262 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008907/0.1853, allocations: 2.521 MB / 0.6495 GB, free: 3.719 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1854, allocations: 0 / 0.6495 GB, free: 3.719 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007094/0.1925, allocations: 2.216 MB / 0.6517 GB, free: 1.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.1926, allocations: 11.98 kB / 0.6517 GB, free: 1.469 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.1926, allocations: 0 / 0.6517 GB, free: 1.469 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003913/0.1965, allocations: 0.9976 MB / 0.6527 GB, free: 472 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005414/0.197, allocations: 111.8 kB / 0.6528 GB, free: 360 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009709/0.2068, allocations: 4.507 MB / 0.6572 GB, free: 11.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007835/0.2076, allocations: 107.5 kB / 0.6573 GB, free: 11.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.579e-05/0.2077, allocations: 28 kB / 0.6573 GB, free: 11.58 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.0003597/0.208, allocations: 207.3 kB / 0.6575 GB, free: 11.37 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.2082, allocations: 79.48 kB / 0.6576 GB, free: 11.29 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004785/0.2129, allocations: 1.686 MB / 0.6592 GB, free: 9.582 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.213, allocations: 12 kB / 0.6593 GB, free: 9.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.213, allocations: 0 / 0.6593 GB, free: 9.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.213, allocations: 7.922 kB / 0.6593 GB, free: 9.562 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004729/0.2177, allocations: 2.439 MB / 0.6616 GB, free: 7.031 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.2178, allocations: 0 / 0.6616 GB, free: 7.031 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003915/0.2182, allocations: 71.89 kB / 0.6617 GB, free: 6.961 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.004126/0.2223, allocations: 1.064 MB / 0.6628 GB, free: 5.887 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.535e-05/0.2224, allocations: 16 kB / 0.6628 GB, free: 5.871 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005326/0.2229, allocations: 104.7 kB / 0.6629 GB, free: 5.766 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2229, allocations: 0 / 0.6629 GB, free: 5.766 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004564/0.2275, allocations: 2.016 MB / 0.6648 GB, free: 3.723 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002414/0.2278, allocations: 156.5 kB / 0.665 GB, free: 3.551 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.2279, allocations: 23.92 kB / 0.665 GB, free: 3.527 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005711/0.2284, allocations: 55.94 kB / 0.6651 GB, free: 3.473 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003051/0.2288, allocations: 120.5 kB / 0.6652 GB, free: 3.355 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.302e-05/0.2288, allocations: 16 kB / 0.6652 GB, free: 3.34 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004233/0.2292, allocations: 358.8 kB / 0.6655 GB, free: 2.992 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.874e-06/0.2293, allocations: 0 / 0.6655 GB, free: 2.992 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007006/0.23, allocations: 235.8 kB / 0.6658 GB, free: 2.762 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.0002256/0.2302, allocations: 119.3 kB / 0.6659 GB, free: 2.637 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004053/0.2343, allocations: 1.583 MB / 0.6674 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.2343, allocations: 0 / 0.6674 GB, free: 0.9961 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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1549:5-1549:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/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]