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"}) [: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.002804/0.002804, allocations: 179.8 kB / 7.458 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.249/1.249, allocations: 221.4 MB / 229.3 MB, free: 3.078 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.0009672/0.0009673, allocations: 103.9 kB / 280.1 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.458/0.458, allocations: 78.05 MB / 408.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1552/0.6133, allocations: 75.49 MB / 484.4 MB, free: 4.352 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.9544, allocations: 69.35 MB / 0.5408 GB, free: 21.32 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/1.08, allocations: 92.55 MB / 0.6312 GB, free: 12.17 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/1.081, allocations: 79.95 kB / 0.6313 GB, free: 12.09 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.04202/1.123, allocations: 14.76 MB / 0.6457 GB, free: 13.17 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/1.123, allocations: 8 kB / 0.6457 GB, free: 13.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/1.125, allocations: 326.6 kB / 0.646 GB, free: 12.84 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000871/1.126, allocations: 434.8 kB / 0.6464 GB, free: 12.38 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002886/1.126, allocations: 189.8 kB / 0.6466 GB, free: 12.16 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/1.126, allocations: 32 kB / 0.6466 GB, free: 12.13 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001263/1.127, allocations: 0.5376 MB / 0.6471 GB, free: 11.59 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/1.129, allocations: 0.5153 MB / 0.6476 GB, free: 11.07 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/1.129, allocations: 0 / 0.6476 GB, free: 11.07 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.219e-05/1.129, allocations: 0 / 0.6476 GB, free: 11.07 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.649e-05/1.129, allocations: 19.98 kB / 0.6477 GB, free: 11.05 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004602/1.133, allocations: 2.246 MB / 0.6499 GB, free: 8.707 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/1.135, allocations: 0.646 MB / 0.6505 GB, free: 8.051 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000585/1.135, allocations: 354.8 kB / 0.6508 GB, free: 7.703 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.394e-05/1.135, allocations: 20.56 kB / 0.6508 GB, free: 7.684 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006917/1.136, allocations: 415 kB / 0.6512 GB, free: 7.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=73): time 2.905e-06/1.136, allocations: 0 / 0.6512 GB, free: 7.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=73): time 0.004648/1.141, allocations: 1.556 MB / 0.6528 GB, free: 5.684 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/1.141, allocations: 64.06 kB / 0.6528 GB, free: 5.609 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006282/1.141, allocations: 410.5 kB / 0.6532 GB, free: 5.199 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/1.142, allocations: 29.7 kB / 0.6532 GB, free: 5.164 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/1.142, allocations: 236.6 kB / 0.6535 GB, free: 4.93 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003035/1.142, allocations: 240.4 kB / 0.6537 GB, free: 4.691 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/1.142, allocations: 0 / 0.6537 GB, free: 4.691 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001818/1.142, allocations: 382.8 kB / 0.6541 GB, free: 4.309 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005447/1.143, allocations: 297.6 kB / 0.6543 GB, free: 4.016 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005488/1.143, allocations: 398.7 kB / 0.6547 GB, free: 3.602 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005606/1.144, allocations: 326 kB / 0.655 GB, free: 3.281 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/1.144, allocations: 0 / 0.655 GB, free: 3.281 MB / 474.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007248/1.151, allocations: 2.311 MB / 0.6573 GB, free: 0.9531 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/1.151, allocations: 4 kB / 0.6573 GB, free: 0.9492 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/1.151, allocations: 7.938 kB / 0.6573 GB, free: 0.9414 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004089/1.155, allocations: 0.9898 MB / 0.6583 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007592/1.156, allocations: 111.8 kB / 0.6584 GB, free: 15.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007738/1.164, allocations: 3.368 MB / 0.6617 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/1.165, allocations: 111.3 kB / 0.6618 GB, free: 12.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/1.165, allocations: 24 kB / 0.6618 GB, free: 12.22 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.000355/1.166, allocations: 122.9 kB / 0.6619 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002538/1.166, allocations: 79.06 kB / 0.662 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006831/1.173, allocations: 2.118 MB / 0.6641 GB, free: 9.879 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/1.173, allocations: 8 kB / 0.6641 GB, free: 9.871 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/1.173, allocations: 3.938 kB / 0.6641 GB, free: 9.867 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/1.173, allocations: 3.984 kB / 0.6641 GB, free: 9.863 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004493/1.177, allocations: 2.026 MB / 0.6661 GB, free: 7.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/1.177, allocations: 0 / 0.6661 GB, free: 7.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004919/1.178, allocations: 75.91 kB / 0.6661 GB, free: 7.695 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.004211/1.182, allocations: 1.058 MB / 0.6672 GB, free: 6.629 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.507e-05/1.182, allocations: 8 kB / 0.6672 GB, free: 6.621 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000735/1.183, allocations: 148.7 kB / 0.6673 GB, free: 6.473 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/1.183, allocations: 0 / 0.6673 GB, free: 6.473 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003536/1.187, allocations: 1.683 MB / 0.669 GB, free: 4.766 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004283/1.191, allocations: 2.535 MB / 0.6714 GB, free: 2.203 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/1.191, allocations: 148.1 kB / 0.6716 GB, free: 2.039 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/1.191, allocations: 7.984 kB / 0.6716 GB, free: 2.031 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007637/1.192, allocations: 83.84 kB / 0.6717 GB, free: 1.949 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002489/1.192, allocations: 92.48 kB / 0.6717 GB, free: 1.859 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.72e-05/1.192, allocations: 20 kB / 0.6718 GB, free: 1.84 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0004308/1.193, allocations: 318.9 kB / 0.6721 GB, free: 1.531 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001516/1.194, allocations: 211.7 kB / 0.6723 GB, free: 1.324 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.0003023/1.195, allocations: 126.9 kB / 0.6724 GB, free: 1.191 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.1991/1.394, allocations: 1.425 MB / 0.6738 GB, free: 152 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/1.394, allocations: 3.75 kB / 0.6738 GB, free: 152 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/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