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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002024/0.002024, allocations: 174.1 kB / 7.455 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.073/1.073, allocations: 221.4 MB / 229.3 MB, free: 3.059 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.0008536/0.0008536, allocations: 92 kB / 280.1 MB, free: 1.293 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3791/0.3791, allocations: 78.1 MB / 409 MB, free: 15.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1248/0.504, allocations: 75.5 MB / 484.5 MB, free: 4.434 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.7568, allocations: 69.33 MB / 0.5408 GB, free: 21.41 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09626/0.8531, allocations: 92.54 MB / 0.6312 GB, free: 12.33 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.8533, allocations: 75.95 kB / 0.6313 GB, free: 12.25 MB / 458.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.03585/0.8892, allocations: 14.77 MB / 0.6457 GB, free: 13.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.8892, allocations: 12 kB / 0.6457 GB, free: 13.31 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001722/0.891, allocations: 322.5 kB / 0.646 GB, free: 13 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006284/0.8916, allocations: 438.8 kB / 0.6464 GB, free: 12.53 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002096/0.8918, allocations: 193.8 kB / 0.6466 GB, free: 12.31 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.831e-05/0.8919, allocations: 32 kB / 0.6467 GB, free: 12.28 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001004/0.8929, allocations: 0.5298 MB / 0.6472 GB, free: 11.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008996/0.8939, allocations: 0.5115 MB / 0.6477 GB, free: 11.23 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.8939, allocations: 4 kB / 0.6477 GB, free: 11.23 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.901e-05/0.8939, allocations: 7.969 kB / 0.6477 GB, free: 11.22 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.894, allocations: 12 kB / 0.6477 GB, free: 11.21 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003633/0.8976, allocations: 2.242 MB / 0.6499 GB, free: 8.863 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.8987, allocations: 0.6431 MB / 0.6505 GB, free: 8.211 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005303/0.8993, allocations: 358.8 kB / 0.6509 GB, free: 7.859 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.596e-05/0.8994, allocations: 12.59 kB / 0.6509 GB, free: 7.848 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006103/0.9, allocations: 415.1 kB / 0.6513 GB, free: 7.434 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 2.645e-06/0.9, allocations: 0 / 0.6513 GB, free: 7.434 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.00416/0.9041, allocations: 1.564 MB / 0.6528 GB, free: 5.848 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.9042, allocations: 60.06 kB / 0.6528 GB, free: 5.777 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004148/0.9046, allocations: 414.5 kB / 0.6532 GB, free: 5.363 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.9047, allocations: 37.64 kB / 0.6533 GB, free: 5.32 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.9048, allocations: 232.6 kB / 0.6535 GB, free: 5.09 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.905, allocations: 240.5 kB / 0.6537 GB, free: 4.852 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.35e-05/0.9051, allocations: 0 / 0.6537 GB, free: 4.852 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.9052, allocations: 382.8 kB / 0.6541 GB, free: 4.469 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004799/0.9057, allocations: 301.5 kB / 0.6544 GB, free: 4.172 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00054/0.9062, allocations: 390.7 kB / 0.6548 GB, free: 3.766 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004997/0.9067, allocations: 330 kB / 0.6551 GB, free: 3.441 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.9067, allocations: 3.984 kB / 0.6551 GB, free: 3.438 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006585/0.9133, allocations: 2.303 MB / 0.6573 GB, free: 1.117 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.9134, allocations: 8 kB / 0.6573 GB, free: 1.109 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.9134, allocations: 0 / 0.6573 GB, free: 1.109 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003613/0.917, allocations: 0.9919 MB / 0.6583 GB, free: 112 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006286/0.9176, allocations: 111.8 kB / 0.6584 GB, free: 0 / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006494/0.9241, allocations: 3.369 MB / 0.6617 GB, free: 12.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007992/0.925, allocations: 115.3 kB / 0.6618 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.96e-05/0.9251, allocations: 20 kB / 0.6618 GB, free: 12.38 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.0002175/0.9253, allocations: 126.9 kB / 0.6619 GB, free: 12.25 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.9254, allocations: 75.06 kB / 0.662 GB, free: 12.17 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006049/0.9315, allocations: 2.106 MB / 0.6641 GB, free: 10.05 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.9315, allocations: 8 kB / 0.6641 GB, free: 10.04 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.9315, allocations: 3.938 kB / 0.6641 GB, free: 10.04 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.9315, allocations: 3.984 kB / 0.6641 GB, free: 10.03 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003314/0.9349, allocations: 2.034 MB / 0.6661 GB, free: 7.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.9349, allocations: 0 / 0.6661 GB, free: 7.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004269/0.9353, allocations: 79.89 kB / 0.6662 GB, free: 7.852 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.003767/0.9391, allocations: 1.058 MB / 0.6672 GB, free: 6.785 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-05/0.9392, allocations: 7.984 kB / 0.6672 GB, free: 6.777 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006327/0.9398, allocations: 148.8 kB / 0.6673 GB, free: 6.629 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.9398, allocations: 0 / 0.6673 GB, free: 6.629 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002926/0.9427, allocations: 1.687 MB / 0.669 GB, free: 4.918 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003613/0.9464, allocations: 2.527 MB / 0.6715 GB, free: 2.363 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.9465, allocations: 152.1 kB / 0.6716 GB, free: 2.195 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.9467, allocations: 4 kB / 0.6716 GB, free: 2.191 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006733/0.9474, allocations: 75.84 kB / 0.6717 GB, free: 2.117 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002286/0.9476, allocations: 96.48 kB / 0.6718 GB, free: 2.023 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.093e-05/0.9477, allocations: 19.98 kB / 0.6718 GB, free: 2.004 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0002963/0.948, allocations: 318.9 kB / 0.6721 GB, free: 1.695 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00128/0.9493, allocations: 215.7 kB / 0.6723 GB, free: 1.484 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.0002127/0.9495, allocations: 131.1 kB / 0.6724 GB, free: 1.348 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.1546/1.104, allocations: 1.421 MB / 0.6738 GB, free: 152.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/1.104, allocations: 11.06 kB / 0.6738 GB, free: 152.6 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/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3599:9-3599:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{14:9}, {18:8}, {17:7}, {30:5}, {15:3}, {29:69}, {28:33}, {22:29}, {23:70}, {9:20}, {6:21}}, {5, 16, 31, 19, 25, 7, 8, 10, 11, 21, 20, 13, 12, 27, 26, 24:35, 53, 11, 10, 52, 46, 47, 30, 12, 45, 42, 44, 13, 40, 43, 41} Size: 16 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1356:5-1356:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] Error: Internal error SimCode: The model OpenIPSL.Tests.Branches.Generic.ULTC could not be translated to FMU