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"}) [: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 3.2.3+maint.om/package.mo): time 0.002891/0.002891, allocations: 178.3 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.249/1.249, allocations: 205.2 MB / 213.1 MB, free: 13.85 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.0009037/0.0009038, allocations: 96.39 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.07865/0.07865, allocations: 12.2 MB / 321.2 MB, free: 1.293 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2843/0.2843, allocations: 78.06 MB / 449.9 MB, free: 3.664 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2965/0.5808, allocations: 76.09 MB / 0.5137 GB, free: 30.33 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.7193, allocations: 69.23 MB / 0.5813 GB, free: 9.203 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3846/1.104, allocations: 93.98 MB / 0.6731 GB, free: 10.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/1.104, allocations: 82.41 kB / 0.6731 GB, free: 10.62 MB / 426.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.03791/1.142, allocations: 14.29 MB / 0.6871 GB, free: 2.551 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/1.142, allocations: 11.94 kB / 0.6871 GB, free: 2.539 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001905/1.144, allocations: 327.4 kB / 0.6874 GB, free: 2.242 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008315/1.145, allocations: 444.5 kB / 0.6878 GB, free: 1.855 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/1.145, allocations: 193.8 kB / 0.688 GB, free: 1.633 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/1.145, allocations: 31.91 kB / 0.6881 GB, free: 1.602 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001069/1.147, allocations: 0.54 MB / 0.6886 GB, free: 1.273 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009297/1.147, allocations: 0.5087 MB / 0.6891 GB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/1.148, allocations: 0 / 0.6891 GB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.289e-05/1.148, allocations: 4 kB / 0.6891 GB, free: 0.9141 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/1.148, allocations: 12.44 kB / 0.6891 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003995/1.152, allocations: 2.246 MB / 0.6913 GB, free: 15.21 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/1.153, allocations: 0.6493 MB / 0.6919 GB, free: 14.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006026/1.153, allocations: 353.1 kB / 0.6923 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.204e-05/1.154, allocations: 15.69 kB / 0.6923 GB, free: 14.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006616/1.154, allocations: 414.5 kB / 0.6927 GB, free: 14.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 3.908e-06/1.154, allocations: 0 / 0.6927 GB, free: 14.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=73): time 0.004377/1.159, allocations: 1.56 MB / 0.6942 GB, free: 13.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/1.159, allocations: 64.06 kB / 0.6943 GB, free: 13 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005912/1.159, allocations: 410.9 kB / 0.6946 GB, free: 12.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.646e-05/1.159, allocations: 29.7 kB / 0.6947 GB, free: 12.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/1.16, allocations: 238.2 kB / 0.6949 GB, free: 12.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000262/1.16, allocations: 236.3 kB / 0.6951 GB, free: 12.24 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/1.16, allocations: 3.938 kB / 0.6951 GB, free: 12.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002013/1.16, allocations: 385.3 kB / 0.6955 GB, free: 11.88 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005185/1.161, allocations: 300.4 kB / 0.6958 GB, free: 11.73 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005593/1.161, allocations: 389 kB / 0.6962 GB, free: 11.47 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000546/1.162, allocations: 328.9 kB / 0.6965 GB, free: 11.28 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/1.162, allocations: 4 kB / 0.6965 GB, free: 11.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007112/1.169, allocations: 2.3 MB / 0.6987 GB, free: 9.332 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/1.169, allocations: 4 kB / 0.6987 GB, free: 9.328 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.08e-05/1.169, allocations: 4 kB / 0.6987 GB, free: 9.324 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003957/1.173, allocations: 0.9965 MB / 0.6997 GB, free: 8.457 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006972/1.174, allocations: 102.9 kB / 0.6998 GB, free: 8.359 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007429/1.181, allocations: 3.374 MB / 0.7031 GB, free: 5.641 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/1.182, allocations: 111.4 kB / 0.7032 GB, free: 5.531 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000132/1.182, allocations: 23.94 kB / 0.7032 GB, free: 5.512 MB / 442.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.0003094/1.183, allocations: 124.6 kB / 0.7033 GB, free: 5.387 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001995/1.183, allocations: 83 kB / 0.7034 GB, free: 5.305 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00649/1.189, allocations: 2.113 MB / 0.7055 GB, free: 3.547 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.208e-05/1.189, allocations: 11.98 kB / 0.7055 GB, free: 3.535 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/1.189, allocations: 0 / 0.7055 GB, free: 3.535 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.759e-05/1.19, allocations: 7.891 kB / 0.7055 GB, free: 3.527 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004505/1.194, allocations: 2.025 MB / 0.7075 GB, free: 2.039 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.495e-06/1.194, allocations: 4 kB / 0.7075 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004809/1.195, allocations: 75.16 kB / 0.7076 GB, free: 1.965 MB / 442.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.004191/1.199, allocations: 1.056 MB / 0.7086 GB, free: 1.047 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001397/1.199, allocations: 0 / 0.7086 GB, free: 1.047 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007073/1.2, allocations: 159.6 kB / 0.7087 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.2, allocations: 0 / 0.7087 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003632/1.203, allocations: 1.674 MB / 0.7104 GB, free: 15.77 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004592/1.208, allocations: 2.538 MB / 0.7129 GB, free: 14.03 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003256/1.208, allocations: 159.7 kB / 0.713 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/1.208, allocations: 0 / 0.713 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008928/1.209, allocations: 75.94 kB / 0.7131 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002881/1.21, allocations: 94.11 kB / 0.7132 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.596e-05/1.21, allocations: 23.61 kB / 0.7132 GB, free: 13.69 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0004612/1.21, allocations: 311.9 kB / 0.7135 GB, free: 13.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001634/1.212, allocations: 214.8 kB / 0.7137 GB, free: 13.26 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.000352/1.212, allocations: 119.2 kB / 0.7138 GB, free: 13.13 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003688/1.216, allocations: 1.431 MB / 0.7152 GB, free: 11.97 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/1.216, allocations: 0 / 0.7152 GB, free: 11.97 MB / 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/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