Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_release_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_release_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.005395/0.005395, allocations: 169.2 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 223.2 MB / 239 MB, free: 1.812 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.0008524/0.0008522, allocations: 100.1 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4358/0.4358, allocations: 78.59 MB / 419.9 MB, free: 44.16 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003885/0.0003886, allocations: 15.98 kB / 499.9 MB, free: 2.859 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3304, allocations: 69.34 MB / 0.5559 GB, free: 38.66 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.4349, allocations: 93.35 MB / 0.647 GB, free: 13.16 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.4352, allocations: 79.95 kB / 0.6471 GB, free: 13.09 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03524/0.4704, allocations: 14.09 MB / 0.6609 GB, free: 14.92 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4705, allocations: 0 / 0.6609 GB, free: 14.92 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.4705, allocations: 13.53 kB / 0.6609 GB, free: 14.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.002815/0.4733, allocations: 1.228 MB / 0.6621 GB, free: 13.63 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.4734, allocations: 12.03 kB / 0.6621 GB, free: 13.62 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00012/0.4735, allocations: 98.5 kB / 0.6622 GB, free: 13.52 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001599/0.4751, allocations: 306.6 kB / 0.6625 GB, free: 13.21 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005402/0.4756, allocations: 438.8 kB / 0.6629 GB, free: 12.74 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002158/0.4759, allocations: 210.1 kB / 0.6631 GB, free: 12.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.306e-05/0.476, allocations: 55.95 kB / 0.6631 GB, free: 12.45 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00136/0.4773, allocations: 0.7248 MB / 0.6638 GB, free: 11.72 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.4774, allocations: 4 kB / 0.6638 GB, free: 11.72 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.688e-05/0.4774, allocations: 24 kB / 0.6639 GB, free: 11.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.4774, allocations: 23.88 kB / 0.6639 GB, free: 11.67 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.4788, allocations: 0.7118 MB / 0.6646 GB, free: 10.96 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00355/0.4824, allocations: 2.168 MB / 0.6667 GB, free: 8.711 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008432/0.4908, allocations: 2.747 MB / 0.6694 GB, free: 5.848 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.502e-05/0.4909, allocations: 12.61 kB / 0.6694 GB, free: 5.836 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001144/0.4921, allocations: 0.5549 MB / 0.6699 GB, free: 5.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 3.066e-06/0.4921, allocations: 4 kB / 0.6699 GB, free: 5.266 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.009077/0.5012, allocations: 3.187 MB / 0.6731 GB, free: 2.004 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.5012, allocations: 64.06 kB / 0.6731 GB, free: 1.93 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004994/0.5017, allocations: 450.4 kB / 0.6735 GB, free: 1.484 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.406e-05/0.5018, allocations: 41.7 kB / 0.6736 GB, free: 1.438 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/0.502, allocations: 320.6 kB / 0.6739 GB, free: 1.117 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.5023, allocations: 248.4 kB / 0.6741 GB, free: 0.8711 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-05/0.5023, allocations: 19.94 kB / 0.6741 GB, free: 0.8516 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.5025, allocations: 382.8 kB / 0.6745 GB, free: 480 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008858/0.5034, allocations: 445.8 kB / 0.6749 GB, free: 36 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009319/0.5043, allocations: 0.5259 MB / 0.6755 GB, free: 15.47 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008921/0.5052, allocations: 468.9 kB / 0.6759 GB, free: 15.02 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.5052, allocations: 0 / 0.6759 GB, free: 15.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00733/0.5125, allocations: 2.642 MB / 0.6785 GB, free: 12.36 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.5126, allocations: 4.938 kB / 0.6785 GB, free: 12.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.5126, allocations: 4 kB / 0.6785 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004065/0.5167, allocations: 1.189 MB / 0.6796 GB, free: 11.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004842/0.5172, allocations: 107.8 kB / 0.6798 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009047/0.5262, allocations: 4.673 MB / 0.6843 GB, free: 6.254 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007597/0.527, allocations: 119.3 kB / 0.6844 GB, free: 6.137 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.08e-05/0.5271, allocations: 31.92 kB / 0.6845 GB, free: 6.105 MB / 490.7 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xp: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 ($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 () * 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 (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.0003587/0.5275, allocations: 199.5 kB / 0.6847 GB, free: 5.902 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.5276, allocations: 79.06 kB / 0.6847 GB, free: 5.824 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0057/0.5333, allocations: 2.178 MB / 0.6869 GB, free: 3.625 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.5333, allocations: 8 kB / 0.6869 GB, free: 3.617 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.5333, allocations: 0 / 0.6869 GB, free: 3.617 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.5333, allocations: 7.938 kB / 0.6869 GB, free: 3.609 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004618/0.5379, allocations: 2.597 MB / 0.6894 GB, free: 0.9219 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.538, allocations: 0 / 0.6894 GB, free: 0.9219 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.5384, allocations: 71.91 kB / 0.6895 GB, free: 0.8516 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.004266/0.5426, allocations: 1.248 MB / 0.6907 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.341e-05/0.5427, allocations: 16 kB / 0.6907 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005805/0.5433, allocations: 132.7 kB / 0.6908 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.5433, allocations: 4 kB / 0.6908 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00444/0.5478, allocations: 2.214 MB / 0.693 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.5479, allocations: 152.1 kB / 0.6931 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.672e-05/0.548, allocations: 19.98 kB / 0.6932 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006392/0.5487, allocations: 75.94 kB / 0.6932 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/0.549, allocations: 124.3 kB / 0.6934 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.425e-05/0.549, allocations: 24 kB / 0.6934 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003688/0.5494, allocations: 346.8 kB / 0.6937 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5494, allocations: 3.938 kB / 0.6937 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0007177/0.5502, allocations: 247.7 kB / 0.6939 GB, free: 12.22 MB / 0.4948 GB 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 (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.004862/0.555, allocations: 2.782 MB / 0.6967 GB, free: 9.398 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004151/0.5592, allocations: 1.744 MB / 0.6984 GB, free: 7.598 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5592, allocations: 4 kB / 0.6984 GB, free: 7.594 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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:3332:9-3332: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/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1480:5-1480:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]