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.001436/0.001436, 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.265/1.265, allocations: 221.4 MB / 234.6 MB, free: 14.46 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.0009615/0.0009616, allocations: 84.88 kB / 285.6 MB, free: 13.01 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4568/0.4568, allocations: 78.03 MB / 414.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.428e-05/5.446e-05, allocations: 4 kB / 491.9 MB, free: 13.83 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3758, allocations: 69.35 MB / 0.5481 GB, free: 20.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.4908, allocations: 93.28 MB / 0.6391 GB, free: 7.16 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001758/0.491, allocations: 79.95 kB / 0.6392 GB, free: 7.082 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0353/0.5263, allocations: 14.02 MB / 0.6529 GB, free: 8.941 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5264, allocations: 4 kB / 0.6529 GB, free: 8.938 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.632e-05/0.5264, allocations: 20.16 kB / 0.6529 GB, free: 8.918 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.002708/0.5291, allocations: 1.139 MB / 0.6541 GB, free: 7.727 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.5291, allocations: 11.97 kB / 0.6541 GB, free: 7.715 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.5293, allocations: 98.45 kB / 0.6542 GB, free: 7.609 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/0.5309, allocations: 306.7 kB / 0.6545 GB, free: 7.309 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005822/0.5315, allocations: 438.7 kB / 0.6549 GB, free: 6.836 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/0.5317, allocations: 209.7 kB / 0.6551 GB, free: 6.602 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.535e-05/0.5318, allocations: 52.34 kB / 0.6551 GB, free: 6.551 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.5328, allocations: 0.5961 MB / 0.6557 GB, free: 5.949 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.5329, allocations: 0 / 0.6557 GB, free: 5.949 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.6e-05/0.5329, allocations: 20 kB / 0.6557 GB, free: 5.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.533, allocations: 12 kB / 0.6557 GB, free: 5.918 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009721/0.5339, allocations: 0.5675 MB / 0.6563 GB, free: 5.348 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003671/0.5376, allocations: 2.168 MB / 0.6584 GB, free: 3.105 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007945/0.5456, allocations: 2.573 MB / 0.6609 GB, free: 424 kB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007791/0.5464, allocations: 395.6 kB / 0.6613 GB, free: 20 kB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.268e-05/0.5465, allocations: 12.73 kB / 0.6613 GB, free: 8 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008838/0.5474, allocations: 434.1 kB / 0.6617 GB, free: 15.57 MB / 490.7 MB Notification: Performance of pre-optimization done (n=73): time 3.557e-06/0.5474, allocations: 4 kB / 0.6617 GB, free: 15.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=73): time 0.004404/0.5518, allocations: 1.552 MB / 0.6632 GB, free: 14 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.5519, allocations: 60.19 kB / 0.6633 GB, free: 13.93 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006957/0.5526, allocations: 437.2 kB / 0.6637 GB, free: 13.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.281e-05/0.5527, allocations: 41.7 kB / 0.6638 GB, free: 13.45 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.553, allocations: 324.6 kB / 0.6641 GB, free: 13.13 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002739/0.5532, allocations: 252.3 kB / 0.6643 GB, free: 12.88 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/0.5533, allocations: 16 kB / 0.6643 GB, free: 12.86 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.5535, allocations: 386.8 kB / 0.6647 GB, free: 12.48 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005487/0.554, allocations: 301.6 kB / 0.665 GB, free: 12.18 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006468/0.5547, allocations: 404.3 kB / 0.6654 GB, free: 11.76 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000589/0.5553, allocations: 335.6 kB / 0.6657 GB, free: 11.43 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5553, allocations: 0 / 0.6657 GB, free: 11.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006621/0.5619, allocations: 2.25 MB / 0.6679 GB, free: 9.164 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.562, allocations: 11.98 kB / 0.6679 GB, free: 9.152 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.562, allocations: 0 / 0.6679 GB, free: 9.152 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003657/0.5657, allocations: 0.9552 MB / 0.6688 GB, free: 8.188 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000572/0.5663, allocations: 107.8 kB / 0.6689 GB, free: 8.082 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007614/0.5739, allocations: 3.733 MB / 0.6726 GB, free: 4.227 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.5752, allocations: 115.4 kB / 0.6727 GB, free: 4.113 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001927/0.5754, allocations: 24 kB / 0.6727 GB, free: 4.09 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.0003872/0.5758, allocations: 164.8 kB / 0.6729 GB, free: 3.922 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003003/0.5761, allocations: 75.09 kB / 0.6729 GB, free: 3.848 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005209/0.5813, allocations: 1.81 MB / 0.6747 GB, free: 2.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.5814, allocations: 8 kB / 0.6747 GB, free: 2.012 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.5814, allocations: 0 / 0.6747 GB, free: 2.012 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/0.5814, allocations: 11.88 kB / 0.6747 GB, free: 2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2877/0.8691, allocations: 2.207 MB / 0.6769 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.8691, allocations: 0.6562 kB / 0.6769 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004975/0.8696, allocations: 75.83 kB / 0.6769 GB, free: 113.5 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.004089/0.8738, allocations: 1.019 MB / 0.6779 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001476/0.8739, allocations: 15.44 kB / 0.678 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006382/0.8746, allocations: 123.2 kB / 0.6781 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.8746, allocations: 1.531 kB / 0.6781 GB, free: 113.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00347/0.8781, allocations: 1.71 MB / 0.6797 GB, free: 113.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002904/0.8784, allocations: 154.2 kB / 0.6799 GB, free: 113.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.8785, allocations: 17.09 kB / 0.6799 GB, free: 113.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007337/0.8793, allocations: 83.05 kB / 0.68 GB, free: 113.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003483/0.8796, allocations: 122.8 kB / 0.6801 GB, free: 113.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.005e-05/0.8797, allocations: 18.42 kB / 0.6801 GB, free: 113.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004456/0.8801, allocations: 343 kB / 0.6805 GB, free: 113.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8801, allocations: 2.344 kB / 0.6805 GB, free: 113.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007756/0.8809, allocations: 246.2 kB / 0.6807 GB, free: 113.1 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.003365/0.8843, allocations: 2.292 MB / 0.6829 GB, free: 112.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003445/0.8878, allocations: 1.466 MB / 0.6844 GB, free: 112.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.8878, allocations: 0 / 0.6844 GB, free: 112.1 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/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]