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.07107/0.07107, allocations: 12.6 MB / 28.9 MB, free: 0.6289 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.001018/0.001018, allocations: 111.5 kB / 32.51 MB, free: 3.566 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.222/1.222, allocations: 205.1 MB / 241.1 MB, free: 12.36 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.001341/0.001341, allocations: 184.5 kB / 291.4 MB, free: 13.38 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4108/0.4108, allocations: 78.51 MB / 420 MB, free: 11.24 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.002466/0.002466, allocations: 133.9 kB / 0.5565 GB, free: 28.58 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1149, 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.005093/0.12, allocations: 4.41 MB / 0.6273 GB, free: 11 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.1226, allocations: 1.22 MB / 0.6285 GB, free: 9.777 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005036/0.1232, allocations: 4 kB / 0.6285 GB, free: 9.773 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004957/0.1237, allocations: 142.8 kB / 0.6287 GB, free: 9.633 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008906/0.1246, allocations: 266 kB / 0.6289 GB, free: 9.371 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.1261, allocations: 0.5723 MB / 0.6295 GB, free: 8.801 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00103/0.1271, allocations: 0.8056 MB / 0.6303 GB, free: 7.988 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003711/0.1275, allocations: 201.7 kB / 0.6305 GB, free: 7.773 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004938/0.128, allocations: 330.6 kB / 0.6308 GB, free: 7.449 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006084/0.1287, allocations: 414 kB / 0.6312 GB, free: 7.043 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001724/0.1288, allocations: 64 kB / 0.6312 GB, free: 6.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000359/0.1292, allocations: 135.9 kB / 0.6314 GB, free: 6.848 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.1294, allocations: 163.3 kB / 0.6315 GB, free: 6.688 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003586/0.1297, allocations: 389.7 kB / 0.6319 GB, free: 6.305 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008907/0.1306, allocations: 0.9108 MB / 0.6328 GB, free: 5.391 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1306, allocations: 3.938 kB / 0.6328 GB, free: 5.387 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1306, allocations: 0 / 0.6328 GB, free: 5.387 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.1307, allocations: 0 / 0.6328 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.004257/0.1349, allocations: 1.567 MB / 0.6343 GB, free: 3.766 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.135, allocations: 11.98 kB / 0.6343 GB, free: 3.754 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002552/0.1375, allocations: 431.1 kB / 0.6347 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00067/0.1382, allocations: 0.4942 MB / 0.6352 GB, free: 2.797 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.1385, allocations: 197.8 kB / 0.6354 GB, free: 2.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.1386, allocations: 63.92 kB / 0.6355 GB, free: 2.508 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.14, allocations: 0.6936 MB / 0.6361 GB, free: 1.809 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.1401, allocations: 0 / 0.6361 GB, free: 1.809 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.676e-05/0.1401, allocations: 20 kB / 0.6362 GB, free: 1.789 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1402, allocations: 19.94 kB / 0.6362 GB, free: 1.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.1415, allocations: 0.6688 MB / 0.6368 GB, free: 1.102 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003629/0.1452, allocations: 2.136 MB / 0.6389 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007724/0.1529, allocations: 2.27 MB / 0.6411 GB, free: 12.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.154, allocations: 480.5 kB / 0.6416 GB, free: 12.03 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.734e-05/0.1541, allocations: 8.656 kB / 0.6416 GB, free: 12.02 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001232/0.1554, allocations: 0.5235 MB / 0.6421 GB, free: 11.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=73): time 3.407e-06/0.1554, allocations: 4 kB / 0.6421 GB, free: 11.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=73): time 0.007081/0.1625, allocations: 2.451 MB / 0.6445 GB, free: 8.961 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.1626, allocations: 64.06 kB / 0.6446 GB, free: 8.883 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005963/0.1632, allocations: 0.507 MB / 0.6451 GB, free: 8.363 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.73e-05/0.1633, allocations: 45.69 kB / 0.6451 GB, free: 8.312 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.1635, allocations: 320.6 kB / 0.6454 GB, free: 7.996 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002216/0.1637, allocations: 248.4 kB / 0.6457 GB, free: 7.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.1639, allocations: 118.7 kB / 0.6458 GB, free: 7.629 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1641, allocations: 382.8 kB / 0.6461 GB, free: 7.246 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008614/0.165, allocations: 405.8 kB / 0.6465 GB, free: 6.852 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009229/0.1659, allocations: 0.4984 MB / 0.647 GB, free: 6.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008778/0.1747, allocations: 2.51 MB / 0.6495 GB, free: 3.789 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.1747, allocations: 4 kB / 0.6495 GB, free: 3.785 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007163/0.1819, allocations: 2.216 MB / 0.6516 GB, free: 1.547 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.08e-05/0.182, allocations: 6.969 kB / 0.6516 GB, free: 1.543 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.182, allocations: 4 kB / 0.6516 GB, free: 1.539 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004004/0.186, allocations: 1.001 MB / 0.6526 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005506/0.1866, allocations: 103.8 kB / 0.6527 GB, free: 436 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01016/0.1968, allocations: 4.522 MB / 0.6571 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000829/0.1976, allocations: 95.31 kB / 0.6572 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.1978, allocations: 24 kB / 0.6572 GB, free: 11.65 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.0004315/0.1982, allocations: 203.3 kB / 0.6574 GB, free: 11.45 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.1984, allocations: 82.98 kB / 0.6575 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004662/0.2031, allocations: 1.69 MB / 0.6592 GB, free: 9.652 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/0.2031, allocations: 8 kB / 0.6592 GB, free: 9.645 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.2031, allocations: 4 kB / 0.6592 GB, free: 9.641 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.2031, allocations: 7.922 kB / 0.6592 GB, free: 9.633 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004621/0.2078, allocations: 2.439 MB / 0.6616 GB, free: 7.102 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.2078, allocations: 0 / 0.6616 GB, free: 7.102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003818/0.2082, allocations: 63.91 kB / 0.6616 GB, free: 7.039 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.004089/0.2123, allocations: 1.068 MB / 0.6627 GB, free: 5.961 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.724e-05/0.2124, allocations: 19.92 kB / 0.6627 GB, free: 5.941 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005529/0.2129, allocations: 96.75 kB / 0.6628 GB, free: 5.844 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2129, allocations: 0 / 0.6628 GB, free: 5.844 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0044/0.2173, allocations: 2.016 MB / 0.6647 GB, free: 3.801 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002166/0.2176, allocations: 156 kB / 0.6649 GB, free: 3.629 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.2177, allocations: 19.94 kB / 0.6649 GB, free: 3.609 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006321/0.2184, allocations: 51.94 kB / 0.665 GB, free: 3.559 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000288/0.2187, allocations: 128.5 kB / 0.6651 GB, free: 3.434 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.361e-05/0.2187, allocations: 24 kB / 0.6651 GB, free: 3.41 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003919/0.2191, allocations: 350.8 kB / 0.6654 GB, free: 3.07 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2191, allocations: 3.938 kB / 0.6654 GB, free: 3.066 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007422/0.2199, allocations: 239.7 kB / 0.6657 GB, free: 2.832 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.0002019/0.2201, allocations: 127.1 kB / 0.6658 GB, free: 2.699 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003953/0.224, allocations: 1.576 MB / 0.6673 GB, free: 1.066 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2241, allocations: 0 / 0.6673 GB, free: 1.066 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]