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.001106/0.001106, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.506/1.506, allocations: 221.4 MB / 234.6 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009268/0.0009267, allocations: 93.05 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4637/0.4637, allocations: 78.08 MB / 414.6 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.687e-05/2.697e-05, allocations: 0 / 491.9 MB, free: 13.95 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3454, allocations: 69.35 MB / 0.5481 GB, free: 20.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1175/0.4629, allocations: 93.28 MB / 0.6392 GB, free: 7.234 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.4632, allocations: 71.97 kB / 0.6393 GB, free: 7.164 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03669/0.4999, allocations: 14.04 MB / 0.653 GB, free: 9.008 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5, allocations: 0 / 0.653 GB, free: 9.008 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.866e-05/0.5, allocations: 16.16 kB / 0.653 GB, free: 8.992 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.002779/0.5028, allocations: 1.131 MB / 0.6541 GB, free: 7.809 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.5029, allocations: 11.97 kB / 0.6541 GB, free: 7.797 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.503, allocations: 102.5 kB / 0.6542 GB, free: 7.688 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001568/0.5046, allocations: 298.7 kB / 0.6545 GB, free: 7.395 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006203/0.5052, allocations: 446.7 kB / 0.6549 GB, free: 6.914 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.5054, allocations: 205.8 kB / 0.6551 GB, free: 6.684 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.5056, allocations: 56.33 kB / 0.6552 GB, free: 6.629 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.5066, allocations: 0.5883 MB / 0.6557 GB, free: 6.035 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.5067, allocations: 0 / 0.6557 GB, free: 6.035 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.478e-05/0.5067, allocations: 20 kB / 0.6557 GB, free: 6.016 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.5067, allocations: 20 kB / 0.6558 GB, free: 5.996 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009541/0.5077, allocations: 0.5636 MB / 0.6563 GB, free: 5.43 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003641/0.5114, allocations: 2.18 MB / 0.6584 GB, free: 3.176 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007726/0.5191, allocations: 2.568 MB / 0.661 GB, free: 0.4922 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006271/0.5198, allocations: 387.6 kB / 0.6613 GB, free: 108 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.793e-05/0.5199, allocations: 20.7 kB / 0.6613 GB, free: 88 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007417/0.5206, allocations: 438.1 kB / 0.6618 GB, free: 15.64 MB / 490.7 MB Notification: Performance of pre-optimization done (n=73): time 3.246e-06/0.5206, allocations: 0 / 0.6618 GB, free: 15.64 MB / 490.7 MB Notification: Performance of matching and sorting (n=73): time 0.004227/0.5249, allocations: 1.545 MB / 0.6633 GB, free: 14.09 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.5249, allocations: 76.06 kB / 0.6633 GB, free: 14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006899/0.5256, allocations: 433.2 kB / 0.6638 GB, free: 13.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.504e-05/0.5257, allocations: 45.69 kB / 0.6638 GB, free: 13.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.526, allocations: 324.6 kB / 0.6641 GB, free: 13.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002544/0.5263, allocations: 252.3 kB / 0.6643 GB, free: 12.95 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.424e-05/0.5263, allocations: 12 kB / 0.6644 GB, free: 12.94 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.5265, allocations: 382.8 kB / 0.6647 GB, free: 12.55 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005165/0.527, allocations: 309.6 kB / 0.665 GB, free: 12.25 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.5276, allocations: 400.3 kB / 0.6654 GB, free: 11.83 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000542/0.5281, allocations: 339.5 kB / 0.6657 GB, free: 11.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5282, allocations: 4 kB / 0.6657 GB, free: 11.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006402/0.5346, allocations: 2.246 MB / 0.6679 GB, free: 9.234 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.5346, allocations: 4 kB / 0.6679 GB, free: 9.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.5346, allocations: 4 kB / 0.6679 GB, free: 9.227 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003482/0.5381, allocations: 0.9567 MB / 0.6689 GB, free: 8.262 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005201/0.5387, allocations: 111.8 kB / 0.669 GB, free: 8.152 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006652/0.5453, allocations: 3.72 MB / 0.6726 GB, free: 4.305 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008698/0.5462, allocations: 123.3 kB / 0.6727 GB, free: 4.184 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.047e-05/0.5463, allocations: 23.98 kB / 0.6727 GB, free: 4.16 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.0002192/0.5465, allocations: 152.9 kB / 0.6729 GB, free: 4.004 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.5466, allocations: 75.28 kB / 0.673 GB, free: 3.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004574/0.5512, allocations: 1.806 MB / 0.6747 GB, free: 2.105 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.5512, allocations: 11.94 kB / 0.6747 GB, free: 2.094 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.5512, allocations: 0 / 0.6747 GB, free: 2.094 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.5513, allocations: 11.94 kB / 0.6747 GB, free: 2.082 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3203/0.8716, allocations: 2.216 MB / 0.6769 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/0.8716, allocations: 1.516 kB / 0.6769 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005661/0.8722, allocations: 71.81 kB / 0.677 GB, free: 113.7 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.00438/0.8766, allocations: 1.022 MB / 0.678 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001694/0.8768, allocations: 13.19 kB / 0.678 GB, free: 113.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006474/0.8774, allocations: 126.1 kB / 0.6781 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.8775, allocations: 2.172 kB / 0.6781 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003871/0.8813, allocations: 1.709 MB / 0.6798 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003166/0.8817, allocations: 153.3 kB / 0.6799 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.8818, allocations: 16.08 kB / 0.6799 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007074/0.8825, allocations: 83.72 kB / 0.68 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/0.8829, allocations: 121.8 kB / 0.6801 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.271e-05/0.8829, allocations: 21.61 kB / 0.6802 GB, free: 113.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000484/0.8834, allocations: 344.9 kB / 0.6805 GB, free: 113.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.62e-07/0.8834, allocations: 0 / 0.6805 GB, free: 113.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008858/0.8843, allocations: 247.4 kB / 0.6807 GB, free: 113.3 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.004127/0.8885, allocations: 2.289 MB / 0.683 GB, free: 112.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004208/0.8927, allocations: 1.463 MB / 0.6844 GB, free: 112.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.8928, allocations: 0 / 0.6844 GB, free: 112.2 MB / 490.7 MB [/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:3299:9-3299: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:1476:5-1476:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:744:5-744:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]