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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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 Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.Generic.ULTC,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_Generic_ULTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 175.1 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.312/1.312, allocations: 205.2 MB / 218.5 MB, free: 9.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008126/0.0008125, allocations: 85.06 kB / 266.6 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06432/0.06432, allocations: 12.21 MB / 326.9 MB, free: 12.88 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.272/0.272, allocations: 78.02 MB / 455.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 4.331e-05/4.349e-05, allocations: 6.875 kB / 0.5213 GB, free: 24.12 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 69.24 MB / 0.5889 GB, free: 2.945 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4219/0.5357, allocations: 94.73 MB / 0.6814 GB, free: 5.523 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.5359, allocations: 74.64 kB / 0.6815 GB, free: 5.484 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03175/0.5677, allocations: 13.57 MB / 0.6948 GB, free: 10.05 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.5677, allocations: 0 / 0.6948 GB, free: 10.05 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.284e-05/0.5678, allocations: 12 kB / 0.6948 GB, free: 10.04 MB / 442.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.002615/0.5704, allocations: 1.13 MB / 0.6959 GB, free: 8.934 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.5704, allocations: 15.98 kB / 0.6959 GB, free: 8.918 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001136/0.5705, allocations: 95.7 kB / 0.696 GB, free: 8.852 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.5721, allocations: 304.7 kB / 0.6963 GB, free: 8.574 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005531/0.5727, allocations: 450.4 kB / 0.6967 GB, free: 8.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002122/0.5729, allocations: 208.4 kB / 0.6969 GB, free: 7.949 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.446e-05/0.573, allocations: 48.75 kB / 0.697 GB, free: 7.918 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009598/0.574, allocations: 0.584 MB / 0.6975 GB, free: 7.539 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.574, allocations: 0 / 0.6975 GB, free: 7.539 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.16e-05/0.5741, allocations: 26.06 kB / 0.6976 GB, free: 7.531 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.5741, allocations: 12 kB / 0.6976 GB, free: 7.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008752/0.575, allocations: 0.5682 MB / 0.6981 GB, free: 7.156 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003237/0.5782, allocations: 2.181 MB / 0.7003 GB, free: 5.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007759/0.586, allocations: 2.575 MB / 0.7028 GB, free: 3.191 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007523/0.5868, allocations: 392.8 kB / 0.7031 GB, free: 2.973 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-05/0.5869, allocations: 12.77 kB / 0.7032 GB, free: 2.957 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007627/0.5877, allocations: 435.2 kB / 0.7036 GB, free: 2.668 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 3.998e-06/0.5877, allocations: 3.938 kB / 0.7036 GB, free: 2.664 MB / 442.7 MB Notification: Performance of matching and sorting (n=73): time 0.004201/0.5919, allocations: 1.546 MB / 0.7051 GB, free: 1.441 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.5919, allocations: 64.19 kB / 0.7051 GB, free: 1.367 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005714/0.5925, allocations: 450.6 kB / 0.7056 GB, free: 1.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.955e-05/0.5926, allocations: 40.14 kB / 0.7056 GB, free: 0.9844 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.5928, allocations: 321.2 kB / 0.7059 GB, free: 0.7734 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000203/0.593, allocations: 253.7 kB / 0.7062 GB, free: 0.5547 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-05/0.5931, allocations: 10.56 kB / 0.7062 GB, free: 0.5547 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.5932, allocations: 391.2 kB / 0.7065 GB, free: 200 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004535/0.5937, allocations: 303.4 kB / 0.7068 GB, free: 32 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005247/0.5942, allocations: 406.7 kB / 0.7072 GB, free: 15.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004949/0.5947, allocations: 337.4 kB / 0.7075 GB, free: 15.56 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5947, allocations: 0 / 0.7075 GB, free: 15.56 MB / 458.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006266/0.601, allocations: 2.247 MB / 0.7097 GB, free: 13.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.6011, allocations: 7.953 kB / 0.7097 GB, free: 13.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.6011, allocations: 4 kB / 0.7097 GB, free: 13.67 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003436/0.6045, allocations: 0.9606 MB / 0.7107 GB, free: 12.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005774/0.6051, allocations: 110.7 kB / 0.7108 GB, free: 12.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006617/0.6117, allocations: 3.725 MB / 0.7144 GB, free: 9.867 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008738/0.6126, allocations: 114.7 kB / 0.7145 GB, free: 9.766 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.006e-05/0.6127, allocations: 23.44 kB / 0.7146 GB, free: 9.75 MB / 458.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.0002144/0.6129, allocations: 150.5 kB / 0.7147 GB, free: 9.617 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.613, allocations: 82.95 kB / 0.7148 GB, free: 9.535 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004427/0.6175, allocations: 1.805 MB / 0.7165 GB, free: 8.125 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.6175, allocations: 8 kB / 0.7166 GB, free: 8.117 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.6175, allocations: 4 kB / 0.7166 GB, free: 8.113 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.6175, allocations: 7.984 kB / 0.7166 GB, free: 8.105 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003364/0.6209, allocations: 2.218 MB / 0.7187 GB, free: 6.445 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.6209, allocations: 0 / 0.7187 GB, free: 6.445 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003749/0.6213, allocations: 71.53 kB / 0.7188 GB, free: 6.379 MB / 458.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.003487/0.6248, allocations: 1.021 MB / 0.7198 GB, free: 5.492 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.835e-05/0.6249, allocations: 14.38 kB / 0.7198 GB, free: 5.488 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005661/0.6254, allocations: 132.3 kB / 0.7199 GB, free: 5.359 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.6254, allocations: 3.953 kB / 0.7199 GB, free: 5.355 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002741/0.6282, allocations: 1.706 MB / 0.7216 GB, free: 4.215 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.6284, allocations: 162.5 kB / 0.7218 GB, free: 4.043 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.556e-05/0.6285, allocations: 17 kB / 0.7218 GB, free: 4.035 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006062/0.6291, allocations: 76.88 kB / 0.7218 GB, free: 3.969 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002665/0.6294, allocations: 123 kB / 0.722 GB, free: 3.867 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.343e-05/0.6294, allocations: 21.94 kB / 0.722 GB, free: 3.852 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003372/0.6298, allocations: 344.6 kB / 0.7223 GB, free: 3.59 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6298, allocations: 0 / 0.7223 GB, free: 3.59 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0006586/0.6304, allocations: 247.8 kB / 0.7226 GB, free: 3.371 MB / 458.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.003112/0.6336, allocations: 2.28 MB / 0.7248 GB, free: 1.652 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003194/0.6368, allocations: 1.458 MB / 0.7262 GB, free: 484 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.6368, allocations: 0 / 0.7262 GB, free: 484 kB / 458.7 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: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]