Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Branches.Generic.ULTC.conf.json 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/Modelica 4.0.0+maint.om/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/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 221.5 MB / 229.6 MB, free: 3.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009461/0.000946, allocations: 93.09 kB / 280.5 MB, free: 1.141 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5015/0.5015, allocations: 78.07 MB / 409.3 MB, free: 15.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.655e-05, allocations: 0 / 485 MB, free: 3.965 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.392, allocations: 69.35 MB / 0.5414 GB, free: 21.76 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1372/0.5293, allocations: 92.64 MB / 0.6318 GB, free: 11.96 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000309/0.5297, allocations: 75.95 kB / 0.6319 GB, free: 11.89 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0376/0.5673, allocations: 13.84 MB / 0.6454 GB, free: 13.94 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.5674, allocations: 4 kB / 0.6454 GB, free: 13.93 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.869e-05/0.5674, allocations: 20.16 kB / 0.6454 GB, free: 13.91 MB / 474.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.003127/0.5705, allocations: 1.131 MB / 0.6465 GB, free: 12.73 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.5706, allocations: 8.031 kB / 0.6466 GB, free: 12.73 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001626/0.5722, allocations: 306.7 kB / 0.6468 GB, free: 12.43 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006178/0.5729, allocations: 442.7 kB / 0.6473 GB, free: 11.95 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002256/0.5731, allocations: 181.8 kB / 0.6474 GB, free: 11.75 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.851e-05/0.5732, allocations: 32 kB / 0.6475 GB, free: 11.71 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009243/0.5741, allocations: 0.5418 MB / 0.648 GB, free: 11.17 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009003/0.575, allocations: 0.5154 MB / 0.6485 GB, free: 10.65 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.5751, allocations: 0 / 0.6485 GB, free: 10.65 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.748e-05/0.5751, allocations: 4 kB / 0.6485 GB, free: 10.64 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.5752, allocations: 16 kB / 0.6485 GB, free: 10.63 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003471/0.5786, allocations: 2.08 MB / 0.6506 GB, free: 8.484 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007847/0.5865, allocations: 2.539 MB / 0.653 GB, free: 5.828 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006689/0.5872, allocations: 376.3 kB / 0.6534 GB, free: 5.457 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.691e-05/0.5873, allocations: 8.781 kB / 0.6534 GB, free: 5.449 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000657/0.588, allocations: 408.6 kB / 0.6538 GB, free: 5.039 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 2.945e-06/0.588, allocations: 0 / 0.6538 GB, free: 5.039 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.004155/0.5921, allocations: 1.505 MB / 0.6553 GB, free: 3.512 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.5922, allocations: 60.19 kB / 0.6553 GB, free: 3.441 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005501/0.5928, allocations: 414.5 kB / 0.6557 GB, free: 3.027 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.645e-05/0.5928, allocations: 25.7 kB / 0.6557 GB, free: 2.996 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002377/0.5931, allocations: 324.6 kB / 0.656 GB, free: 2.676 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/0.5933, allocations: 240.4 kB / 0.6563 GB, free: 2.438 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.623e-05/0.5934, allocations: 0 / 0.6563 GB, free: 2.438 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.5935, allocations: 382.8 kB / 0.6566 GB, free: 2.055 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004489/0.594, allocations: 293.6 kB / 0.6569 GB, free: 1.77 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004966/0.5945, allocations: 390.7 kB / 0.6573 GB, free: 1.363 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005058/0.595, allocations: 322 kB / 0.6576 GB, free: 1.051 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.595, allocations: 0 / 0.6576 GB, free: 1.051 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006361/0.6014, allocations: 2.176 MB / 0.6597 GB, free: 14.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.6015, allocations: 5.719 kB / 0.6597 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.6015, allocations: 4 kB / 0.6597 GB, free: 14.85 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003686/0.6052, allocations: 0.9451 MB / 0.6607 GB, free: 13.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006494/0.6058, allocations: 111.8 kB / 0.6608 GB, free: 13.79 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006829/0.6127, allocations: 3.588 MB / 0.6643 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009722/0.6137, allocations: 103.3 kB / 0.6644 GB, free: 9.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.286e-05/0.6138, allocations: 31.98 kB / 0.6644 GB, free: 9.949 MB / 490.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.0002576/0.614, allocations: 120.8 kB / 0.6645 GB, free: 9.824 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00391/0.618, allocations: 1.498 MB / 0.666 GB, free: 8.309 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.6181, allocations: 83 kB / 0.6661 GB, free: 8.227 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004696/0.6228, allocations: 1.729 MB / 0.6677 GB, free: 6.48 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.6229, allocations: 12 kB / 0.6678 GB, free: 6.469 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.6229, allocations: 7.953 kB / 0.6678 GB, free: 6.461 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.6229, allocations: 3.984 kB / 0.6678 GB, free: 6.457 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003415/0.6263, allocations: 2.09 MB / 0.6698 GB, free: 4.289 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.6263, allocations: 0 / 0.6698 GB, free: 4.289 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003965/0.6268, allocations: 67.91 kB / 0.6699 GB, free: 4.223 MB / 490.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.003654/0.6304, allocations: 1.014 MB / 0.6709 GB, free: 3.199 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.858e-05/0.6305, allocations: 4 kB / 0.6709 GB, free: 3.195 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006743/0.6312, allocations: 120.8 kB / 0.671 GB, free: 3.074 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.533e-06/0.6312, allocations: 3.984 kB / 0.671 GB, free: 3.07 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003119/0.6343, allocations: 1.648 MB / 0.6726 GB, free: 1.395 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002648/0.6346, allocations: 152.1 kB / 0.6727 GB, free: 1.227 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.6347, allocations: 4 kB / 0.6727 GB, free: 1.223 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006789/0.6354, allocations: 63.94 kB / 0.6728 GB, free: 1.16 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002812/0.6357, allocations: 128.6 kB / 0.6729 GB, free: 1.035 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.445e-05/0.6358, allocations: 23.94 kB / 0.6729 GB, free: 1.012 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003858/0.6362, allocations: 314.9 kB / 0.6732 GB, free: 0.707 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6362, allocations: 3.938 kB / 0.6733 GB, free: 0.7031 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007636/0.6369, allocations: 215.7 kB / 0.6735 GB, free: 0.4922 MB / 490.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.3574/0.9944, allocations: 2.199 MB / 0.6756 GB, free: 115.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.9983, allocations: 1.419 MB / 0.677 GB, free: 114.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.9983, allocations: 0 / 0.677 GB, free: 114.9 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3197:9-3197: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1369:5-1369:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]