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/ModelicaServices 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/Complex 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 239.3 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 187.8 kB / 289.6 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4662/0.4662, allocations: 78.53 MB / 418.2 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001498, allocations: 75.88 kB / 497.6 MB, free: 6.324 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1486, allocations: 68.18 MB / 0.5525 GB, free: 2.109 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2615/0.4102, allocations: 4.36 MB / 0.5567 GB, free: 37.46 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.4126, allocations: 1.24 MB / 0.5579 GB, free: 37.09 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/0.4128, allocations: 6.188 kB / 0.558 GB, free: 37.09 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003931/0.4132, allocations: 141.5 kB / 0.5581 GB, free: 37.08 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005008/0.4138, allocations: 243.9 kB / 0.5583 GB, free: 37.04 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.415, allocations: 0.5651 MB / 0.5589 GB, free: 36.93 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006378/0.4156, allocations: 0.7999 MB / 0.5597 GB, free: 36.88 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002974/0.4159, allocations: 199.6 kB / 0.5598 GB, free: 36.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.4162, allocations: 326.8 kB / 0.5602 GB, free: 36.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004202/0.4166, allocations: 419.8 kB / 0.5606 GB, free: 36.65 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.579e-05/0.4167, allocations: 65.38 kB / 0.5606 GB, free: 36.65 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002937/0.417, allocations: 129.4 kB / 0.5607 GB, free: 36.65 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.4171, allocations: 171.7 kB / 0.5609 GB, free: 36.61 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002771/0.4174, allocations: 389.6 kB / 0.5613 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007585/0.4182, allocations: 0.9043 MB / 0.5622 GB, free: 36.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4182, allocations: 2.766 kB / 0.5622 GB, free: 36.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4182, allocations: 0 / 0.5622 GB, free: 36.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.4182, allocations: 1.75 kB / 0.5622 GB, free: 36.27 MB / 430.1 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.004153/0.4224, allocations: 1.564 MB / 0.5637 GB, free: 35.61 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.4225, allocations: 9.344 kB / 0.5637 GB, free: 35.61 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.4226, allocations: 102 kB / 0.5638 GB, free: 35.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00248/0.4251, allocations: 424.2 kB / 0.5642 GB, free: 35.51 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005758/0.4257, allocations: 0.4968 MB / 0.5647 GB, free: 35.22 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.4259, allocations: 200.8 kB / 0.5649 GB, free: 35.06 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.426, allocations: 51.38 kB / 0.5649 GB, free: 35.06 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.4273, allocations: 0.6919 MB / 0.5656 GB, free: 35.01 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.4273, allocations: 0.6562 kB / 0.5656 GB, free: 35.01 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.533e-05/0.4274, allocations: 21.09 kB / 0.5656 GB, free: 35.01 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.4274, allocations: 15.78 kB / 0.5656 GB, free: 35.01 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.4286, allocations: 0.673 MB / 0.5663 GB, free: 35 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003134/0.4318, allocations: 2.157 MB / 0.5684 GB, free: 34.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007482/0.4393, allocations: 2.268 MB / 0.5706 GB, free: 33.9 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009575/0.4403, allocations: 482.1 kB / 0.5711 GB, free: 33.89 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.356e-05/0.4404, allocations: 11.11 kB / 0.5711 GB, free: 33.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/0.4414, allocations: 0.528 MB / 0.5716 GB, free: 33.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 5.23e-06/0.4414, allocations: 0.5156 kB / 0.5716 GB, free: 33.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006851/0.4483, allocations: 2.453 MB / 0.574 GB, free: 33.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.4484, allocations: 59.94 kB / 0.5741 GB, free: 33.33 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005254/0.4489, allocations: 0.5105 MB / 0.5746 GB, free: 33.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.691e-05/0.449, allocations: 44.67 kB / 0.5746 GB, free: 33.18 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.4492, allocations: 322.8 kB / 0.5749 GB, free: 33.03 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.4494, allocations: 256.2 kB / 0.5751 GB, free: 32.86 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.4496, allocations: 120.8 kB / 0.5753 GB, free: 32.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.922e-05/0.4497, allocations: 383.7 kB / 0.5756 GB, free: 32.53 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007846/0.4505, allocations: 403.4 kB / 0.576 GB, free: 32.53 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008083/0.4513, allocations: 0.4916 MB / 0.5765 GB, free: 32.4 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008472/0.4598, allocations: 2.523 MB / 0.579 GB, free: 31.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.779e-06/0.4598, allocations: 4.969 kB / 0.579 GB, free: 31.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007123/0.467, allocations: 2.212 MB / 0.5811 GB, free: 31.05 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.467, allocations: 5.281 kB / 0.5811 GB, free: 31.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.467, allocations: 1.875 kB / 0.5811 GB, free: 31.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00388/0.4709, allocations: 1.002 MB / 0.5821 GB, free: 30.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005582/0.4715, allocations: 107.3 kB / 0.5822 GB, free: 30.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00881/0.4803, allocations: 4.497 MB / 0.5866 GB, free: 28.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008851/0.4812, allocations: 104.8 kB / 0.5867 GB, free: 28.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.126e-05/0.4813, allocations: 22 kB / 0.5867 GB, free: 28.2 MB / 430.1 MB Warning: Assuming fixed start value for the following 2 variables: load.xp:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xq: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 ($PRE.ultc.zeroCrossing.enable,$PRE.ultc.zeroCrossing.u_pos,$PRE.ultc.zeroCrossing.disable,ultc.zeroCrossing.enable,ultc.zeroCrossing.u_pos,ultc.zeroCrossing.disable,ultc.zeroCrossing.y,ultc.m,$PRE.ultc.m,$whenCondition2,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003576/0.4817, allocations: 207.5 kB / 0.5869 GB, free: 28.03 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.4818, allocations: 70.72 kB / 0.587 GB, free: 27.99 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004525/0.4863, allocations: 1.694 MB / 0.5886 GB, free: 27.45 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.4864, allocations: 10.39 kB / 0.5887 GB, free: 27.45 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4864, allocations: 8.969 kB / 0.5887 GB, free: 27.44 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.4864, allocations: 6.047 kB / 0.5887 GB, free: 27.43 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004372/0.4908, allocations: 2.438 MB / 0.591 GB, free: 26.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.4908, allocations: 0 / 0.591 GB, free: 26.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003876/0.4912, allocations: 68.25 kB / 0.5911 GB, free: 26.23 MB / 430.1 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.004276/0.4955, allocations: 1.07 MB / 0.5922 GB, free: 26.01 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.784e-05/0.4956, allocations: 13.58 kB / 0.5922 GB, free: 26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007358/0.4963, allocations: 102.4 kB / 0.5923 GB, free: 25.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4963, allocations: 0 / 0.5923 GB, free: 25.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004559/0.5009, allocations: 2.016 MB / 0.5942 GB, free: 25.13 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002272/0.5012, allocations: 146.5 kB / 0.5944 GB, free: 24.99 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.5013, allocations: 17.66 kB / 0.5944 GB, free: 24.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006267/0.5019, allocations: 58.44 kB / 0.5944 GB, free: 24.97 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003334/0.5023, allocations: 120.4 kB / 0.5946 GB, free: 24.94 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-05/0.5023, allocations: 21.92 kB / 0.5946 GB, free: 24.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004346/0.5028, allocations: 351.2 kB / 0.5949 GB, free: 24.78 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5028, allocations: 0 / 0.5949 GB, free: 24.78 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008074/0.5036, allocations: 237.7 kB / 0.5951 GB, free: 24.74 MB / 430.1 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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(16,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004655/0.5082, allocations: 2.58 MB / 0.5977 GB, free: 23.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004353/0.5126, allocations: 1.615 MB / 0.5992 GB, free: 22.61 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.5127, allocations: 1.312 kB / 0.5992 GB, free: 22.61 MB / 430.1 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:3521:9-3521:50:writable] Error: Internal error function createOdeSystem failed for component torn nonlinear Equationsystem{{{23:9}, {27:8}, {26:7}, {24:3}, {30:5}, {21:66}, {20:33}, {14:29}, {15:67}, {9:20}, {5:21}}, {8, 6, 7, 13, 22, 31, 25, 29, 28, 12, 10, 11, 18, 19, 17, 16:35, 53, 11, 52, 10, 47, 46, 30, 12, 13, 40, 41, 43, 42, 45, 44} Size: 16 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1548:5-1548:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]