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.005512/0.005512, allocations: 172 kB / 15.11 MB, free: 5.969 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.318/1.318, allocations: 205.4 MB / 221.3 MB, free: 13.84 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.0009489/0.0009486, allocations: 98.83 kB / 269.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06439/0.06439, allocations: 12.2 MB / 330.1 MB, free: 10.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4001/0.4001, allocations: 78.52 MB / 459.6 MB, free: 3.988 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004791/0.0004792, allocations: 16.5 kB / 0.528 GB, free: 35.37 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1272, allocations: 69.24 MB / 0.5956 GB, free: 4.273 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1151/0.2424, allocations: 94.83 MB / 0.6882 GB, free: 5.316 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.2426, allocations: 79.95 kB / 0.6883 GB, free: 5.238 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3056/0.5483, allocations: 13.61 MB / 0.7016 GB, free: 96.96 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5483, allocations: 0 / 0.7016 GB, free: 96.96 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.5484, allocations: 16.84 kB / 0.7016 GB, free: 96.96 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.002713/0.5511, allocations: 1.23 MB / 0.7028 GB, free: 96.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.5511, allocations: 12.7 kB / 0.7028 GB, free: 96.32 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.5513, allocations: 97.81 kB / 0.7029 GB, free: 96.28 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001551/0.5528, allocations: 308 kB / 0.7032 GB, free: 96.23 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000537/0.5534, allocations: 444.8 kB / 0.7036 GB, free: 95.96 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.5536, allocations: 209.6 kB / 0.7038 GB, free: 95.8 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.886e-05/0.5537, allocations: 53.78 kB / 0.7039 GB, free: 95.8 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.5549, allocations: 0.7193 MB / 0.7046 GB, free: 95.74 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.555, allocations: 12.52 kB / 0.7046 GB, free: 95.73 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.534e-05/0.555, allocations: 19.75 kB / 0.7046 GB, free: 95.73 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.5551, allocations: 14.09 kB / 0.7046 GB, free: 95.73 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.5563, allocations: 0.7118 MB / 0.7053 GB, free: 95.72 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003551/0.5599, allocations: 2.175 MB / 0.7075 GB, free: 95.21 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00838/0.5683, allocations: 2.747 MB / 0.7101 GB, free: 94.52 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/0.5684, allocations: 8.031 kB / 0.7102 GB, free: 94.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001305/0.5697, allocations: 0.56 MB / 0.7107 GB, free: 94.38 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 3.607e-06/0.5698, allocations: 0 / 0.7107 GB, free: 94.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.01009/0.5798, allocations: 3.183 MB / 0.7138 GB, free: 92.86 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.5799, allocations: 63.16 kB / 0.7139 GB, free: 92.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007446/0.5807, allocations: 452.7 kB / 0.7143 GB, free: 92.53 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.642e-05/0.5808, allocations: 43.23 kB / 0.7143 GB, free: 92.49 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.581, allocations: 322.5 kB / 0.7146 GB, free: 92.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002379/0.5813, allocations: 243.6 kB / 0.7149 GB, free: 92 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.691e-05/0.5813, allocations: 14.75 kB / 0.7149 GB, free: 91.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.5815, allocations: 387.2 kB / 0.7153 GB, free: 91.61 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008473/0.5823, allocations: 444.2 kB / 0.7157 GB, free: 91.41 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009269/0.5832, allocations: 0.5332 MB / 0.7162 GB, free: 91.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008737/0.5841, allocations: 466.6 kB / 0.7167 GB, free: 90.89 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.5841, allocations: 1.375 kB / 0.7167 GB, free: 90.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006495/0.5906, allocations: 2.641 MB / 0.7192 GB, free: 89.73 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.5907, allocations: 7.812 kB / 0.7192 GB, free: 89.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.5907, allocations: 4.641 kB / 0.7192 GB, free: 89.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003593/0.5943, allocations: 1.184 MB / 0.7204 GB, free: 89.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005637/0.5949, allocations: 112 kB / 0.7205 GB, free: 89.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007753/0.6027, allocations: 4.68 MB / 0.7251 GB, free: 84.89 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009821/0.6037, allocations: 123.3 kB / 0.7252 GB, free: 84.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.565e-05/0.6037, allocations: 23.98 kB / 0.7252 GB, free: 84.74 MB / 474.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.0004425/0.6042, allocations: 193.8 kB / 0.7254 GB, free: 84.54 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.6043, allocations: 75.06 kB / 0.7255 GB, free: 84.47 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004917/0.6092, allocations: 2.182 MB / 0.7276 GB, free: 82.27 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.6092, allocations: 11.95 kB / 0.7276 GB, free: 82.26 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6093, allocations: 0 / 0.7276 GB, free: 82.26 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.6093, allocations: 7.969 kB / 0.7276 GB, free: 82.25 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003833/0.6131, allocations: 2.604 MB / 0.7302 GB, free: 79.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.6131, allocations: 0 / 0.7302 GB, free: 79.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004011/0.6135, allocations: 71.91 kB / 0.7302 GB, free: 79.5 MB / 474.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.003775/0.6173, allocations: 1.246 MB / 0.7315 GB, free: 78.24 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.859e-05/0.6174, allocations: 12 kB / 0.7315 GB, free: 78.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005189/0.6179, allocations: 132.7 kB / 0.7316 GB, free: 78.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6179, allocations: 0 / 0.7316 GB, free: 78.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003789/0.6217, allocations: 2.221 MB / 0.7338 GB, free: 75.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/0.6219, allocations: 148.2 kB / 0.7339 GB, free: 75.69 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.506e-05/0.622, allocations: 15.98 kB / 0.7339 GB, free: 75.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005992/0.6226, allocations: 83.89 kB / 0.734 GB, free: 75.59 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002561/0.6229, allocations: 120.4 kB / 0.7341 GB, free: 75.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.802e-05/0.623, allocations: 16 kB / 0.7341 GB, free: 75.46 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003399/0.6233, allocations: 354.8 kB / 0.7345 GB, free: 75.12 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6233, allocations: 0 / 0.7345 GB, free: 75.12 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.000702/0.624, allocations: 247.6 kB / 0.7347 GB, free: 74.88 MB / 474.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) * 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.003945/0.628, allocations: 2.79 MB / 0.7374 GB, free: 72.04 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003492/0.6315, allocations: 1.744 MB / 0.7391 GB, free: 70.24 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.6315, allocations: 0 / 0.7391 GB, free: 70.24 MB / 474.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: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]