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/Modelica_Synchronous 0.93.0/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/Modelica 3.2.3+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 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 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") translateModel(OpenIPSL.Tests.Branches.Generic.ULTC,tolerance=0.0001,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.Generic.ULTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.0759/0.0759, allocations: 12.2 MB / 27.17 MB, free: 1.504 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007268/0.0007269, allocations: 106.7 kB / 30.68 MB, free: 4.863 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.4 MB / 239.5 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009431/0.0009431, allocations: 176.5 kB / 290.6 MB, free: 13.4 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4554/0.4554, allocations: 78.54 MB / 420.1 MB, free: 48.57 MB / 334.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008345/0.0008347, allocations: 31.98 kB / 0.4895 GB, free: 2.629 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3078, allocations: 69.22 MB / 0.5571 GB, free: 43.22 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.003766/0.3116, allocations: 4.041 MB / 0.561 GB, free: 42.59 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.3136, allocations: 1.166 MB / 0.5621 GB, free: 41.97 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002465/0.3139, allocations: 7.125 kB / 0.5621 GB, free: 41.97 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002974/0.3142, allocations: 110.7 kB / 0.5622 GB, free: 41.93 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004543/0.3146, allocations: 206.9 kB / 0.5624 GB, free: 41.8 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.3156, allocations: 489.9 kB / 0.5629 GB, free: 41.53 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006544/0.3163, allocations: 0.7323 MB / 0.5636 GB, free: 41.14 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002705/0.3166, allocations: 162.2 kB / 0.5638 GB, free: 41.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000265/0.3169, allocations: 285 kB / 0.5641 GB, free: 40.95 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004416/0.3173, allocations: 367.8 kB / 0.5644 GB, free: 40.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.538e-05/0.3174, allocations: 33.78 kB / 0.5644 GB, free: 40.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002612/0.3177, allocations: 94.38 kB / 0.5645 GB, free: 40.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.3178, allocations: 139.9 kB / 0.5647 GB, free: 40.67 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.3179, allocations: 144.8 kB / 0.5648 GB, free: 40.57 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006144/0.3185, allocations: 0.6702 MB / 0.5655 GB, free: 40.36 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3186, allocations: 0 / 0.5655 GB, free: 40.36 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3186, allocations: 3.938 kB / 0.5655 GB, free: 40.36 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.3186, allocations: 0 / 0.5655 GB, free: 40.36 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.003628/0.3222, allocations: 1.455 MB / 0.5669 GB, free: 39.62 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3223, allocations: 14.3 kB / 0.5669 GB, free: 39.62 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002477/0.3247, allocations: 429.6 kB / 0.5673 GB, free: 39.54 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005841/0.3253, allocations: 478.4 kB / 0.5678 GB, free: 39.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.3255, allocations: 211.9 kB / 0.568 GB, free: 38.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.119e-05/0.3256, allocations: 55.34 kB / 0.568 GB, free: 38.96 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.3269, allocations: 0.7272 MB / 0.5687 GB, free: 38.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.327, allocations: 0 / 0.5687 GB, free: 38.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.239e-05/0.327, allocations: 27.11 kB / 0.5687 GB, free: 38.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.327, allocations: 12.86 kB / 0.5688 GB, free: 38.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.3283, allocations: 0.7167 MB / 0.5695 GB, free: 38.46 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002964/0.3313, allocations: 2.181 MB / 0.5716 GB, free: 37.24 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006784/0.3381, allocations: 2.74 MB / 0.5743 GB, free: 36.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009649/0.3391, allocations: 0.5141 MB / 0.5748 GB, free: 36.06 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.293e-05/0.3392, allocations: 14.59 kB / 0.5748 GB, free: 36.05 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009806/0.3402, allocations: 0.5561 MB / 0.5753 GB, free: 35.85 MB / 430.1 MB Notification: Performance of pre-optimization done (n=73): time 3.045e-06/0.3402, allocations: 0 / 0.5753 GB, free: 35.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.006226/0.3464, allocations: 2.836 MB / 0.5781 GB, free: 34.88 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.3465, allocations: 60.62 kB / 0.5782 GB, free: 34.81 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005874/0.3471, allocations: 0.5077 MB / 0.5786 GB, free: 34.58 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.654e-05/0.3471, allocations: 40.67 kB / 0.5787 GB, free: 34.54 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.3473, allocations: 325.8 kB / 0.579 GB, free: 34.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.3475, allocations: 252.7 kB / 0.5792 GB, free: 34.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.469e-05/0.3475, allocations: 14.75 kB / 0.5793 GB, free: 34.06 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.865e-05/0.3476, allocations: 384.7 kB / 0.5796 GB, free: 33.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007458/0.3484, allocations: 439.9 kB / 0.58 GB, free: 33.57 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008098/0.3492, allocations: 0.5379 MB / 0.5806 GB, free: 33.32 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008231/0.35, allocations: 469.4 kB / 0.581 GB, free: 33.14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.35, allocations: 0 / 0.581 GB, free: 33.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.006323/0.3564, allocations: 2.632 MB / 0.5836 GB, free: 32.49 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.3564, allocations: 5.25 kB / 0.5836 GB, free: 32.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.3564, allocations: 2.75 kB / 0.5836 GB, free: 32.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003537/0.36, allocations: 1.191 MB / 0.5848 GB, free: 32.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005243/0.3605, allocations: 107.7 kB / 0.5849 GB, free: 32.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007493/0.368, allocations: 4.466 MB / 0.5892 GB, free: 29.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008716/0.3689, allocations: 119.8 kB / 0.5893 GB, free: 29.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.656e-05/0.369, allocations: 42.27 kB / 0.5894 GB, free: 29.76 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.0003653/0.3694, allocations: 198.2 kB / 0.5896 GB, free: 29.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.3695, allocations: 77.92 kB / 0.5896 GB, free: 29.55 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004535/0.374, allocations: 1.95 MB / 0.5915 GB, free: 28.96 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.3741, allocations: 7.5 kB / 0.5915 GB, free: 28.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3741, allocations: 5 kB / 0.5916 GB, free: 28.95 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.3741, allocations: 8.328 kB / 0.5916 GB, free: 28.95 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004261/0.3784, allocations: 2.6 MB / 0.5941 GB, free: 27.72 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.3784, allocations: 0 / 0.5941 GB, free: 27.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003686/0.3788, allocations: 77.44 kB / 0.5942 GB, free: 27.71 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.003909/0.3827, allocations: 1.257 MB / 0.5954 GB, free: 27.47 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.421e-05/0.3828, allocations: 17.05 kB / 0.5954 GB, free: 27.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005184/0.3833, allocations: 130.2 kB / 0.5955 GB, free: 27.43 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3834, allocations: 0 / 0.5955 GB, free: 27.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004277/0.3876, allocations: 2.21 MB / 0.5977 GB, free: 26.56 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002532/0.3879, allocations: 149 kB / 0.5978 GB, free: 26.42 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.388, allocations: 16.62 kB / 0.5979 GB, free: 26.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005798/0.3886, allocations: 76.23 kB / 0.5979 GB, free: 26.39 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002908/0.3889, allocations: 128.5 kB / 0.5981 GB, free: 26.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.288e-05/0.389, allocations: 22.34 kB / 0.5981 GB, free: 26.36 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004363/0.3894, allocations: 346.4 kB / 0.5984 GB, free: 26.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3894, allocations: 3.938 kB / 0.5984 GB, free: 26.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007884/0.3902, allocations: 237.8 kB / 0.5986 GB, free: 26.16 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.000204/0.3904, allocations: 117.9 kB / 0.5987 GB, free: 26.06 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004153/0.3946, allocations: 1.739 MB / 0.6004 GB, free: 25.32 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3946, allocations: 1.156 kB / 0.6004 GB, free: 25.32 MB / 430.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3387:9-3387: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:1487:5-1487:77:writable] Error: Internal error createEquationsForSystems failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]