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.001604/0.001604, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 223.2 MB / 238.9 MB, free: 5.641 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.001156/0.001156, allocations: 189 kB / 290.2 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4549/0.4549, allocations: 78.52 MB / 419.8 MB, free: 4.328 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006071/0.0006073, allocations: 12 kB / 499.8 MB, free: 6.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1372, allocations: 69.36 MB / 0.5558 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.2226/0.3599, allocations: 3.781 MB / 0.5595 GB, free: 37.62 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001674/0.3616, allocations: 1.236 MB / 0.5607 GB, free: 37.46 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.3618, allocations: 7.312 kB / 0.5607 GB, free: 37.46 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002495/0.3621, allocations: 108 kB / 0.5608 GB, free: 37.42 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003867/0.3625, allocations: 243.5 kB / 0.561 GB, free: 37.39 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000883/0.3634, allocations: 473.6 kB / 0.5615 GB, free: 37.35 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000555/0.3639, allocations: 0.5291 MB / 0.562 GB, free: 37.32 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/0.3642, allocations: 166.7 kB / 0.5621 GB, free: 37.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002296/0.3645, allocations: 288.4 kB / 0.5624 GB, free: 37.22 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003709/0.3648, allocations: 359.7 kB / 0.5628 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.071e-05/0.3649, allocations: 35.86 kB / 0.5628 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002158/0.3651, allocations: 83.94 kB / 0.5629 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.575e-05/0.3652, allocations: 132.3 kB / 0.563 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.3654, allocations: 150 kB / 0.5631 GB, free: 37.05 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000548/0.3659, allocations: 0.6407 MB / 0.5638 GB, free: 37 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.3659, allocations: 3.938 kB / 0.5638 GB, free: 36.99 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3659, allocations: 3.188 kB / 0.5638 GB, free: 36.99 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.3659, allocations: 0 / 0.5638 GB, free: 36.99 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.003623/0.3696, allocations: 1.452 MB / 0.5652 GB, free: 36.38 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.3696, allocations: 15.66 kB / 0.5652 GB, free: 36.38 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.3697, allocations: 102.7 kB / 0.5653 GB, free: 36.33 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002349/0.3721, allocations: 421.6 kB / 0.5657 GB, free: 36.29 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000533/0.3726, allocations: 485.1 kB / 0.5662 GB, free: 36.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.3728, allocations: 208.8 kB / 0.5664 GB, free: 35.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.687e-05/0.3729, allocations: 54.33 kB / 0.5664 GB, free: 35.86 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.3742, allocations: 0.7221 MB / 0.5671 GB, free: 35.81 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.3742, allocations: 0.5156 kB / 0.5671 GB, free: 35.81 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.276e-05/0.3743, allocations: 29.23 kB / 0.5672 GB, free: 35.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.3743, allocations: 12.75 kB / 0.5672 GB, free: 35.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.3755, allocations: 0.719 MB / 0.5679 GB, free: 35.8 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003003/0.3785, allocations: 2.38 MB / 0.5702 GB, free: 35.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007498/0.386, allocations: 2.739 MB / 0.5729 GB, free: 34.37 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-05/0.3861, allocations: 15.41 kB / 0.5729 GB, free: 34.37 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009626/0.3871, allocations: 0.5558 MB / 0.5734 GB, free: 34.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 2.354e-06/0.3871, allocations: 0 / 0.5734 GB, free: 34.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006575/0.3937, allocations: 2.833 MB / 0.5762 GB, free: 33.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.3937, allocations: 60.97 kB / 0.5763 GB, free: 33.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004807/0.3942, allocations: 0.5044 MB / 0.5767 GB, free: 33.61 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.651e-05/0.3943, allocations: 39.36 kB / 0.5768 GB, free: 33.57 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.3945, allocations: 331.5 kB / 0.5771 GB, free: 33.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.3946, allocations: 246.4 kB / 0.5773 GB, free: 33.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.3947, allocations: 15.03 kB / 0.5773 GB, free: 33.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.999e-05/0.3947, allocations: 383.8 kB / 0.5777 GB, free: 32.76 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007702/0.3955, allocations: 443.1 kB / 0.5781 GB, free: 32.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007943/0.3963, allocations: 0.5282 MB / 0.5787 GB, free: 32.38 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007859/0.3971, allocations: 473.1 kB / 0.5791 GB, free: 32.19 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3971, allocations: 0 / 0.5791 GB, free: 32.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.007306/0.4044, allocations: 2.638 MB / 0.5817 GB, free: 31.53 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.4045, allocations: 5.719 kB / 0.5817 GB, free: 31.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4045, allocations: 2.094 kB / 0.5817 GB, free: 31.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004045/0.4086, allocations: 1.182 MB / 0.5828 GB, free: 31.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005256/0.4091, allocations: 109.6 kB / 0.5829 GB, free: 31.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008843/0.4179, allocations: 4.674 MB / 0.5875 GB, free: 28.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008404/0.4188, allocations: 118.6 kB / 0.5876 GB, free: 28.76 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-05/0.4189, allocations: 28.88 kB / 0.5876 GB, free: 28.75 MB / 430.1 MB Warning: Assuming fixed start value for the following 2 variables: load.xq:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real load.xp: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 ($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 () * 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 (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.0003362/0.4192, allocations: 206.8 kB / 0.5878 GB, free: 28.58 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.4193, allocations: 75.75 kB / 0.5879 GB, free: 28.54 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004671/0.424, allocations: 1.955 MB / 0.5898 GB, free: 27.95 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.424, allocations: 7.875 kB / 0.5898 GB, free: 27.95 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.424, allocations: 1 kB / 0.5898 GB, free: 27.95 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.4241, allocations: 7.469 kB / 0.5898 GB, free: 27.95 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004282/0.4283, allocations: 2.596 MB / 0.5924 GB, free: 26.74 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.4284, allocations: 0 / 0.5924 GB, free: 26.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000373/0.4287, allocations: 70.52 kB / 0.5924 GB, free: 26.73 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.004016/0.4328, allocations: 1.256 MB / 0.5937 GB, free: 26.49 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.713e-05/0.4328, allocations: 14.12 kB / 0.5937 GB, free: 26.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005553/0.4334, allocations: 129 kB / 0.5938 GB, free: 26.46 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.4334, allocations: 5.766 kB / 0.5938 GB, free: 26.46 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004317/0.4377, allocations: 2.213 MB / 0.596 GB, free: 25.58 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/0.4379, allocations: 157.2 kB / 0.5961 GB, free: 25.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.77e-05/0.438, allocations: 14.62 kB / 0.5961 GB, free: 25.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/0.4386, allocations: 78.72 kB / 0.5962 GB, free: 25.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.4389, allocations: 120.5 kB / 0.5963 GB, free: 25.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.439, allocations: 25.73 kB / 0.5964 GB, free: 25.39 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003747/0.4393, allocations: 353.2 kB / 0.5967 GB, free: 25.22 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4393, allocations: 3.938 kB / 0.5967 GB, free: 25.22 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007715/0.4401, allocations: 237.6 kB / 0.5969 GB, free: 25.18 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 (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.004555/0.4447, allocations: 2.771 MB / 0.5996 GB, free: 23.76 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003946/0.4486, allocations: 1.747 MB / 0.6013 GB, free: 23.01 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4487, allocations: 0.5 kB / 0.6013 GB, free: 23.01 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:3336:9-3336: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:1480:5-1480:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]