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-master/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-master/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-master/package.mo): time 0.08442/0.08442, allocations: 12.6 MB / 28.86 MB, free: 0.6445 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.001085/0.001085, allocations: 115.4 kB / 32.46 MB, free: 3.59 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.357/1.357, allocations: 205.1 MB / 241.1 MB, free: 12.4 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.001321/0.001321, allocations: 192.5 kB / 291.3 MB, free: 13.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4694/0.4694, allocations: 78.51 MB / 419.9 MB, free: 11.3 MB / 302.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.002647/0.002647, allocations: 140.7 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3203, allocations: 68.11 MB / 0.556 GB, free: 33.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.004532/0.3249, allocations: 4.41 MB / 0.5603 GB, free: 29.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002471/0.3274, allocations: 1.204 MB / 0.5615 GB, free: 28.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003497/0.3277, allocations: 5.75 kB / 0.5615 GB, free: 28.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003996/0.3282, allocations: 152.9 kB / 0.5616 GB, free: 28.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005214/0.3287, allocations: 226.2 kB / 0.5619 GB, free: 28.65 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.3299, allocations: 0.5891 MB / 0.5624 GB, free: 28.21 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006882/0.3306, allocations: 0.798 MB / 0.5632 GB, free: 27.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002763/0.3309, allocations: 211.5 kB / 0.5634 GB, free: 27.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002479/0.3311, allocations: 330.4 kB / 0.5637 GB, free: 27.4 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003691/0.3315, allocations: 410.6 kB / 0.5641 GB, free: 27.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.027e-05/0.3316, allocations: 62.44 kB / 0.5642 GB, free: 27.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002707/0.3319, allocations: 139 kB / 0.5643 GB, free: 27.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.332, allocations: 171.2 kB / 0.5645 GB, free: 26.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000282/0.3323, allocations: 387.3 kB / 0.5648 GB, free: 26.65 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007626/0.3331, allocations: 0.9112 MB / 0.5657 GB, free: 25.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3331, allocations: 0 / 0.5657 GB, free: 25.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3331, allocations: 0 / 0.5657 GB, free: 25.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.3331, allocations: 1.469 kB / 0.5657 GB, free: 25.98 MB / 398.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.003982/0.3371, allocations: 1.557 MB / 0.5673 GB, free: 24.94 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.3371, allocations: 18.25 kB / 0.5673 GB, free: 24.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002497/0.3396, allocations: 424.8 kB / 0.5677 GB, free: 24.76 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005647/0.3402, allocations: 0.4998 MB / 0.5682 GB, free: 24.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.3404, allocations: 200.7 kB / 0.5684 GB, free: 24.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.576e-05/0.3405, allocations: 59.06 kB / 0.5684 GB, free: 24.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.3417, allocations: 0.692 MB / 0.5691 GB, free: 23.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.3417, allocations: 0 / 0.5691 GB, free: 23.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/0.3418, allocations: 20.66 kB / 0.5691 GB, free: 23.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.3418, allocations: 16.75 kB / 0.5691 GB, free: 23.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.3431, allocations: 0.6721 MB / 0.5698 GB, free: 23.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003085/0.3462, allocations: 2.126 MB / 0.5719 GB, free: 21.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007219/0.3534, allocations: 2.269 MB / 0.5741 GB, free: 20.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008845/0.3543, allocations: 484 kB / 0.5745 GB, free: 20.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.208e-05/0.3544, allocations: 8.656 kB / 0.5745 GB, free: 20.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009248/0.3554, allocations: 0.5274 MB / 0.5751 GB, free: 19.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.164e-06/0.3554, allocations: 0 / 0.5751 GB, free: 19.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.006103/0.3615, allocations: 2.451 MB / 0.5774 GB, free: 17.02 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.3615, allocations: 60.06 kB / 0.5775 GB, free: 16.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004497/0.362, allocations: 0.507 MB / 0.578 GB, free: 16.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.918e-05/0.3621, allocations: 45.69 kB / 0.578 GB, free: 16.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.3622, allocations: 324.6 kB / 0.5784 GB, free: 16.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.3624, allocations: 256.3 kB / 0.5786 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/0.3626, allocations: 130.5 kB / 0.5787 GB, free: 15.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 6.77e-05/0.3627, allocations: 378.8 kB / 0.5791 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000724/0.3634, allocations: 401.8 kB / 0.5795 GB, free: 14.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007484/0.3642, allocations: 0.4946 MB / 0.5799 GB, free: 14.37 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008013/0.3722, allocations: 2.506 MB / 0.5824 GB, free: 11.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.363e-06/0.3722, allocations: 4 kB / 0.5824 GB, free: 11.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00635/0.3786, allocations: 2.22 MB / 0.5846 GB, free: 9.598 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3786, allocations: 8 kB / 0.5846 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.3786, allocations: 4 kB / 0.5846 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003516/0.3822, allocations: 0.9971 MB / 0.5856 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000532/0.3827, allocations: 107.8 kB / 0.5857 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008482/0.3912, allocations: 4.499 MB / 0.59 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.3923, allocations: 95.31 kB / 0.5901 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.3924, allocations: 28 kB / 0.5902 GB, free: 3.711 MB / 398.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.000436/0.3929, allocations: 205.2 kB / 0.5904 GB, free: 3.504 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.393, allocations: 75.14 kB / 0.5904 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004062/0.3971, allocations: 1.698 MB / 0.5921 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.3971, allocations: 8 kB / 0.5921 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3972, allocations: 7.922 kB / 0.5921 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.3972, allocations: 11.92 kB / 0.5921 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004323/0.4015, allocations: 2.431 MB / 0.5945 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.4015, allocations: 4 kB / 0.5945 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.4019, allocations: 67.91 kB / 0.5946 GB, free: 15.1 MB / 414.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.00394/0.4059, allocations: 1.069 MB / 0.5956 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-05/0.406, allocations: 19.98 kB / 0.5956 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005501/0.4065, allocations: 100.8 kB / 0.5957 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.4065, allocations: 0 / 0.5957 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004473/0.411, allocations: 2.012 MB / 0.5977 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002561/0.4113, allocations: 152.1 kB / 0.5978 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.4114, allocations: 15.94 kB / 0.5978 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006596/0.4121, allocations: 55.94 kB / 0.5979 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002903/0.4124, allocations: 124.5 kB / 0.598 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.794e-05/0.4125, allocations: 16 kB / 0.598 GB, free: 11.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004055/0.4129, allocations: 354.8 kB / 0.5984 GB, free: 11.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4129, allocations: 4 kB / 0.5984 GB, free: 11.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008134/0.4137, allocations: 231.8 kB / 0.5986 GB, free: 10.91 MB / 414.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.0001991/0.4139, allocations: 119.2 kB / 0.5987 GB, free: 10.78 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004041/0.418, allocations: 1.596 MB / 0.6003 GB, free: 9.133 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.418, allocations: 0 / 0.6003 GB, free: 9.133 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3522:9-3522: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:1549:5-1549:72:writable] Error: Internal error SimCodeUtil.createEquationsForSystems failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]