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.1455/0.1455, allocations: 12.6 MB / 28.86 MB, free: 280 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00196/0.001961, allocations: 115.4 kB / 32.45 MB, free: 3.414 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.554/1.554, allocations: 205.1 MB / 241 MB, free: 12.37 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.001829/0.001829, allocations: 195.2 kB / 291.3 MB, free: 13.39 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4821/0.4821, allocations: 78.51 MB / 419.9 MB, free: 11.24 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.003074/0.003074, allocations: 136.5 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3915/0.3946, allocations: 68.11 MB / 0.556 GB, free: 33.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.Generic.ULTC): time 0.005596/0.4002, allocations: 4.409 MB / 0.5603 GB, free: 30.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002211/0.4025, allocations: 1.206 MB / 0.5615 GB, free: 29.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002386/0.4027, allocations: 5.781 kB / 0.5615 GB, free: 29.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003642/0.4031, allocations: 148.3 kB / 0.5616 GB, free: 29.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004511/0.4036, allocations: 235.3 kB / 0.5618 GB, free: 28.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.4047, allocations: 0.583 MB / 0.5624 GB, free: 28.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006942/0.4054, allocations: 0.8029 MB / 0.5632 GB, free: 27.92 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003179/0.4057, allocations: 203.7 kB / 0.5634 GB, free: 27.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.406, allocations: 338.5 kB / 0.5637 GB, free: 27.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004287/0.4065, allocations: 413.9 kB / 0.5641 GB, free: 27.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.196e-05/0.4066, allocations: 63.59 kB / 0.5642 GB, free: 27.31 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002784/0.4068, allocations: 126.4 kB / 0.5643 GB, free: 27.29 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.407, allocations: 175 kB / 0.5645 GB, free: 27.14 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002909/0.4073, allocations: 391.4 kB / 0.5648 GB, free: 26.85 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007675/0.408, allocations: 0.9117 MB / 0.5657 GB, free: 26.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.408, allocations: 0 / 0.5657 GB, free: 26.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4081, allocations: 0 / 0.5657 GB, free: 26.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.4081, allocations: 0 / 0.5657 GB, free: 26.18 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.004114/0.4122, allocations: 1.559 MB / 0.5672 GB, free: 25.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.4123, allocations: 13.11 kB / 0.5673 GB, free: 25.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002587/0.4148, allocations: 429.2 kB / 0.5677 GB, free: 24.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006554/0.4155, allocations: 0.4996 MB / 0.5682 GB, free: 24.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002069/0.4157, allocations: 197.9 kB / 0.5683 GB, free: 24.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.4159, allocations: 59.72 kB / 0.5684 GB, free: 24.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.4172, allocations: 0.6897 MB / 0.5691 GB, free: 23.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.4172, allocations: 0 / 0.5691 GB, free: 23.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.006e-05/0.4173, allocations: 21.73 kB / 0.5691 GB, free: 23.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.4173, allocations: 17.69 kB / 0.5691 GB, free: 23.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.4186, allocations: 0.6753 MB / 0.5698 GB, free: 23.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003273/0.4219, allocations: 2.13 MB / 0.5718 GB, free: 21.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007074/0.429, allocations: 2.269 MB / 0.5741 GB, free: 20.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008438/0.4298, allocations: 482 kB / 0.5745 GB, free: 20.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.092e-05/0.4299, allocations: 12.64 kB / 0.5745 GB, free: 20.19 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009254/0.4309, allocations: 0.5196 MB / 0.575 GB, free: 19.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.635e-06/0.4309, allocations: 0 / 0.575 GB, free: 19.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.005951/0.4368, allocations: 2.459 MB / 0.5774 GB, free: 17.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.4369, allocations: 60.06 kB / 0.5775 GB, free: 17.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004818/0.4374, allocations: 0.507 MB / 0.578 GB, free: 16.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.583e-05/0.4374, allocations: 41.7 kB / 0.578 GB, free: 16.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.4376, allocations: 328.6 kB / 0.5783 GB, free: 16.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.4378, allocations: 252.3 kB / 0.5786 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.438, allocations: 126.6 kB / 0.5787 GB, free: 15.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.4382, allocations: 382.8 kB / 0.5791 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006953/0.4389, allocations: 405.7 kB / 0.5795 GB, free: 15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007307/0.4396, allocations: 0.4907 MB / 0.5799 GB, free: 14.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007511/0.4471, allocations: 2.51 MB / 0.5824 GB, free: 11.95 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.4471, allocations: 4 kB / 0.5824 GB, free: 11.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.005876/0.453, allocations: 2.216 MB / 0.5846 GB, free: 9.711 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.4531, allocations: 8 kB / 0.5846 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.4531, allocations: 0 / 0.5846 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003284/0.4564, allocations: 1.005 MB / 0.5856 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004336/0.4568, allocations: 111.8 kB / 0.5857 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007468/0.4643, allocations: 4.483 MB / 0.59 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007645/0.4651, allocations: 103.3 kB / 0.5901 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.545e-05/0.4652, allocations: 23.98 kB / 0.5902 GB, free: 3.828 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.0003097/0.4655, allocations: 209.2 kB / 0.5904 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.343e-05/0.4656, allocations: 71.16 kB / 0.5904 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003796/0.4694, allocations: 1.698 MB / 0.5921 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.4694, allocations: 7.984 kB / 0.5921 GB, free: 1.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.4694, allocations: 7.938 kB / 0.5921 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.4694, allocations: 3.938 kB / 0.5921 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003845/0.4733, allocations: 2.435 MB / 0.5945 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4733, allocations: 0 / 0.5945 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.4737, allocations: 79.89 kB / 0.5946 GB, free: 15.21 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.003903/0.4776, allocations: 1.058 MB / 0.5956 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.206e-05/0.4777, allocations: 15.94 kB / 0.5956 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005122/0.4782, allocations: 100.8 kB / 0.5957 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/0.4782, allocations: 7.984 kB / 0.5957 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004263/0.4825, allocations: 2.008 MB / 0.5977 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.4827, allocations: 152 kB / 0.5978 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.4829, allocations: 19.94 kB / 0.5978 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006022/0.4835, allocations: 55.94 kB / 0.5979 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003108/0.4838, allocations: 120.5 kB / 0.598 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.499e-05/0.4839, allocations: 19.98 kB / 0.598 GB, free: 11.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005915/0.4845, allocations: 350.8 kB / 0.5984 GB, free: 11.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4845, allocations: 0 / 0.5984 GB, free: 11.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001287/0.4858, allocations: 235.8 kB / 0.5986 GB, free: 11.03 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.0002702/0.4861, allocations: 119.3 kB / 0.5987 GB, free: 10.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004102/0.4902, allocations: 1.6 MB / 0.6003 GB, free: 9.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4902, allocations: 4.188 kB / 0.6003 GB, free: 9.246 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]